0

I am using ArcGIS 10.2.

How to use ArcPy code to extract every row in the attribute table and save each row to separate shapefiles?

PolyGeo
  • 65,136
  • 29
  • 109
  • 338
Rachel
  • 79
  • 1
  • 9

1 Answers1

1

Use the Split tool, as described here: https://support.esri.com/en/technical-article/000008282

In newer versions of ArcGIS, you can use the Split By Attributes tool.

Tom
  • 4,128
  • 1
  • 20
  • 38
  • Thank you. Do you know if there is a way to clip line features with every polygon I extract and save as separate line shapefiles? – Rachel Jun 27 '18 at 19:29
  • @Rachel, for that, you can just use the Split tool again. If you have specific needs for where everything is stored or how the outputs are named, then you might need to resort to ArcPy, but the general needs can be met simply with Split. – Tom Jun 27 '18 at 20:00
  • I don't have the split attributes in the line shapefile. I wonder how to use the polygons to quickly clip with less steps. – Rachel Jun 27 '18 at 20:40
  • @Rachel, run Split using the lines as the input features and using the polygons as the split features. – Tom Jun 27 '18 at 21:41