com.esri.core.geometry
Class MapGeometry

java.lang.Object
  extended by com.esri.core.geometry.MapGeometry
All Implemented Interfaces:
Serializable

public class MapGeometry
extends Object
implements Serializable

This is a simple convenience wrapper to have the Geometry and the Spatial Reference to be bundled together.

See Also:
Serialized Form

Constructor Summary
MapGeometry(Geometry g, SpatialReference sr)
          Construct a MapGeometry instance using the specified Geometry instance and its corresponding SpatialReference
 
Method Summary
 Geometry getGeometry()
          Geometry, that does not know of the SR.
 SpatialReference getSpatialReference()
          The Geometry's spatial reference.
 void setGeometry(Geometry geometry)
          Sets the Geometry.
 void setSpatialReference(SpatialReference sr)
          Sets the SpatialReference.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MapGeometry

public MapGeometry(Geometry g,
                   SpatialReference sr)
Construct a MapGeometry instance using the specified Geometry instance and its corresponding SpatialReference

Parameters:
g - - the Geometry
sr - - the Geometry's SpatialReference
Method Detail

getGeometry

public Geometry getGeometry()
Geometry, that does not know of the SR.


setGeometry

public void setGeometry(Geometry geometry)
Sets the Geometry.


setSpatialReference

public void setSpatialReference(SpatialReference sr)
Sets the SpatialReference.


getSpatialReference

public SpatialReference getSpatialReference()
The Geometry's spatial reference.



Copyright © 2010. All Rights Reserved.