Thanks, let me see if I understand. It sounds like if I want a set of islands, some with lakes, that I should make each island a separate polygon, and each lake an inner ring within the polygon. The overall set of islands would be a multipolygon, right? Is multipolygon different than a vector of polygons like that returned by intersect()? So if I just get a set of undifferentiated rings, it sounds like I need to determine which are contained by others and and combine them as inner/outer rings. Once that is done can I intersect polygon against multipolygon or multipolygon against multipolygon easily? --John Lilley Barend Gehrels <barend@xs4all.nl> wrote:
Greetings, I am looking for some guidance around the correct creation and use of multi-part polygons. I am a bit confused about when to use each of the following:
· Polygon with multiple rings
· Vector of polygons
· Polygon set
· Set/vector of polygons, each potentially containing multiple rings
I gather from this example picture:
http://geometrylibrary.geodan.nl/03__polygon__example_8cpp-example.html
That if one wants holes to be opened as a result of intersection, they need to be rings as opposed to polygon sets or vectors of polygons?
An example would be polygon(s) representing an island chain. Some of the islands are atolls and as such have a hole in the middle. What would a representation of this set of islands look like?
And, what If I don't know if I have "real" rings (interior) vs just a collection of polygons (like I got this from an external source that doesn’t have the same model). If I just throw a pile of points at a polygon and call clean(), will that magic everything up for me?