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) |
long |
estimateMemorySize()
Returns an estimate of this object size in bytes.
|
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()
public long estimateMemorySize()
This estimate doesn't include the size of the SpatialReference
object
because instances of SpatialReference
are expected to be shared among
geometry objects.
Copyright © 2018. All rights reserved.