Skip to content
Prev 21461 / 29559 Next

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

Since polypath does not support hatching, I had to resort to using PBSmapping. However, I don?t know how PBSmapping is getting around the problem of correctly plotting of hatching for polygons with holes, but it does it correctly and that is why I use it, e.g.,

if(packageVersion(?maptools?) >= ?0.8.31"){
	polyPBS <- SpatialPolygons2PolySet(polySP)

	map(fill=TRUE, col=rainbow(n=5))
	addPolys(polyPBS, xlim=c(-180, 180), ylim=c(-90, 90), density=10, angle=45, col="black") 
}

Thank you for including the fix for SpatialPolygons2PolySet to maptools revision 283. My question is solved.

Best
-Daniel
On Aug 6, 2014, at 8:54 PM, Roger Bivand <Roger.Bivand at nhh.no> wrote: