FRAMES | NO FRAMES | Description | Parameters | Examples | Response |

URL | `http://<geometryservice-url>/intersect` |
---|---|

Parent Resource | Geometry Service |

The intersect operation is performed on a geometry service resource. This operation constructs the set-theoretic intersection between an array of geometries and another geometry

You can provide arguments to the intersect 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: An array of points, multipoints, polylines or polygons. 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:{ { "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]] ] } ] } |

geometry | Description: A single geometry of any type, of dimension equal to or greater than the elements of "geometries". The structure of geometry is same as the structure
of the JSON geometry objects returned by the ArcGIS REST API. The use of simple syntax is not supported. Syntax and Examples: ## JSON Structures:Syntax:{ { |

sr | Description: The well-known ID or a spatial reference json object for the input geometries. For a list of valid WKID values, see Projected coordinate Systems and Geographic coordinate Systems. |

**Example 1: Calculate Intersection of two polygons**

sr=4269

&geometries={%22geometryType%22+%3A+%22esriGeometryPolygon%22%2C%22spatialReference%22+%3A{%22wkid%22+%3A+4269}%2C%22geometries%22+%3A[{%22rings%22+%3A+[[[-75.48928066099995%2C39.714858219000064]%2C[-75.4759742679999%2C39.720084384000074]%2C[-75.47476845699993%2C39.741832093000085]%2C[-75.46039411899994%2C39.763362027000085]%2C[-74.73882472699995%2C40.17772564400008]%2C[-74.9166543419999%2C39.17063854200006]%2C[-75.01440707699993%2C39.198363837000045]%2C[-75.11995811199995%2C39.18469178100008]%2C[-75.4156722749999%2C39.374971842000036]%2C[-75.55276303999995%2C39.49051430700007]%2C[-75.5166888839999%2C39.56656841600005]%2C[-75.57023418699993%2C39.61773496300009]%2C[-75.48928066099995%2C39.714858219000064]]]}]}

&geometry={%22geometryType%22+%3A+%22esriGeometryPolygon%22%2C%22spatialReference%22+%3A{%22wkid%22+%3A+4269}%2C%22geometry%22+%3A{%22rings%22+%3A+[[[-75.48928066099995%2C39.714858219000064]%2C[-75.4759742679999%2C39.720084384000074]%2C[-75.47476845699993%2C39.741832093000085]%2C[-75.46039411899994%2C39.763362027000085]%2C[-74.73882472699995%2C40.17772564400008]%2C[-75.48928066099995%2C39.714858219000064]]]}}

&f=html

"geometryType" : "<esriGeometryPoint | esriGeometryMultipoint | esriGeometryPolyline | esriGeometryPolygon>"

"geometries" : [ <geometry1>, <geometry2> ]

}

{ "geometryType" : "esriGeometryPolygon", "geometries" : [ { "rings" : [ [ [-75.475803134, 39.7231709100001], [-75.474768457, 39.741832093], [-75.4603941189999, 39.763362027], [-74.738824727, 40.1777256440001], [-75.475803134, 39.7231709100001] ] ] } ] }