com.esri.core.geometry
public class MapGeometry extends Object implements Serializable
Constructor and Description |
---|
MapGeometry(Geometry g,
SpatialReference _sr)
Construct a MapGeometry instance using the specified geometry instance
and its corresponding spatial reference.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
Geometry |
getGeometry()
Gets the only geometry without the spatial reference from the
MapGeometry.
|
SpatialReference |
getSpatialReference()
Gets the spatial reference for this MapGeometry.
|
int |
hashCode() |
void |
setGeometry(Geometry geometry)
Sets the geometry for this MapGeometry.
|
void |
setSpatialReference(SpatialReference sr)
Sets the spatial reference for this MapGeometry.
|
String |
toString()
The output of this method can be only used for debugging.
|
public MapGeometry(Geometry g, SpatialReference _sr)
g
- The geometry to construct the new MapGeometry object._sr
- The spatial reference of the geometry.public Geometry getGeometry()
public void setGeometry(Geometry geometry)
geometry
- The geometry.public void setSpatialReference(SpatialReference sr)
sr
- The spatial reference.public SpatialReference getSpatialReference()
public String toString()
Copyright © 2015. All Rights Reserved.