How to split polygons by overlapping feature in arcpy?

1941
5
04-21-2018 03:08 AM
Simeon_FranzWetzel
New Contributor

I wonder if there's a simple arcpy command to split polygons by overlapping polylines like this:

Splitting a polygon by an overlapping feature—Help | ArcGIS Desktop 

Usually Esri uses code snippets on their sites, so I guess it's a bit more complex.

Thanks!

0 Kudos
5 Replies
DanPatterson_Retired
MVP Emeritus

There are other 'split' options

http://pro.arcgis.com/en/pro-app/tool-reference/analysis/split.htm

what is it you need to do?

0 Kudos
Simeon_FranzWetzel
New Contributor

If a polygon (in my case a biotope) is intersected by the line featue (in my case a road) it has to be divided into two polygons, so that I have two features in the end.

0 Kudos
JoshuaBixby
MVP Esteemed Contributor

I agree with Dan, it would be helpful to provide a bit more information about what you are trying to accomplish.  Regarding the lack of code snippets, they don't exist on the page you reference because the page is describing how a GUI toolbar works, and you can't script against those.  If you want to script a workflow out, you need to use geoprocessing tools, like Dan suggested, or native ArcPy tools.

Simeon_FranzWetzel
New Contributor

Thanks for the answer Joshua! Like I answered Dan, I have polygons (feature class) which I want to split into new polygons if my line feature (another feature class) crosses the respective polygon. In my example (biotopes and road, see my answer to Dan) a biotope is actually two biotopes if there is a road going through. I already found this solution https://community.esri.com/thread/181151  but I wondered, if there was a simpler way to accomplish this with an easy arcpy function.

0 Kudos
DanPatterson_Retired
MVP Emeritus

No, the options have been listed in the threads above and on the linked post.

0 Kudos