Skip to main content
Archived

Add ability to match by string pattern in FeatureTypeFilter

Related products:Transformers
  • July 11, 2018
  • 2 replies
  • 82 views

fmelizard
Safer
Forum|alt.badge.img+22

Originated from comment by @taojunabc in this Q&A.
The idea is to provide a way to find Feature Type names that matches a regular expression, to add more flexibility to this transformer.

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.

2 replies

taojunabc
Participant
Forum|alt.badge.img+6
  • Participant
  • July 12, 2018

The current FeatureTypeFilter only allows the specified FeatureType to use an exact match string.

But many times, I need to classify FeatureType names with similar names into one class. For example: river_a, river_b, river_c to river, road_a, road_b, road_c to road.

So I want to be able to add regular expressions to the FeatureTypeFilter, like expressions, etc.Its interface can be like the following, it omits the left value.The default is "=", fill in the Right Value, automatically fill the Output Port to the same value.

In order to keep the FeedTypeFilter simple and easy to use, More complex conditional assignments that are less commonly used can be ignored. In these cases, user can use TestFilter instead. such as "and" or "or" condition?etc.

'


ebygomm
Evangelist
Forum|alt.badge.img+51
  • Evangelist
  • July 25, 2018
If you expose the fme_feature_type attribute you can use a Testfilter to achieve this

 

'