Skip to content
Prev 4922 / 29559 Next

Problem with SpatialPolygons containing a hole

On Thu, 29 Jan 2009, Hans-J?rg Bibiko wrote:

            
No. By assumption, a hole is smaller than the enclosing polygon 
surrounding it. Both are "Polygon" objects in a "Polygons" object, and 
these are plotted from largest to smallest. So if a hole is transparent, 
you will see the polygon lying underneath and around it, so won't see the 
hole. "Polygon" objects are simply rings of coordinates, not topological 
structures.
By assumption, "Polygon" objects that are holes should only be within 
another "Polygon" object belonging to the same "Polygons" object. It is 
possible that data in the wild do not follow this structure, though it is 
hard to think of a real case of a hole (say lake) belonging to one county, 
but lying in a different county.

Roger