com.esri.core.tasks.ags.geoprocessing
Class GPRasterDataLayer
java.lang.Object
com.esri.core.tasks.ags.geoprocessing.GPParameter
com.esri.core.tasks.ags.geoprocessing.GPRasterDataLayer
- All Implemented Interfaces:
- Serializable
public class GPRasterDataLayer
- extends GPParameter
Container class representing a Geo-Processing parameter of the type raster data layer.
This object can have 2 representations:
- if data is the return type selected, the format is as follow:
{
"paramName" : "<paramName>",
"dataType" : "GPRasterDataLayer",
"value" : { "url" : "<url>", "format" : "<format>" }
}
- if data is NOT the return type selected, the format is as follow:
{
"paramName" : "<paramName>",
"dataType" : "<GPRasterDataLayer | GPFeatureRecordSetLayer>",
"value" :
{
"mapImage" :
{
"href" : "<href>",
"width" : <width>,
"height" : <height>,
"extent" : {<envelope>},
"scale" : <scale>
}
}
}
- See Also:
- Serialized Form
| Fields inherited from class com.esri.core.tasks.ags.geoprocessing.GPParameter |
dataType, DATATYPE_GPBOOLEAN, DATATYPE_GPDATAFILE, DATATYPE_GPDATE, DATATYPE_GPDOUBLE, DATATYPE_GPFEATURERECORDSETLAYER, DATATYPE_GPLINEARUNIT, DATATYPE_GPLONG, DATATYPE_GPRASTERDATA, DATATYPE_GPRASTERDATALAYER, DATATYPE_GPRECORDSET, DATATYPE_GPSTRING |
GPRasterDataLayer
public GPRasterDataLayer(String paramName)
setRasterDataUrl
public void setRasterDataUrl(String rasterDataUrl)
setFormat
public void setFormat(String format)
getRasterDataUrl
public URL getRasterDataUrl()
getFormat
public String getFormat()
setMapImage
public void setMapImage(GPMapImage mapImage)
- Parameters:
mapImage - the mapImage to set
getMapImage
public GPMapImage getMapImage()
- Returns:
- the mapImage
generateValueParams
public String generateValueParams()
throws Exception
- Description copied from class:
GPParameter
- Method serializing GP parameter's values into a Json format.
- Specified by:
generateValueParams in class GPParameter
- Returns:
- the Json String containing the GP parameter's values.
- Throws:
Exception
fromJson
public void fromJson(org.codehaus.jackson.JsonParser parser)
throws Exception
- Description copied from class:
GPParameter
- Method used to populate a GP Parameter.
- Specified by:
fromJson in class GPParameter
- Parameters:
parser - a Json Parser
- Throws:
Exception
hashCode
public int hashCode()
- Overrides:
hashCode in class Object
equals
public boolean equals(Object obj)
- Overrides:
equals in class Object
Copyright © 2010. All Rights Reserved.