Thursday 24 October 2019

arcgis desktop - Computing geometric intersection (line-on-polygon overlay) using ArcPy?


I want to take geometric intersection of line and polygon shapefile. ArcPy has a tool:


arcpy.Identity_analysis

but it is available with "ArcGIS for Desktop Advanced" and I have "ArcGIS for Desktop Basic".


Is there any alternative tool that I can try?




Answer



The Intersect tool should provide a suitable alternative.


Both Intersect and Identity perform line-on-polygon overlays but the former keeps only lines sharing a common geography (which includes all geometric intersections) while the latter keeps all lines.


The same tool may be used to perform polygon-on-polygon overlays (with output_type of "LINE") to get line features where polygons intersect.


No comments:

Post a Comment

arcpy - Changing output name when exporting data driven pages to JPG?

Is there a way to save the output JPG, changing the output file name to the page name, instead of page number? I mean changing the script fo...