Skip to main content
Question

Issues with duplicate polygons, need filter out the smallest with identical attributes.

  • September 16, 2021
  • 1 reply
  • 4 views

mikamattila
Contributor
Forum|alt.badge.img

I have filtered out polygons and in several cases when using snapper turned two polygon into a new one which lays on top of the old ones. Attached is a workspace and data and an example is an polygon with "externid" "0331>JULMYRA>1:33>1>>>>1" which there are two of but one is a combination of two polygon (mentioned before+"0331>JULMYRA>1:63>1" and hence covers a larger area, (33k sqm vs 15k sqm). I would like to be able to filter out the duplicates and save the smaller polygons.

1 reply

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • September 17, 2021

The Duplicates output port of the DuplicateFilter contains all duplicate features encountered after the first one. So if you sort on externid and _area before the DuplicateFilter it should output the smallest ones through the Unique port.