Question

TestFilter

  • 12 July 2013
  • 3 replies
  • 6 views

Badge
Hi,

 

I've a feature that contains 100 regions and i'd like to get shp file writer for each region. I use TestFilter transformer to do it but i must set TestCondition 100 times (If @Value(regionId)=1 else if If @Value(regionId)=2 else if ....).

 

Is there other solution ?

 

Thanks an advance.

 

Farfar

3 replies

Userlevel 4
Hi,

 

 

how about using a dataset fanout on the value of RegionID?

 

 

http://docs.safe.com/fme/html/FME_Workbench/Default.htm#Setting_Dataset_Fanout_Properties.htm

 

 

David
Userlevel 2
Badge +17
Hi,

 

 

If you want to separate output directories based on the region, try setting the Dataset Fanout Properties as David suggested. But if you want to separate output files in a single directory, take a look at the Feature Type Fanout Properties.

 

 

Takashi
Badge
Yes, it works.

 

Thanks

Reply