Skip to content
Prev 1255 / 29559 Next

CRS parameters

Hello list,

I use spmaps 0.1-4+gdal 1.3.1+proj 4.4.9 with R 2.3.1.
Starting with the example of the spmaps package and the 
map2SpatialPolygons function, it seems that the proj4strings parameters 
of this line are not correct :

nor_coast_poly_sp <- map2SpatialPolygons(nor_coast_poly, IDs=IDs, 
proj4string=CRS("+proj=longlat +datum=wgs84"))

The message returned is

"Erreur dans CRS("+proj=longlat +datum=wgs84") :
         unknown elliptical parameter name"

With the proj -l command I cannot find the projection called "latlong".

What's wrong ? Does my installed version of gdal or proj aren't correct ?

Laurent