TransformDiscretePoints Service - v1.4
Introduction
The TransformDiscretePoints service will perform a coordinate transformation between world points (lon/lat) and pixel points within a discrete image. This transformation can occur in either direction:
world point to pixel point
pixel point to world point
This service is useful when identifying the exact location on Earth as represented in a discrete image’s pixel geometry or vice versa.
Technical Details
The TransformDiscretePoints service is accessed by specifying the transformation direction (mode
), the discrete image (discreteid
), and coordinates (points
). Because this service can transform points in either direction it is important to correctly pair the mode and point formats (e.g. if mode=discretepixel
then points must be world points (lon, lat)). Pixel points are defined within a discrete image as the origin point (0,0) being the top-left corner of the image. Batch transformations can occur by providing more than one pair of points in a single service call.
Output File Specifications:
File format: xml, json, jsonp
Base URL
This service will answer requests on the following URLs:
Ordered as HTTP REST parameters (mandatory parameters only):
https://api.gic.org/metadata/TransformDiscretePoints/{format}/{mode}/{discreteid}/{points}/{EPSG}?token={token}
Base URL with parameters defined as a mix of REST and Key Value Pairs
https://api.gic.org/metadata/TransformDiscretePoints/{format}/{mode}/{discreteid}?points={points}&EPSG={EPSG}&jsonpFunction={jsonpFunction}&precision={precision}&token={token}
Base URL with all parameters defined:
https://api.gic.org/metadata/TransformDiscretePoints?format={format}&mode={mode}&discreteid={discreteid}&points={points}&EPSG={EPSG}&jsonpFunction={jsonpFunction}&precision={precision}&token={token}
Parameters
Parameter | Parameter Type | Data Type | Description | Example Format | Notes |
---|---|---|---|---|---|
Mandatory: | |||||
| Ordered REST (1st) - or - Key Value Pair (KVP) | String | The format of the response file.
| Ordered REST: | The jsonp padding name can be defined with the use of the |
| Ordered REST (2nd) - or - Key Value Pair | String | The work modes of the service. These work modes determine how the provided coordinates will be interpreted.
| Ordered REST: |
|
| Ordered REST (3rd) - or - Key Value Pair | String | The ID(s) for the discrete image. | Ordered REST: | Use a service like FindImagesInPoint or FindImagesInPolygon to identify the |
| Ordered REST (4th) - or - Key Value Pair | Double | A group of coordinate pairs to be transformed. Depending on
| Ordered REST (World Points: Ordered REST (Pixel Points): | Multiple sets of coordinate pairs may be used, separated by commas. For example:
|
| Ordered REST (5th) - or - Key Value Pair | Integer | The EPSG code determines the projection of the provided coordinates. | Ordered REST: | More info on EPSG codes in External Resources |
| Key Value Pair | String | The token used to authenticate the requests. |
| Use the Authenticate Service to receive a token. A token will temporarily be stored in cache and may be omitted on subsequent calls. |
Optional: | |||||
| Key Value Pair | String | The customizable name of the padding function for |
| This parameter is only available if |
| Key Value Pair | String | The level of accuracy desired while transforming points.
|
|
|
Examples
Friendship Fountain, Jacksonville, Florida - Demonstrating mode=discretepixel
using multiple points
with precision=high
https://api.gic.org/metadata/TransformDiscretePoints/xml/discretepixel/2022~us-fl-jacksonville-2022~images~NN_20220219_170352_75_389376DF2815A7C_rgb/-81.659819,30.320020,-81.658588,30.320846,-81.657524,30.320095,-81.656697,30.319733/4326?precision=high&token={token}
Table of Parameters
Parameter | Value |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Input World Points
Results:
XML Output file:
<?xml version="1.0" encoding="UTF-8"?>
<TransformedPoints>
<points>
<Point>
<x>5022.6732652875025</x>
<y>5415.800164327448</y>
<z>0.0</z>
</Point>
<Point>
<x>6599.747946196218</x>
<y>4191.870722112792</y>
<z>0.0</z>
</Point>
<Point>
<x>7964.3274801469215</x>
<y>5297.516803667657</y>
<z>0.0</z>
</Point>
<Point>
<x>9026.831681477946</x>
<y>5830.729448761475</y>
<z>0.0</z>
</Point>
</points>
<EPSG>0</EPSG>
</TransformedPoints>
Transformed Pixel Points
Point Transformation Table:
Point | World Point | Pixel Point (xml format) |
---|---|---|
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
________________________________________________________________________________________
Fort Clinch, Fernandina Beach, Florida - Demonstrating mode=world
and precision=low
https://api.gic.org/metadata/TransformDiscretePoints?format=jsonp&mode=world&discreteid=2019~us-fl-fernandinabeach_midas-2019~images~NN_20190225_151830_75_38960187BDEA86B_rgb&points=6517,2755&epsg=4326&precision=low&jsonpFunction=SampleFunction&token={token}
Table of Parameters
Parameter | Value |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Input Pixel Points
Results:
jsonp Output file:
function SampleFunction() {return
{
"points": [
{
"x": -81.45385047479137,
"y": 30.70445609887719,
"z": 1.3469929695129395
}
],
"EPSG": 4326
}
}
Transformed World Points
Point Transformation Table:
Pixel Point | World Point (json format) |
---|---|
|
|
See Also
External Resources
Note, the following resources are external to Vexcel and may change without prior notice.
EPSG Codes: EPSG Geodetic Parameter Dataset
Related content
Need help? Create a support ticket | support@vexcelgroup.com