Skip to main content

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.

 

 

Does your TestFilter look like this?

 

 

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

 


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.

 


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