[R-sig-Geo] spTransform error
Roger Bivand
Roger.Bivand at nhh.no
Tue May 14 23:33:17 CEST 2013
On Tue, 14 May 2013, Ross Ahmed wrote:
> I get the following error when running SpTransform, and error is occurring
> not matter what object I try to transform:
>
> Error in spTransform(columbus, CRS("+init=epsg:27700 +datum=WGS84")) :
> error in evaluating the argument 'CRSobj' in selecting a method for
> function 'spTransform': Error in CRS("+init=epsg:27700 +datum=WGS84") : no
> system list, errno: 2
>
You must include all of the important information: all of sessionInfo()
output, all of the startup messages given by rgdal on loading, and a
reasonable example (this one isn't, the actual projection is unknown). I
think you have installed rgdal from source on a system without the
necessary extra files, but without knowledge of how you installed rgdal,
it is not possible to tell.
Roger
>
>
> I?ve tried to replicate my code using the columbus SpatialPolygonsDataFrame
> from maptools package:
>
> setwd(system.file("shapes", package="maptools"))
> columbus <- readShapeSpatial(?columbus.shp?)
> proj4string(columbus) <- CRS("+proj=longlat +datum=WGS84 +ellps=WGS84
> +towgs84=0,0,0")
> spTransform(columbus, CRS("+init=epsg:4326?))
>
> Error in spTransform(columbus, CRS("+init=epsg:27700 +datum=WGS84")) :
> error in evaluating the argument 'CRSobj' in selecting a method for
> function 'spTransform': Error in CRS("+init=epsg:27700 +datum=WGS84") : no
> system list, errno: 2
>
>
>
> I?m using R 3.0.0
>
> Ross
>
>
>
> [[alternative HTML version deleted]]
>
>
--
Roger Bivand
Department of Economics, NHH Norwegian School of Economics,
Helleveien 30, N-5045 Bergen, Norway.
voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: Roger.Bivand at nhh.no
More information about the R-sig-Geo
mailing list