1

I have a shapefile with several forest data. One of the field is called forest types.

I would create a shapefile for each forest type so Select tool with an easy SQL Expression, such as "forest types" = 'larch' and then "forest types" = 'spruce', but I would automate this operation with ModelBuilder and not changing every time the attribute for selection.

How can I do this?

marked as duplicate by Hornbydd, whyzar, mgri, Midavalo Feb 14 '17 at 17:07

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.

  • 1
    Have you tried Iterate Feature Selection with forest type as Group field: desktop.arcgis.com/en/arcmap/10.3/tools/modelbuilder-toolbox/… – BERA Feb 14 '17 at 13:01
  • 1
    ArcGIS 10.5 has "Split By Attributes", available with any license. – klewis Feb 14 '17 at 16:37
  • @BERA , you solved my problem! I didn't answer so early because I tried your solution and it didn't work in the beginning. I think for a bug. After several tests, I made the shapefiles I wanted with your answer. Thanks! – Lion Feb 14 '17 at 16:51
1

You can use Iterate Feature Selection with Forest type as Group By Field:

enter image description here

Then pass the selection on to Copy Features. Use %Value% in output feature class to name the shapefiles after forest type.

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