FRAMES | NO FRAMES | Description | Parameters | Examples | Response |
URL | http://<geometryservice-url>/densify |
---|---|
Parent Resource | Geometry Service |
The densify operation is performed on a geometry service resource. This operation
densifies geometries by plotting points between existing vertices.
From 10.1 onwards this operation will call Simplify on the input geometries
when geodesic=true
.
You can provide arguments to the densify operation as query parameters defined in the parameters table below.
Parameter | Details |
---|---|
f | Description: The response format.
The default response format is html. Values: html | json |
geometries | Description: The
array of geometries to be densified. The structure of each geometry in the array is
same as the structure of the json
geometry objects
returned by the ArcGIS REST API. Syntax and Examples: JSON Structures:Syntax:{ The
{ "geometryType" : "esriGeometryPolyline", "geometries" : [ { "paths" : [ [[-117,34],[-116,34],[-117,33]], [[-115,44],[-114,43],[-115,43]] ] }, { "paths" : [ [[32.49,17.83],[31.96,17.59],[30.87,17.01],[30.11,16.86]] ] } ] } |
sr | Description: The well-known ID or a spatial reference json object for the input polylines . For a list of valid
WKID values, see Projected coordinate Systems
and Geographic coordinate Systems. |
maxSegmentLength |
Description: All segments longer than maxSegmentLength are replaced with sequences of lines no longer than maxSegmentLength. |
geodesic |
Description: A flag that can be set to true if GCS spatial references are used or densify geodesic
is to be performed.
|
lengthUnit (optional) | Description: The length unit of maxSegmentLength, can be any esriUnits constant. In case not specified, if the SR is PCS, the unit is determined by unit of the SR, otherwise, it is meter. For a list of valid units, see esriSRUnitType Constants and esriSRUnit2TypeConstants. |
Example 1: In this example, a polyline is densified.
http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer/densify?{ "geometryType" : "<esriGeometryType>", "geometries" : [<geometry1>, <geometry2>] }
{ "geometryType" : "esriGeometryPolyline", "geometries" : [ { "paths" : [ [[-117,34],[-116,34],[-117,33]], [[-115,44],[-114,43],[-115,43]] ] }, { "paths" : [ [[32.49,17.83],[31.96,17.59],[30.87,17.01],[30.11,16.86]] ] } ] }