1

I created a single shapefile that contains multiple polygons by selection by location of the route I had and the ESRI USA counties polygon layer to give me the counties that were in the area I was interested in.

I want to know if there is a tool to use that can take that new shapefile I created of only the new polygons in my area of interest into an individual shapefile for each county. So say there were 25 counties that crossed my route, I'd like to have a quick way to get shapefiles individually for each 25 counties.

I'm sure there is a quick script for this, but I'm not too familiar with scripts didn't know if there was quick easy way for this than exporting each individually into shapefiles.

I'm also using ArcMap 10.2

marked as duplicate by Chris W, PolyGeo Mar 4 '15 at 0:53

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

5

Use an iterator in your model, specifically the Iterate Feature Selection iterator, then use Copy Features to output each feature to it's own feature class.

Your model will look something like this:

enter image description here

The element called Value temporarily stores the name of the current feature in the iterator.

I've also added a variable for a Folder called OutputFolder that points to a folder path on my drive.

Here's how you use both the variables in the output of copy features:

enter image description here

And here's what the folder of outputs looks like:

enter image description here

  • 1
    Thank you mapBaker that is exactly what I was looking for! I couldn't find the Copy Feature tool, but finally found it. Save so much time – Pete Mar 10 '15 at 22:14
  • @Pete great!!! Glad to help! – DPSSpatial Mar 11 '15 at 14:35
3

Split Layers by Attributes check out this python toolbox. Split Layer by Attributes, county being the attribute you want

  • In the Arctoolbox I just see the tool Mulipart to Singlepart, not the singlepart to multipart. I'm in the data management toolbox>Featuures toolbox – Pete Mar 3 '15 at 16:04
  • I don't think this is the right tool, I'm trying to get a shapefile for each county in my attribute table, which is close to 25 counties – Pete Mar 3 '15 at 16:28
  • do you have a shapefile that is all of these 25 counties combined? – Maksim Mar 3 '15 at 16:29
  • Yes they are all in one shapefile. Trying to get those into single shapefiles in a quick way – Pete Mar 3 '15 at 16:36
  • arcscripts.esri.com/details.asp?dbid=14127 check out this python toolbox. Split Layer by Attributes, county being the attribute you want – Maksim Mar 3 '15 at 16:44

Not the answer you're looking for? Browse other questions tagged or ask your own question.