Skip to main content
Solved

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


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)

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

4 replies

redgeographics
Celebrity
Forum|alt.badge.img+50
  • Celebrity
  • 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
  • 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+55
  • Celebrity
  • January 24, 2021
timhongjong wrote:

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
  • January 25, 2021
hkingsbury wrote:

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


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