Densify

The “densify” operation allows to create new points between existing vertices in the geometry specified by the user.

Example of request:

http://galileo.icc.cat/arcgis/rest/services/Utilities/Geometry/GeometryServer/densify?sr=25831&geometries={"geometryType":"esriGeometryPolyline","geometries":[{"paths":[[[418000,4584800],[418500,4584800],[418500,4585000],[418000,4585000],[418000,4584800]]]}]}&maxSegmentLength=500&geodesic=false&lengthUnit=9001&f=json&token=WgTR74xQdSvkHVECel6pSEijFKWafsP3g9DLA8WYg1sD3ycDBOx4g-Vj_i4xHhus

and related response:

{
  "geometryType": "esriGeometryPolyline",
   "geometries": [
     {"paths": [[[418000,4584800],[418500,4584800],
                     [418500,4585000],[418000,4585000],[418000,4584800]
  ]]}]
}

Service parameters

Parameter

Description

f

Response format

Valid values: html | json
Deafult value: html

geometries

Array of geometries to be densified . The syntax of this parameter should be:

{
"geometryType" : ""
"geometries" : [ , ]
}

sr

Reference system identifier used to describe geometries.

maxSegmentLength

All line segments longer than this new magnitude for smaller segments.

geodesic

A flag that has to be equal to “true”, when working on a geographic coordinate system.

Valid values: : true | false

Default value: false

lengthUnit

Unity of distance used in the parameter “maxSegmentLength”. See the list of possible values

token

Required security key in order to perform this function which is generated by filling in the corresponding form

Additional information