Skip to main content
Solved

How to split one shape file into multiple shape files, each from one row?

  • August 2, 2016
  • 1 reply
  • 308 views

aguan
Contributor
Forum|alt.badge.img+11
  • Contributor

I have a polygon shape file containing a few dozens of rows. How can I split the shape file into many shape files, each containing only one row?

Best answer by redgeographics

In the writer feature type parameters you can set the shapefile name, if you select an attribute there it will make a new shapefile for each unique value of that attribute, so if you have an attribute with a unique identifyer it'll create one shapefile per feature (and if you don't have such an attribute you can use the Counter to create it.

So here for example I've picked the attribute "id" as my shapefile name.

Hope this helps.

View original
Did this help you find an answer to your question?

1 reply

redgeographics
Celebrity
Forum|alt.badge.img+49
  • Celebrity
  • Best Answer
  • August 2, 2016

In the writer feature type parameters you can set the shapefile name, if you select an attribute there it will make a new shapefile for each unique value of that attribute, so if you have an attribute with a unique identifyer it'll create one shapefile per feature (and if you don't have such an attribute you can use the Counter to create it.

So here for example I've picked the attribute "id" as my shapefile name.

Hope this helps.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings