Skip to main content
Question

Split a single input into several outputs based on attribute value

  • July 11, 2016
  • 3 replies
  • 1205 views

I have a single county parcel (polygon) .shp file that I need to break into several .shp files based on the value in the CITY field. That is if there are 25 cities in a particular county then I will have 25 resulting .shp files.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

jdh
Contributor
Forum|alt.badge.img+40
  • Contributor
  • July 11, 2016

You should be able to set the shapefile name to the CITY attribute on the writer feature type.


erik_jan
Contributor
Forum|alt.badge.img+26
  • Contributor
  • July 11, 2016

I agree with @jdh that this so called Fanout is the best option. If you need to process the different parcels based on the City attribute before writing, you could also use the AttributeFilter to split the data into different streams. You can use the import option on the AttributeFilter settings to find the diffrent values for City.


  • Author
  • July 11, 2016

I agree with @jdh that this so called Fanout is the best option. If you need to process the different parcels based on the City attribute before writing, you could also use the AttributeFilter to split the data into different streams. You can use the import option on the AttributeFilter settings to find the diffrent values for City.

Thank you both. In fact I do need to split the data before writing.