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?

5
  • What do you mean "extract every attribute"?
    – Tom
    Commented Jun 27, 2018 at 17:57
  • 1
    Please add a code sample of what you have tried so far
    – Bjorn
    Commented Jun 27, 2018 at 18:02
  • What kind of output/result do you want?
    – Tom
    Commented Jun 27, 2018 at 18:02
  • need to re-define your question
    – NULL.Dude
    Commented Jun 27, 2018 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
    Commented Jun 27, 2018 at 18:25

1 Answer 1

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.

4
  • 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
    Commented Jun 27, 2018 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
    Commented Jun 27, 2018 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
    Commented Jun 27, 2018 at 20:40
  • @Rachel, run Split using the lines as the input features and using the polygons as the split features.
    – Tom
    Commented Jun 27, 2018 at 21:41

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