|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.esri.core.geometry.SpatialReference
public class SpatialReference
An abstract class that represent the spatial reference for the geometry. SpatialReference classes are immutable.
| Nested Class Summary | |
|---|---|
static class |
SpatialReference.Type
The spatial reference type can be local, geographic, or projected. |
| Constructor Summary | |
|---|---|
SpatialReference(String wktext)
|
|
| Method Summary | |
|---|---|
static SpatialReference |
create(int wkid)
Creates an instance of the spatial reference based on the provided well known ID for the horizontal coordinate system. |
static SpatialReference |
create(String wktext)
Creates an instance of the spatial reference based on the provided well known text representation for the horizontal coordinate system. |
static SpatialReference |
createLocal()
Creates a local spatial reference. |
static SpatialReference |
createLocal(Unit unit)
Creates a local spatial reference. |
static SpatialReference |
fromJson(org.codehaus.jackson.JsonParser parser)
Returns spatial reference from JsonParser. |
Point[] |
fromMilitaryGrid(String[] mgrsStrings,
int mgrsConversionMode)
Converts Military Grid strings into coordinates. |
SpatialReference.Type |
getCoordinateSystemType()
Returns map projection type. |
SpatialReference |
getGCS()
Get the Geographic Coordinate System of the spatial reference. |
int |
getID()
Returns the well known ID for the horizontal coordinate system of the spatial reference. |
int |
getLatestID()
Returns the most current well known ID, the Geometry engine knows about, for the horizontal coordinate system. |
int |
getOldID()
Returns the oldest value of the well known ID for the horizontal coordinate system of the spatial reference. |
String |
getText()
Returns the well known text for the for the horizontal coordinate system of the spatial reference. |
double |
getTolerance()
Get the XY tolerance of the spatial reference |
Unit |
getUnit()
Returns the unit from a spatial reference |
String[] |
toMilitaryGrid(int mgrsConversionMode,
int numOfDigits,
boolean rounding,
boolean addSpaces,
Point[] coordinates)
Converts a list of coordinates into military grid strings. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SpatialReference(String wktext)
| Method Detail |
|---|
public static SpatialReference create(int wkid)
wkid - The well know ID.
IllegalArgumentException - if wkid is not supported or does not exist.public static SpatialReference create(String wktext)
wktext - The well-known text string representation of spatial reference.
public static SpatialReference createLocal(Unit unit)
unit - The unit of the local coordinate system.
public static SpatialReference createLocal()
public static SpatialReference fromJson(org.codehaus.jackson.JsonParser parser)
throws Exception
parser - The JSON parser.
Exception - if parsing has failedpublic SpatialReference.Type getCoordinateSystemType()
public int getID()
public int getLatestID()
public int getOldID()
public String getText()
public Unit getUnit()
public String[] toMilitaryGrid(int mgrsConversionMode,
int numOfDigits,
boolean rounding,
boolean addSpaces,
Point[] coordinates)
mgrsConversionMode - use the MgrsConversionMode interface for conversion optionsnumOfDigits - rounding - addSpaces - coordinates -
public Point[] fromMilitaryGrid(String[] mgrsStrings,
int mgrsConversionMode)
mgrsStrings - Strings to convert to points.mgrsConversionMode - use the MgrsConversionMode interface for conversion options.
public double getTolerance()
public SpatialReference getGCS()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||