Question

Split a single input into several outputs based on attribute value

  • 11 July 2016
  • 3 replies
  • 150 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.


3 replies

Badge +22

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

Userlevel 2
Badge +12

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.

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.

Reply