Skip to main content
Question

TestFilter not working as expected

  • September 19, 2017
  • 3 replies
  • 48 views

Forum|alt.badge.img

I have a TestFilter query that works on most dwg layer names but not on a number of layer names.

There are approx 70 Dwg files with approx 300 feature names, most work but one (Tree) does not??

I tried two queries

Else IF @Value(fme_feature_type) IN AF_Tree,G902TREELINE,G902DTREE3,G903TREE_DECIDUOUS,00__TOPO__TREE__LINES,00__TOPO__TREE_CONIFEROUS_SPREAD_SYMBOL

AND

Else IF @Value(fme_feature_type) = AF_Tree

Else IF @Value(fme_feature_type) IN G902TREELINE,G902DTREE3,G903TREE_DECIDUOUS

Else IF @Value(fme_feature_type) IN

00__TOPO__TREE__LINES,00__TOPO__TREE_CONIFEROUS_SPREAD_SYMBOL

I keep getting G902DTREE3 rejected into the Unfiltered layer??

 

Any recommendations would be appreciated.

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

oscard
Influencer
Forum|alt.badge.img+22
  • Influencer
  • 344 replies
  • September 19, 2017

 

 

Does your TestFilter look like this?

 

 

I have tried with some data and it's working as expected.

 


takashi
Celebrity
  • 7843 replies
  • September 19, 2017
first of all, check carefully whether the layer name you have set to the transformer parameter is strictly equal to the actual layer name (i.e. value of "fme_feature_type"). Isn't there a difference in character case? Isn't there an excess leading/trailing space? and so on.

 


courtney_m
Contributor
Forum|alt.badge.img+19
  • Contributor
  • 127 replies
  • September 19, 2017

Building on @takashi's comment, to ensure to rule out the Case sensitivity, you can test the Upper Case value of the the fme_feature_type - Just make sure your test value is in ALL CAPS - see the screen shot below.