Skip to main content
Question

Can i filter out similar feature names?


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?

2 replies

takashi
Evangelist
  • 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

Hi,

 

 

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

 

 

Marcel

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