Auto Complete
- URL:https://<geometryservice-url>/autoComplete
- Version Introduced:10.0
Description
The autoComplete operation is performed on a geometry service resource. The autoComplete operation simplifies the process of constructing new polygons that are adjacent to other polygons. It constructs polygons that fill in the gaps between existing polygons and a set of polylines.
This operation calls simplify on the input polygons and polylines.
You can provide arguments to the autoComplete operation as query parameters defined in the following parameters table:
Request parameters
Parameter |
Details |
---|---|
f |
The response format. The default response format is html. Values: html | json |
polygons |
The array of polygons that will provide some boundaries for the new polygons. The spatial reference of the polygons is specified by sr. The structure of the polygon in the array is the same as the structure of the JSON polygon objects returned by the ArcGIS REST API. JSON structures: Syntax:
Example:
|
polylines |
An array of polylines that will provide the remaining boundaries for new polygons. The spatial reference of the polylines is specified by sr. The structure of polylines in the array is the same as the structure of JSON polyline objects returned by the ArcGIS REST API. JSON structures Syntax:
Example:
|
sr |
The well-known ID or a spatial reference JSON object for the input polygons and polylines. For a list of valid WKID values, see Projected coordinate systems and Geographic coordinate systems. |
Example usage
This example constructs completion lines between two parts of a multipart polygon.
JSON Response syntax
{
"geometries" : [ <geometry1>, <geometry1>, ..., <geometryN> ]
}
JSON Response example
{"geometries": [{
"rings": [[
[
120.00000000000011,
-59.99999999999994
],
[
110.00000000000006,
-59.99999999999994
],
[
110.00000000000006,
5.6843418860808015E-14
],
[
120.00000000000011,
5.6843418860808015E-14
],
[
120.00000000000011,
-59.99999999999994
]
]],
"spatialReference": {
"wkid": 4269,
"latestWkid": 4269
}
}]}