- URL:
- https://<root>/Utilities/Geometry/GeometryServer/findTransformations
- Methods:
GET- Version Introduced:
- 10.3
Description
The find operation is performed on a geometry service resource. This operation returns a list of applicable geographic transformations you should use when projecting geometries from the input spatial reference to the output spatial reference. The transformations are in JSON format and are returned in order of most applicable to least applicable. Recall that a geographic transformation is not needed when the input and output spatial references have the same underlying geographic coordinate systems. In this case, find returns an empty list.
Every returned geographic transformation is a forward transformation, meaning that it can be used as-is to project from the input spatial reference to the output spatial reference. When a predefined transformation needs to be applied in the reverse direction, it is returned as a forward composite transformation containing one transformation and a transform element with a value of false. See the examples given below.
You can provide arguments to the find operation as query parameters defined in the following parameters table.
Request parameters
| Parameter | Details |
|---|---|
(Required) | Specifies the well-known ID (WKID) of the spatial reference or a spatial reference JSON object for the input geometries. For a list of valid WKID values, see Using spatial references. |
(Required) | Specifies the WKID of the spatial reference or a spatial reference JSON object for the projected geometries. For a list of valid WKID values, see Using spatial references. |
(Optional) | Sets the bounding box of the area of interest specified as a JSON envelope. If provided, the extent of interest is used to return the most applicable geographic transformations for the area. If a spatial reference is not included in the JSON envelope, the |
(Optional) | Specifies the number of geographic transformations to return. The default value is 1. If |
(Optional) | Specifies whether or not to check for vertical transformations. The default value is Values: |
| The response format. The default format is Values: |
Examples
This example finds the top two transformations that should be used when projecting data from GCS (WKID 4267) to GCS (WKID 4269).
https://organization.example.com/<context>/rest/services/Utilities/Geometry/GeometryServer/findTransformations?inSR=4267&outSR=4269&numOfResults=2&f=pjsonThe first transformation is a single forward geographic transformation. The second transformation is a forward composite transformation containing two geographic transformations. It will first apply the transformation 8073 in the forward direction from NAD 27 to WGS 84. It will then apply 8494 in the reverse direction from WGS 84 to NAD 83. Note that although the second transformation in the composite transformation is applied in the reverse direction, the entire composite transformation is a forward transformation. You can copy and paste the composite transformation, or any transformation returned by find, into the project operation as-is without having to change the default direction which is forward.
The output looks like the following:
[
{
"wkid": 108001,
"latestWkid": 1241,
"name": "NAD_1927_To_NAD_1983_NADCON"
},
{
"geoTransforms": [
{
"wkid": 8073,
"latestWkid": 1173,
"transformForward": true,
"name": "NAD_1927_To_WGS_1984_4"
},
{
"wkid": 8494,
"latestWkid": 1515,
"transformForward": false,
"name": "NAD_1983_To_WGS_1984_5"
}
]
}
]