public class

GPMapImage

extends Object
java.lang.Object
   ↳ com.esri.core.tasks.ags.geoprocessing.GPMapImage

Class Overview

Container class representing a map image object shared by GPRasterDataLayer and GPFeatureRecordSetLayer. If a geoprocessing service had been published to generate a Result Map Service then at the end of a successful operation the service will contain a layer for each of the geodataset output parameters such as GPFeatureRecordSetLayer and GPRasterDataLayer.

Summary

Public Constructors
GPMapImage()
Public Methods
boolean equals(Object obj)
void fromJson(JsonParser parser)
This method populates a map image instance with the information contained in the object representation the Json Parser is pointing to.
void fromJson(JsonNode node)
This method populates a map image instance with the information contained in the Feature Json node passed as parameter.
Envelope getExtent()
Gets the extent that the image represents.
int getHeight()
Gets the height of the image.
URL getHref()
Gets the URL to the image.
double getScale()
Gets the scale of the image.
SpatialReference getSpatialReference()
Gets the spatial reference.
int getWidth()
Gets the width of the image.
int hashCode()
void setExtent(Envelope extent)
Sets the extent that the image represents.
void setHeight(int height)
Sets the height of the image.
void setHref(URL href)
Sets the URL of the image.
void setScale(double scale)
Sets the scale of the image.
void setWidth(int width)
Sets the width of the image.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public GPMapImage ()

Public Methods

public boolean equals (Object obj)

Parameters
obj Object
Returns
boolean

public void fromJson (JsonParser parser)

This method populates a map image instance with the information contained in the object representation the Json Parser is pointing to.

Parameters
parser JsonParser: the Json parser pointing to the map image information.
Throws
Exception when the Json cannot be parsed.

public void fromJson (JsonNode node)

This method populates a map image instance with the information contained in the Feature Json node passed as parameter.

Parameters
node JsonNode: the Json node containing the map image information.
Throws
Exception
Exception

public Envelope getExtent ()

Gets the extent that the image represents.

Returns
Envelope the extent

public int getHeight ()

Gets the height of the image.

Returns
int the height

public URL getHref ()

Gets the URL to the image.

Returns
URL the URL.

public double getScale ()

Gets the scale of the image.

Returns
double the scale

public SpatialReference getSpatialReference ()

Gets the spatial reference.

Returns
SpatialReference the spatial reference

public int getWidth ()

Gets the width of the image.

Returns
int the width

public int hashCode ()

Returns
int

public void setExtent (Envelope extent)

Sets the extent that the image represents.

Parameters
extent Envelope: the extent to set

public void setHeight (int height)

Sets the height of the image.

Parameters
height int: the height to set

public void setHref (URL href)

Sets the URL of the image.

Parameters
href URL: the href to set

public void setScale (double scale)

Sets the scale of the image.

Parameters
scale double: the scale to set

public void setWidth (int width)

Sets the width of the image.

Parameters
width int: the width to set.