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(com.fasterxml.jackson.core.JsonParser parser)
Returns spatial reference from the JsonParser.
|
static SpatialReference |
fromJson(JsonReader parser) |
static SpatialReference |
fromJson(String string) |
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(com.fasterxml.jackson.core.JsonParser parser) throws Exception
parser
- The JSON parser.Exception
- if parsing has failedpublic static SpatialReference fromJson(String string) throws Exception
Exception
public static SpatialReference fromJson(JsonReader parser) throws Exception
Exception
public abstract int getID()
public abstract String getText()
public double getTolerance()
public String toString()
Copyright © 2018. All rights reserved.