Package com.esri.core.geometry
Class MapGeometry
java.lang.Object
com.esri.core.geometry.MapGeometry
- All Implemented Interfaces:
Serializable
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.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) Geometry
private static final long
(package private) SpatialReference
-
Constructor Summary
ConstructorsConstructorDescriptionMapGeometry
(Geometry g, SpatialReference _sr) Construct a MapGeometry instance using the specified geometry instance and its corresponding spatial reference. -
Method Summary
Modifier and TypeMethodDescriptionboolean
long
Returns an estimate of this object size in bytes.Gets the only geometry without the spatial reference from the MapGeometry.Gets the spatial reference for this MapGeometry.int
hashCode()
void
setGeometry
(Geometry geometry) Sets the geometry for this MapGeometry.void
Sets the spatial reference for this MapGeometry.toString()
The output of this method can be only used for debugging.
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
m_geometry
Geometry m_geometry -
sr
-
-
Constructor Details
-
MapGeometry
Construct a MapGeometry instance using the specified geometry instance and its corresponding spatial reference.- Parameters:
g
- The geometry to construct the new MapGeometry object._sr
- The spatial reference of the geometry.
-
-
Method Details
-
getGeometry
Gets the only geometry without the spatial reference from the MapGeometry. -
setGeometry
Sets the geometry for this MapGeometry.- Parameters:
geometry
- The geometry.
-
setSpatialReference
Sets the spatial reference for this MapGeometry.- Parameters:
sr
- The spatial reference.
-
getSpatialReference
Gets the spatial reference for this MapGeometry. -
toString
The output of this method can be only used for debugging. It is subject to change without notice. -
equals
-
estimateMemorySize
public long estimateMemorySize()Returns an estimate of this object size in bytes.This estimate doesn't include the size of the
SpatialReference
object because instances ofSpatialReference
are expected to be shared among geometry objects.- Returns:
- Returns an estimate of this object size in bytes.
-
hashCode
public int hashCode()
-