FME: Tester on published parameters + composite test

I just discovered a very cool feature in FME. In the past, when I wanted to test a published parameter, I had to use a ParameterFetcher, than a Tester. I found it pretty annoying. Yeah, I know, I’m a lazy person. Ask my wife. So, I wanted the Tester to have the capability of testing published parameters. Well, it seems Safe Software read my mind! In FME2010 – and maybe also in the previous versions, I didn’t check – you can now use the Tester transformer to check the value of published parameters. Plus, there is a new powerful way of combining many tests in only one transformer: the Composite Test criteria! Here’s the easy way of doing all this.

1- Suppose you have a bunch of published parameters – strings, integers, and so on – that you want to test.

2- Use the good old Tester transformer, right click on a field, choose “Set to published parameter”, then select the parameter you want to test.

3- Select the “Composite Test” option in the “Pass Criteria” field. You can then put whatever logic you want in the Test Expression field.

Tadam! Enjoy!

Free GIS Book: A Practical Guide to Geostatistical Mapping (Tomislav Hengl)

A practical guide to geostatistical mapping using R+gstat/geoR, SAGA GIS and Google Earth combo of software packages. Includes seven diverse data analysis exercises. Materials presented in this book have been used for the five-day advanced training course “GEOSTAT: spatio-temporal data analysis with R+SAGA+Google Earth”, that is periodically organized by the author and collaborators. Visit http://spatial-analyst.net/book/ to obtain a digital copy of the book and R scripts / data sets used. This is an Open Access Publication.

Follow

Get every new post delivered to your Inbox.