Cut
The “cut” operation allows to generate new polygons or polylines by splitting the polylines or polygons specified by the user which intersect with the cutting polyline.
The following figures show the result of this operation. Light blue lines (3) are divided obtaining a total of five (5) lines.
Example of request:
and related response:
{
"geometryType": "esriGeometryPolygon",
"geometries": [
{"rings": [[[418500,4584900],[418000,4584900],[418000,4585000],
[418500,4585000],[418500,4584900]]]}
,
{"rings": [[[418000,4584900],[418500,4584900],[418500,4584800],
[418000,4584800],[418000,4584900]]]}
],
"cutIndexes": [0,0]
}
Service parameters
Parameter | Description |
---|---|
f | Response format Valid values: html | json |
Polyline used to divide the specified geometries to the ‘target’ parameter where intersect. The syntax of this parameter should be: | |
Array of geometries from which the resulting elements of the intersection with the polyline specified at the “polylines” parameter are required. The syntax of this parameter should be: | |
Reference system identifier used to describe geometry resulting from operation | |
token | Required security key in order to perform this function which is generated by filling in the corresponding form. |