java.lang.Object | |
↳ | com.esri.core.geometry.MapGeometry |
The MapGeometry class bundles the geometry with its spatial reference together. To work with a geometry object in a map it is necessary to have a spatial reference defined for this geometry.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
MapGeometry(Geometry g, SpatialReference _sr)
Construct a MapGeometry instance using the specified geometry instance and its corresponding spatial reference.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Geometry |
getGeometry()
Gets the only geometry without the spatial reference from the MapGeometry.
| ||||||||||
SpatialReference |
getSpatialReference()
Gets the spatial reference for this MapGeometry.
| ||||||||||
void |
setGeometry(Geometry geometry)
Sets the geometry for this MapGeometry.
| ||||||||||
void |
setSpatialReference(SpatialReference sr)
Sets the spatial reference for this MapGeometry.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Construct a MapGeometry instance using the specified geometry instance and its corresponding spatial reference.
g | The geometry to construct the new MapGeometry object. |
---|---|
_sr | The spatial reference of the geometry. |
Gets the only geometry without the spatial reference from the MapGeometry.
Sets the geometry for this MapGeometry.
geometry | The geometry. |
---|
Sets the spatial reference for this MapGeometry.
sr | The spatial reference. |
---|