Skip to content
Prev 21448 / 29559 Next

maptools/SpatialPolygons2PolySet produces ascending instead of descending POS numbers for polygons with holes

On Wed, 6 Aug 2014, Daniel Rodolphe Schlaepfer wrote:

            
The problem is not that you need a PolySet representation, but that you 
need to set the polygon background explicitly to a value other than 
"transparent" using the pbg= argument:

plot(polySP, density=10, angle=45, pbg="white")

or adjust par("bg") to suit. When hatching is used, polypath is not used, 
so automatic handling of holes in the plot method is not available.

Roger