SpatialRefSys

Calculate geometry length on SRS

post/api/component/spatial_ref_sys/{id}/geom_length

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_length
  • Auth: none declared

Path parameters

idinteger required

Spatial reference system ID

Example:4326

Request body

srsinteger

Spatial reference system ID

geom_format'geojson' | 'wkt'

Format of the geometry data

Example request

{
  "srs": 4326,
  "geom_format": "geojson",
  "geom": "LINESTRING(30 10, 10 30, 40 40)"
}

Response

Calculated length value in the SRS units

valuenumber required

Changes

No recorded changes to this operation across all 1 revision of this API.