Skip to main content
Question

Can i filter out similar feature names?

  • January 31, 2014
  • 2 replies
  • 9 views

I have a load of features with an numeric code as a name, for example 123. When there is an updates version of this example is is 123A, then 123B. What I am trying to do is filter out 123 if there is also a 123A or a 123B, and filter out 123A if there is a 123B. I suppose I need to use a test filter to separate out thos that contain an A and thos that contain a B, but I've no idea what to do next. Any suggestions?
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

takashi
Celebrity
  • January 31, 2014
Hi,

 

 

Is the name an attribute which indicates something like ID of feature?

 

If so, I would do this:

 

Split the name into 2 parts. i.e. numeric code and alphabet code. (StringSearcher)

 

Sort features by  alphabet code descending. (Sorter)

 

Select first feature from each group having same numeric code. (DuplicateRemover)

 

 

Takashi

marcel_conterra
Contributor
Forum|alt.badge.img+4
Hi,

 

 

you can download the FuzzyStringComparer transfomer from the FME Store. This one might help without splitting the attribute first. 

 

 

Marcel