Skip to main content
Question

TestFilter


farfar
Contributor
Forum|alt.badge.img+11
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

david_r
Evangelist
  • July 12, 2013
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

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • July 12, 2013
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

farfar
Contributor
Forum|alt.badge.img+11
  • Author
  • Contributor
  • July 12, 2013
Yes, it works.

 

Thanks

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