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?

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
Lion
  • 85
  • 5
  • 1
    Have you tried Iterate Feature Selection with forest type as Group field: http://desktop.arcgis.com/en/arcmap/10.3/tools/modelbuilder-toolbox/iterate-feature-selection.htm – 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 Answers1

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.

BERA
  • 72,339
  • 13
  • 72
  • 161