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?

marked as duplicate by BERA, csk, PolyGeo arcpy Jun 27 '18 at 20:27

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.

  • What do you mean "extract every attribute"? – Tom Jun 27 '18 at 17:57
  • 1
    Please add a code sample of what you have tried so far – Bjorn Jun 27 '18 at 18:02
  • What kind of output/result do you want? – Tom Jun 27 '18 at 18:02
  • need to re-define your question – NULL.Dude Jun 27 '18 at 18:15
  • I mean I would like to extract every row in the attribute table of a shapefile. And save each of them to separate shapefiles. – Rachel Jun 27 '18 at 18:25
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.

  • 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

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