Skip to main content

My workspace has a published parameter `area` which can have the values `country` or `province`. It also contains a SpatialFilter transformer that only needs to be executed if `area = province`. How do I evaluate whether this condition is met only once for the entire dataset? Because I have hundreds of thousands of features, I don't want to evaluate the condition for each feature seperately. I would like to do conditional processing on the *dataset* level in stead of the feature level, so Tester and TestFilter are probably not the solutions I'm looking for.

If you use a Creator and TestFilter you can test the parameter just once and then use FeatureReaders to do the actual reading.


If you use a Creator and TestFilter you can test the parameter just once and then use FeatureReaders to do the actual reading.

This. I never understand why people are still using classic readers?


This. I never understand why people are still using classic readers?

Old-school FME nerd 🙂 I find it hard to break old habits, but you are absolutely right, FeatureReaders and -Writers do offer a lot more flexibility in complex workflows.


Old-school FME nerd 🙂 I find it hard to break old habits, but you are absolutely right, FeatureReaders and -Writers do offer a lot more flexibility in complex workflows.

For most users it easier/faster to drag and drop the file(s) to be read, then set up a creator/featureReader.


You may also wish to vote on the following idea: https://knowledge.safe.com/content/idea/61178/parameter-flow-control.html


Reply