[R-sig-Geo] Problems reading shapefiles in R

Felipe Carrillo mazatlanmexico at yahoo.com
Sun Apr 10 19:26:45 CEST 2011


Manuel:
As a test, delete the rgeos package from your library and run one of the 
commands again. You can always install the package back if you need it.
 
Felipe D. Carrillo
Supervisory Fishery Biologist
Department of the Interior
US Fish & Wildlife Service
California, USA
http://www.fws.gov/redbluff/rbdd_jsmp.aspx




----- Original Message ----
> From: Manuel Spínola <mspinola10 at gmail.com>
> To: r-sig-geo at r-project.org
> Sent: Sun, April 10, 2011 9:54:20 AM
> Subject: [R-sig-Geo] Problems reading shapefiles in R
> 
> Dear list members,
> 
> I am trying to read a shapefile in R using 3 different methods and all of
> them failed:
> 
> > ai_biotica <- readOGR(dsn="C:/ProyectosRespacial/ICE/SIG_Biotica_PHED",
> layer="AI_BIOTICA_010411_CRTM05")
> Error in ogrInfo(dsn = dsn, layer = layer, input_field_name_encoding =
> input_field_name_encoding) :
> 
>         GDAL Error 4: Unable to open
> C:/ProyectosRespacial/ICE/SIG_Biotica_PHED\carretera_interamericana_CRTM05.shx
> or
> 
C:/ProyectosRespacial/ICE/SIG_Biotica_PHED\carretera_interamericana_CRTM05.SHX.
> 
> > nc1 <-
>readShapePoly("C:/ProyectosRespacial/ICE/Shapefiles/AI_BIOTICA_010411_CRTM05.shp",
>,
> proj4string=CRS("+proj=tmerc +lon_0=-84 +lat_0=0 +x_0=500000 +k=0.9999
> +datum=WGS84"))
> Error in read.dbf(filen1) : unable to open DBF file
> 
> 
> > ai_biotica <- readShapeSpatial("AI_BIOTICA_010411_CRTM05")
> Error in read.dbf(filen1) : unable to open DBF file
> 
> I will appreciate any input on the problem.
> 
> Best,
> 
> Manuel Spínola
> 
> 
> 
> -- 
> *Manuel Spínola, Ph.D.*
> Instituto Internacional en Conservación y Manejo de Vida Silvestre
> Universidad Nacional
> Apartado 1350-3000
> Heredia
> COSTA RICA
> mspinola at una.ac.cr
> mspinola10 at gmail.com
> Teléfono: (506) 2277-3598
> Fax: (506) 2237-7036
> Personal website: Lobito de río <https://sites.google.com/site/lobitoderio/>
> Institutional website: ICOMVIS <http://www.icomvis.una.ac.cr/>
> 
>     [[alternative HTML version deleted]]
> 
>



More information about the R-sig-Geo mailing list