Skip to content
Prev 1099 / 29559 Next

help with rgdal

On Tue, 13 Jun 2006, FISCHER, Matthew wrote:

            
This isn't about rgdal, by the way, the main function called -
map2SpatialPolygons() - is in the off-CRAN spmaps package.  The example
you use is currently in the help file to that function, it isn't on
http://rgdal.sourceforge.net/, nor on
http://r-spatial.sourceforge.net/xtra/xtra.RHnw.html, which is where the
spmaps examples outside the package itself are.

Beyond that, I can't replicate it either. Which version of sp and spmaps 
are you using (sessionInfo())? What does bbox(nor_coast_poly_sp) say (if 
the bounding box is wrong, you may get Inf in plot.Spatial? What does 
class(nor_coast_poly_sp) - is plot() dispatching on the correct class?

I get:
min      max
r1  4.804193 31.02664
r2 58.030025 71.12916
[1] "SpatialPolygons"
attr(,"package")
[1] "sp"


Roger