Skip to main content
Solved

How can I filter for closed polygons with surface area >0?

  • January 22, 2021
  • 4 replies
  • 18 views

Hi All, I want to filter my datasets for features which are closed polygons with surface area>0. I assume I need a filter but which one and how to set it right?

 

TY

Best answer by redgeographics

You can use a GeometryFilter to filter out polygons, they should already have an area > 0 but if you want to be extra sure you can then use an AreaCalculator to calculate the area and a TestFilter or Tester to filter on that (or the @Area() function within a Tester/Testfilter)

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.

4 replies

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • Best Answer
  • January 22, 2021

You can use a GeometryFilter to filter out polygons, they should already have an area > 0 but if you want to be extra sure you can then use an AreaCalculator to calculate the area and a TestFilter or Tester to filter on that (or the @Area() function within a Tester/Testfilter)


  • Author
  • 6 replies
  • January 22, 2021

thank you but how can I be secure that the polygons are closed is this ensured if I choose "Area" in the parameters?


hkingsbury
Celebrity
Forum|alt.badge.img+63
  • Celebrity
  • 1625 replies
  • January 24, 2021

thank you but how can I be secure that the polygons are closed is this ensured if I choose "Area" in the parameters?

A polygon is essenially a line that has at minimun 4 vertices with the first and last vertices having the same coordinates. If the polygon is not 'closed' then it is a line


  • Author
  • 6 replies
  • January 25, 2021

A polygon is essenially a line that has at minimun 4 vertices with the first and last vertices having the same coordinates. If the polygon is not 'closed' then it is a line

Makes Sense, Thank you