public class

GeographicTransformation

extends Object
java.lang.Object
   ↳ com.esri.core.geometry.GeographicTransformation

Class Overview

Class representing a transformation to project from one spatial reference to another. To create one of supported transformations, use one of the static create methods in this class.

The list of Well-known ID's is available here: Datum Transformations

Summary

Public Methods
static GeographicTransformation create(String wkt)
static GeographicTransformation create(String wkt, boolean transformForward)
Creates an instance of geographic transformation.
static GeographicTransformation create(int wkid, boolean transformForward)
Creates an instance of geographic transformation.
static GeographicTransformation create(int wkid)
static GeographicTransformation fromJson(String json)
static GeographicTransformation fromJson(JsonParser parser)
int getLatestWkid()
int getWkid()
Gets the well-known id that was set; 0 if not set.
String getWkt()
Gets the well-known text.
boolean isTransformForward()
String toJson()
String toString()
Returns string representation of the class for debugging purposes.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public static GeographicTransformation create (String wkt)

Parameters
wkt String
Returns
GeographicTransformation

public static GeographicTransformation create (String wkt, boolean transformForward)

Creates an instance of geographic transformation.

Parameters
wkt String: Well-known text.
transformForward boolean
Returns
GeographicTransformation an instance of geographic transformation.
Throws
IllegalArgumentException if input is null or empty.
RuntimeException if failed to create an instance.

public static GeographicTransformation create (int wkid, boolean transformForward)

Creates an instance of geographic transformation.

Parameters
wkid int: Well-known ID.
transformForward boolean
Returns
GeographicTransformation an instance of geographic transformation.
Throws
IllegalArgumentException if input is zero or negative.
RuntimeException if failed to create an instance.

public static GeographicTransformation create (int wkid)

Parameters
wkid int
Returns
GeographicTransformation

public static GeographicTransformation fromJson (String json)

Parameters
json String
Returns
GeographicTransformation
Throws
Exception

public static GeographicTransformation fromJson (JsonParser parser)

Parameters
parser JsonParser
Returns
GeographicTransformation
Throws
Exception

public int getLatestWkid ()

Returns
int

public int getWkid ()

Gets the well-known id that was set; 0 if not set.

Returns
int the wkid

public String getWkt ()

Gets the well-known text.

Returns
String the wktxt the well-known text that was set; null if not set.

public boolean isTransformForward ()

Returns
boolean

public String toJson ()

Returns
String

public String toString ()

Returns string representation of the class for debugging purposes. The format and content of the returned string is not part of the contract of the method and is subject to change in any future release or patch without further notice.

Returns
String