SpatialRefSys
Transform geometry from one SRS to another
post/api/component/spatial_ref_sys/{id}/geom_transform
Request
- Base URL: https://demo.nextgis.ru (the document declares no server; this is the origin it was published from)
- URL: https://demo.nextgis.ru/api/component/spatial_ref_sys/{id}/geom_transform
- Auth: none declared
Path parameters
idinteger required
Spatial reference system ID
Example:4326
Request body
Example request
{
"srs": 4326,
"geom": "LINESTRING(30 10, 10 30, 40 40)"
}Response
Geometry reprojected into the target SRS
Example response
{
"geom": "GEOGCS[\"WGS 84\",DATUM[\"WGS_1984\",SPHEROID[\"WGS 84\",6378137,298.257223563,AUTHORITY[\"EPSG\",\"7030\"]],AUTHORITY[\"EPSG\",\"6326\"]],PRIMEM[\"Greenwich\",0,AUTHORITY[\"EPSG\",\"8901\"]],UNIT[\"degree\",0.0174532925199433,AUTHORITY[\"EPSG\",\"9122\"]],AUTHORITY[\"EPSG\",\"4326\"]]"
}Changes
No recorded changes to this operation across all 1 revision of this API.