Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

what's the difference between ring and polygon in boost geometry?

I'm confused about ring and polygon in Boost.Geometry.

In the documentation, there's no figure showing what is a ring, and what is a polygon.

Can anyone draw a figure explaining the difference between two concepts?

like image 975
user1875680 Avatar asked Oct 24 '25 17:10

user1875680


1 Answers

In Boost.Geometry a Polygon is defined as an areal Geometry containing an exterior ring and some number of interior rings (holes).

Ring represents one of the Polygon's rings. It's different than the OGC LinearRing because it's an areal Geometry. When used alone it can be seen as a Polygon without holes.

like image 190
Adam Wulkiewicz Avatar answered Oct 27 '25 01:10

Adam Wulkiewicz



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!