Skip to main content
Question

TestFilter not working as expected

  • September 19, 2017
  • 3 replies
  • 33 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.

3 replies

oscard
Influencer
Forum|alt.badge.img+21
  • Influencer
  • September 19, 2017

 

 

Does your TestFilter look like this?

 

 

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

 


takashi
Contributor
Forum|alt.badge.img+19
  • Contributor
  • 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+5
  • Contributor
  • 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.


Reply


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