What is the difference between a ring and a polygon in forcing geometry?

I am confused about ring and polygon in Boost.Geometry.

There are no pictures in the documentation showing what a ring is and what a polygon is.

Can anyone draw a shape explaining the difference between the two?

+3


source to share


1 answer


In Boost.Geometry, a Polygon is defined as an areal geometry containing an outer ring and a number of inner rings (holes).



The ring represents one of the polygons. It differs from OGC LinearRing because it represents geometry. When used alone, it can be viewed as a polygon with no holes.

+2


source







All Articles