1

I used the point to line tool in order to create lines going from one point to another. Each line essentially represents the route taken by an individual. How would I be able to separate the lines by the individuals name or objectid?

Each row has an independent line associated with it and I would like to take the shapefile shown in the screenshot and split it into multiple shapefiles depending on the name.

  • By separate do you mean multipart to single part? – artwork21 Mar 16 '17 at 19:17
  • Can you please confirm that these are multipart polylines rather than must multiple polyline features? A multipart polyline has one record made up of different spatial parts (lines with gaps), however what you have shown in your screenshot is multiple records. – Midavalo Mar 16 '17 at 19:34
  • I am unsure of what you would actually call it I guess. Each row has an independent line associated with it and I would like to take the shapefile shown in the screenshot and split it into multiple shapefiles depending on the name. hopefully this explanation helps a little bit more. – Devin Mendez Mar 16 '17 at 20:05
  • @Devin Please always edit your question to include additional information or clarification, rather than adding as comments – Midavalo Mar 16 '17 at 20:19
  • @Devin Are the values in Name unique? – Midavalo Mar 16 '17 at 20:19
2

The simplest way (without using Python) would be to select your line in the table (interactively or with SQL query) and save the selection as new shapefile. This is ok if you don't have too many individual lines you want to create; If you do,USGS has a nice plugg-in for this purpose : https://www.umesc.usgs.gov/management/dss/split_by_attribute_tool.html

or use arcpy.SelectLayerByAttribute_management in a loop.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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