Skip to main content
Question

multiple testers

  • January 7, 2013
  • 9 replies
  • 216 views

owen
Forum|alt.badge.img+1
Hello, 

 

 

Does anyone know of a way to automatically create testers? I have a large number of fields that I want to test for the same value, and cant think of an easier way than manually creating multiple testers...

 

 

What I want is to be able to select all fields, and filter those features with a speciic value.

 

 

Thanks, 

 

 

Owen

9 replies

Hi Owen,

 

 

you can use the TestFilter to set up a multiple test for different attributes. So you can choose different attributes and then test them in one step for one value.

 

You will have just one transformer instead of multiple Testers.

 

 

Maybe that helps you,

 

best regards,

 

Stefan

 


... one additional hint: You can use the 'Duplicate' button to speed up the setting of you test condidions...

 

 

Sorry I forgot to mention that in my first post...

owen
Forum|alt.badge.img+1
  • Author
  • January 8, 2013
Thanks Stefan. Yes the testfilter and duplicate function will help- I suppose I was hoping for a quicker method of creating a large amount of tests (50+).

sigtill
Contributor
Forum|alt.badge.img+24
  • Contributor
  • January 8, 2013
Hi Owen,

 

 

What is the test you are going to perform? If it is a "simple test" for instance Attribute = 5 than you can try to use a SchemaMapper and map all these values for instance to a different feature. If you have a more complex test this might be trickier.

 

 

Another option would be to iterate through all Atrtibutes with a PythonCaller, do the checks, and then create an Attribute based on this.

 


owen
Forum|alt.badge.img+1
  • Author
  • January 9, 2013
Many thanks, the schema mapper looks useful. I'll look into it, although it doesnt appear to read excel files, which is my input

fmelizard
Contributor
Forum|alt.badge.img+17
  • Contributor
  • January 9, 2013
From the documentation:

 

The lookup table may come in different formats such as: a comma-separated or plain text file; a spreadsheet (Excel or Google); or a database such as Oracle, PostGRES, Informix, SQL Server, etc.


davideagle
Contributor
Forum|alt.badge.img+19
  • Contributor
  • January 9, 2013
Owen - The Excel restriction you notice may be because you are using the 64bit FME on an earlier Version of FME than 2012. For a time Excel wasn't supported on the 64bit platform. As Itay notes, it is now. I recommend you take a look over here for some helpful tips:

 

 

http://evangelism.safe.com/fmeevangelist71/

 


owen
Forum|alt.badge.img+1
  • Author
  • January 9, 2013
Hi Dave! Hope you are well.

 

 

Im using FME 2012 SP3 32 bit version, ESRI edition. The only option in the schema mapper is csv...

takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • January 14, 2013
Hi Owen,

 

 

It sounds odd. In my current environment (FME2012 Pro. Build 12266 Win32), when I clicked [...] button which appears at right side of "Format" text box on "SchemaMapper Parameters", "Reader Gallery" has opened. The gallery is showing many format names including CSV and XLS_ADO, I could select one of them. I think this is the normal response of FME.

 

If you cannot find XLS_ADO in your "Reader Gallery", you'd better contact Safe support.

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