[R-sig-Geo] Missing projection file?
Elaine McVey
elaine at transloc.com
Fri May 29 18:20:05 CEST 2015
I'm new to the list and getting started with using R for geospatial data.
I'm having a problem I can't solve in which the projection file seems to be
missing. This is the error I get:
proj4string(d) <- CRS("+init=epsg:28992")
Error in CRS("+init=epsg:28992") : no system list, errno: 2
It's confusing because when I load the package, it seems to successfully
autodetect the PROJ.4 files:
> library(rgdal)
rgdal: version: 0.9-2, (SVN revision 526)
Geospatial Data Abstraction Library extensions to R successfully loaded
Loaded GDAL runtime: GDAL 1.11.2, released 2015/02/10
Path to GDAL shared files:
Loaded PROJ.4 runtime: Rel. 4.9.1, 04 March 2015, [PJ_VERSION: 491]
Path to PROJ.4 shared files: (autodetected)
But when I do this, it returns zero:
.Call("PROJcopyEPSG", tempfile(), PACKAGE = "rgdal")
The only answer I've found from googling this is that epsg has to be
lowercase, which it is in my code.
I'm on a Mac running Yosemite, with R 3.2.0, and working inside RStudio
(version 0.99.441). Other packages and versions from my session info:
rgeos_0.3-8 ggmap_2.4 ggplot2_1.0.1 rgdal_0.9-2
leaflet_0.0.15 tidyr_0.2.0 dplyr_0.4.1
UScensus2010blk_1.00 UScensus2010_0.11 foreign_0.8-63
maptools_0.8-36 sp_1.1-0
Can anyone help me figure this out? I'm surprised I didn't find more on
this problem, as I can't be the only one having it . . .
---
Elaine McVey
Data Scientist
Transloc
[[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list