Coordinate System transformation
Description¶
Models with spatial domain can be transformed from one coordinate system to another. This transformation has two parameters:
inputSrid
: Input spatial reference ID indicating the input coordinate system. This parameter is optional, the model's SRID is used when missing. This parameters is intended for situations when the coordinate system definition of input data is not recognized by the Platform, or when the definition is not defined at all. For instance, XYZ files lack a coordinate system definition. So, when importing XYZ to GIS service, set this parameter. Otherwise the EPSG:4326 (also known as WGS84, LonLat, etc.) is assumed. Note: Setting this parameter does not transform the input data in any way, it just declares that the input data is in the specified coordinate system.outputSrid
Output (target) spatial reference ID indicating the output coordinate system.
For complete list of coordinate systems see the Coordinate System
endpoints on the GIS Service
.
Example¶
This request to /api/conversion/upload-convert
{
"readerName": "<reader name>",
"writerName": "<writer name>",
...
"transformations": [
{
type: "CrsTransformation",
inputSrid: 4326,
outputSrid: 27700
}
]
}
var transferResult = await transferClient
.CreateFileImport(projectId, "<local file>")
...
.WithCoordinateSystemTransformation(27700, 4326)
...
.ExecuteAsync();