Select to view content in your preferred language

Best method to export multiple polygons from a feature layer?

1301
2
10-21-2020 01:19 PM
JamieHoffmann
Emerging Contributor

1. I have a feature layer of a state consisting of polygons for each county. I would like export each polygon within the feature to their own separate features. Instead of manually selecting each county one-by-one to export to its own feature, can I batch this task or write a python script for it? 

2. I have another feature layer consisting of 31k polygons. I would like to clip that feature to each county (from the question above) they are located in. Now I can do this manually by going through each county one by one and clipping the feature to the county boundaries or I can complete it using arcpy...Is it possible to perform all of this in one python script (tasks 1 and 2 listed above)? 

Thanks!

0 Kudos
2 Replies
DanPatterson
MVP Esteemed Contributor

for 1 .... Split By Attributes (Analysis)—ArcGIS Pro | Documentation 

for 2.... you would have to batch this Clip (Analysis)—ArcGIS Pro | Documentation 

As for an existing tool, no, but you could use modelbuilder with an iterator


... sort of retired...
JamieHoffmann
Emerging Contributor

That was helpful, thanks! Much appreciated. 

0 Kudos