Skip to main content
Solved

Duplicate filter not working correctly


Forum|alt.badge.img

Dear all,

I have a workbench for some data (feature) filtering inside and outside of some polygons. I'm stuck at final step where I need to remove duplicate features which are inside of one polygon. The problem is with this specific polygon where Duplicate filter is sending one feature that for sure doesn't have duplicate through DUPLICATE port while it should be unique. I've tried different polygon and different features and it worked fine but for this specific feature it's not working right. I've tried the MATCHER also and got the same result, it sent feature to the matched port while it should be not_matched. I've checked for all the possible differencies in attributes between this problematic feature and any else feature and didn't find anything different. The features are autocad_text_strings. I didn't expose any attributes.

I hope someone can suggest some other solution or what to check for this specific feature? I can send data if necessary.

Thanks in advance.

Best answer by lars_de_vries

Hi @jjaksic22,

I have been looking into the data you send and I think the solution is quite simple.

In the DuplicateFilter transformer you are checking the values of POSJEDNIK. Looking at your last remark you want to check the value of 'fme_text_string'. The attribute POSJEDNIK does not start with a number, whilst the attribute 'fme_text_string' does start with number values.

View original
Did this help you find an answer to your question?

8 replies

lars_de_vries
Forum|alt.badge.img+10

Hi @jjaksic22,

It would be very nice if you add the data and if possible the workspace, because now it is searching for a needle in a haystack.

 


david_r
Celebrity
  • July 26, 2017

Based on my own personal experience: If two different transformers give the same result, it's not a bug, it's your data.

Try setting a breakpoint and inspect the attribute values. Look out for case sensitivity and spaces, etc.


ebygomm
Influencer
Forum|alt.badge.img+32
  • Influencer
  • July 26, 2017

I've encountered a similar issue before (data not matching that visually appears to match) and it was down to non printing characters in some of the attribute values


Forum|alt.badge.img
  • Author
  • July 26, 2017

Hi all, thanks for the quick response. Data is too big for upload so I've put it on the dropbox. Here's the link:

https://www.dropbox.com/s/h8lbph5fdcmcnsm/indications.zip?dl=0

Notice that the output data names starts with "30_...One is for the unique values and the other one is for the duplicates. Problematic feature (text) starts with 1562. Thanks for the help!

Best regards


lars_de_vries
Forum|alt.badge.img+10
jjaksic22 wrote:

Hi all, thanks for the quick response. Data is too big for upload so I've put it on the dropbox. Here's the link:

https://www.dropbox.com/s/h8lbph5fdcmcnsm/indications.zip?dl=0

Notice that the output data names starts with "30_...One is for the unique values and the other one is for the duplicates. Problematic feature (text) starts with 1562. Thanks for the help!

Best regards

Link does not seem to work.

 

 


Forum|alt.badge.img
  • Author
  • July 26, 2017

lars_de_vries
Forum|alt.badge.img+10

Hi @jjaksic22,

I have been looking into the data you send and I think the solution is quite simple.

In the DuplicateFilter transformer you are checking the values of POSJEDNIK. Looking at your last remark you want to check the value of 'fme_text_string'. The attribute POSJEDNIK does not start with a number, whilst the attribute 'fme_text_string' does start with number values.


Forum|alt.badge.img
  • Author
  • July 27, 2017

Thanks @lars_de_vries. Your solution is correct. Thanks for help!

Best regards


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