com.esri.core.geometry
public abstract class SpatialReference extends Object implements Serializable
Constructor and Description |
---|
SpatialReference() |
Modifier and Type | Method and Description |
---|---|
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 |
fromJson(org.codehaus.jackson.JsonParser parser)
Returns spatial reference from the JsonParser.
|
abstract int |
getID()
Returns the well known ID for the horizontal coordinate system of the
spatial reference.
|
abstract String |
getText() |
double |
getTolerance()
Returns the XY tolerance of the spatial reference.
|
String |
toString()
Returns string representation of the class for debugging purposes.
|
public static SpatialReference create(int wkid)
wkid
- The well-known 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 fromJson(org.codehaus.jackson.JsonParser parser) throws Exception
parser
- The JSON parser.Exception
- if parsing has failedpublic abstract int getID()
public abstract String getText()
public double getTolerance()
public String toString()
Copyright © 2015. All Rights Reserved.