- Version Introduced:10.0
The densify operation is performed on a geometry service resource. This operation densifies geometries by plotting points between existing vertices.
At 10.1 and later, this operation calls simplify on the input geometries when geodesic=true.
You can provide arguments to the densify operation as query parameters defined in the following parameters table:
The response format. The default response format is html. Values: html | json
Description: The array of geometries to be densified. The structure of each geometry in the array is the same as the structure of the JSON geometry objects returned by the ArcGIS REST API.
The "geometries" property is an array of input geometries. All geometries in this array should be of the type defined by "geometryType".
Description: All segments longer than maxSegmentLength are replaced with sequences of lines no longer than maxSegmentLength.
Description: (Optional) If geodesic is set to true, geodesic distance is used to calculate maxSegmentLength. Geodesic distance is the shortest path between two points along the ellipsoid of the earth. If geodesic is set to false, 2D Euclidean distance is used to calculate maxSegmentLength. The default is false.
Description: (Optional) The length unit of maxSegmentLength. If geodesic is set to false, the units are derived from sr, and lengthUnitis ignored. If geodesic is set to true, lengthUnit must be a linear unit. In a case where lengthUnit is not specified and sris a PCS, the units are derived from sr. In a case where lengthUnit is not specified and sris a GCS, the units are meters. For a list of valid units, see esriSRUnitType Constants and esriSRUnit2Type Constants.
In this example, a polyline is densified such that the geodesic length of every segment is less than or equal to 1,000 miles.
JSON Response syntax
"geometryType" : "<esriGeometryPoint | esriGeometryMultipoint | esriGeometryPolyline | esriGeometryPolygon>"
"geometries" : [ <geometry1>, <geometry1>, ..., <geometryN> ]
JSON Response example