Produces a new layer which is the geometric intersection of the two input polygon layers.
The function works only for polygon with polygon intersections.
For intersection of layers with different geometries use
Input Layers
Result
Result overlayed with the inputs
Parameters
Expression | Explanation |
---|---|
Function Name | IntersectPolygons |
<input dataset> | A String representing the input layer. Must be of Polygon type. |
<Intersect Dataset> | A String representing the layer to be used for intersect. Must be of Polygon type. |
<output dataset> | A String - the full name of the output layer. |
ETGWPath used in the table below is the full path to ETGWRun.exe (E.G. "C:\Program Files\ETSpatial Techniques\ETGeo Wizards\ETGWRun.exe")
Language | Syntax |
---|---|
Python | subprocess.call([ETGWPath, "IntersectPolygons", "input dataset", "Intersect Dataset", "output dataset"]) |
.NET using ETGWRun.exe | StartInfo.FileName = ETGWPath StartInfo.Arguments = "IntersectPolygons" "input dataset" "Intersect Dataset" "output dataset" |
.NET using ETGWOutX.dll | IntersectPolygons(input dataset, Intersect Dataset, output dataset) |
ArcPy | arcpy.IntersectPolygons(input dataset, Intersect Dataset, "output dataset") |
Notes:
<> - required parameter
{} - optional parameter
The argument separator for StartInfo.Arguments is space. If a string might contain a space, you need to double quote it.