|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.tasks.ags.geoprocessing.GPParameter
com.esri.core.tasks.ags.geoprocessing.GPRasterDataLayer
public class GPRasterDataLayer

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>
}
}
}
| Field Summary |
|---|
| 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_GPMULTIVALUE, DATATYPE_GPRASTERDATA, DATATYPE_GPRASTERDATALAYER, DATATYPE_GPRECORDSET, DATATYPE_GPSTRING |
| Constructor Summary | |
|---|---|
GPRasterDataLayer()
Constructs an empty GPRasterDataLayer object. |
|
GPRasterDataLayer(String paramName)
Constructor taking in a parameter name. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
void |
fromJson(org.codehaus.jackson.JsonParser parser)
Method used to populate a GP Parameter. |
String |
generateValueParams()
Method serializing GP parameter's values into a Json format. |
String |
getFormat()
Gets the format of the raster data. |
GPMapImage |
getMapImage()
Gets the GPMapImage object. |
URL |
getRasterDataUrl()
Gets the url to the raster data. |
int |
hashCode()
|
void |
setFormat(String format)
Sets the format. |
void |
setMapImage(GPMapImage mapImage)
Sets the GPMapImage object. |
void |
setRasterDataUrl(String rasterDataUrl)
Sets the url to the raster data |
| Methods inherited from class com.esri.core.tasks.ags.geoprocessing.GPParameter |
|---|
createFromJson, generateRequestParams, getDataType, getParamName, setParamName |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public GPRasterDataLayer(String paramName)
paramName - parameter name.public GPRasterDataLayer()
| Method Detail |
|---|
public void setRasterDataUrl(String rasterDataUrl)
rasterDataUrl - url to the raster data.public void setFormat(String format)
format - the format of the raster data.public URL getRasterDataUrl()
public String getFormat()
public void setMapImage(GPMapImage mapImage)
mapImage - the mapImage to setpublic GPMapImage getMapImage()
public String generateValueParams()
throws Exception
GPParameter
generateValueParams in class GPParameterException
public void fromJson(org.codehaus.jackson.JsonParser parser)
throws Exception
GPParameter
fromJson in class GPParameterparser - a Json Parser
Exceptionpublic int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||