Trim or Extend a Line
The operation ‘trimExtend’ allows to modify the polylines specified by the user, extending or trimming them according to the polyline also specified by the user.
The following illustrations show the result of this operation. The vertical lineal elements are to be trim/extended according to the green line horizontally arranged.
Example of request:
and related response:
{
"geometryType": "esriGeometryPolyline",
"geometries": [{"paths": [[
[417500,4584975],[417600,4584975]
]]}]
}
Service parameters
Parameter | Description |
---|---|
f | Response format Valid values: html | json |
An array of polylines to be cut or extended. The syntax of this parameter should be: | |
Polyline used as reference to trim or extend previous polylines. | |
Reference system identifier related to geometries | |
extendHow | Identifier that determines the result if the extend operation. Valid values: 0 | 1 | 2 | 4 | 8 | 16. 0: the extension can be made to either end of the lines and the original end nodes are respected. |
token | Required security key in order to perform this function which is generated by filling in the corresponding form. |