require(["esri/geometry/support/GeographicTransformation"], (GeographicTransformation) => { /* code goes here */ });
import GeographicTransformation from "@arcgis/core/geometry/support/GeographicTransformation.js";
esri/geometry/support/GeographicTransformation
Projecting your data between coordinate systems sometimes requires transforming between geographic coordinate systems. Geographic transformations are used to transform coordinates between spatial references that have different geographic coordinate systems, and thus different datums. Using the most suitable transformation ensures the best possible accuracy when converting geometries from one spatial reference to another.
The projection module provides the getTransformation() and getTransformations() methods which return the default geographic transformation for the given projection or a list of suitable geographic transformations.
Known Limitations
Currently, the client-side projection engine only supports equation-based geographic transformations.
- See also
Constructors
-
Parameterproperties Objectoptional
See the properties for a list of all the properties that may be passed into the constructor.
Property Overview
Name | Type | Summary | Class |
---|---|---|---|
Geographic transformation steps. | GeographicTransformation |
Property Details
-
steps
steps GeographicTransformationStep[]
-
Geographic transformation steps. Each step represents a geographic transformation that will be used in the process of transforming coordinates from one geographic coordinate system to another.
Method Overview
Name | Return Type | Summary | Class |
---|---|---|---|
Returns the inverse of the geographic transformation calling this method or | GeographicTransformation |
Method Details
-
getInverse
getInverse(){GeographicTransformation}
-
Returns the inverse of the geographic transformation calling this method or
null
if the transformation is not invertible. The inverse of a transformation converts coordinates using the same method and parameters, but in the opposite direction of the original object. For example if the original object represents theNAD_1983_HARN_To_NAD_1983_NSRS2007_1
transformation, then the inverse will transform fromNAD 83 (NSRS 2007)
toNAD 83 (HARN)
.ReturnsType Description GeographicTransformation Returns the inverse of the datum transformation or null
if the transformation is not invertible.