I couldn’t figure out which tool can remove duplicates. For example, in case we have two lines that are identical (one on top of another), then which tools can remove this duplicate?
For example, in the screenshot below we have 4 lines that are identical, then how to remove three of them and to leave one?
Thank you
Best
Jamal
Best answer by redgeographics
jamal wrote:
Not sure which tool can remove the duplicates shown in the screenshot below
Line#3 and line #4 are duplicated in the marked part
If they match exactly I'd try the Intersector or LineOnLineOverlayer. Both have the option to generate a list with the attributes of the original overlapping features so you can work with those.
So basically, in your screenshot, you can remove the Chopper and Matcher and it should work.
The Matcher transformer would do this for you. If you take the output of the SingleMatched and NotMatched ports then you would - in effect - be dropping duplicates.
It appears that the “matcher” couldn’t catch the duplicates. It keeps the original number as is despite the fact that there are a plenty of duplicates.
The Matcher seems to work properly. The problem is on the GeometryCoercer, it will not transform lines into polygons. Consider using the AreaBuilder instead.
The Matcher transformer would do this for you. If you take the output of the SingleMatched and NotMatched ports then you would - in effect - be dropping duplicates.
Hope this helps
Regards
Mark
Mark Ireland
Product Evangelist
Safe Software Inc
It would be nice if the transformer had a port for "matched except one" so you can remove all but one duplicate record easily. Currently, if I understand the transformer, you have to delete the Matched and then add back in the SingleMatched. Matched=SingleMatched+MISSING port.
Not sure which tool can remove the duplicates shown in the screenshot below
Line#3 and line #4 are duplicated in the marked part
If they match exactly I'd try the Intersector or LineOnLineOverlayer. Both have the option to generate a list with the attributes of the original overlapping features so you can work with those.
So basically, in your screenshot, you can remove the Chopper and Matcher and it should work.
Right. Intersector or LineOnLineOverlay can remove the duplicates as per the screenshot below. The duplicate segment gets in a separate object. All can be joined with linecombiner tool
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.