[R-sig-Geo] Problem accessing gshhs database of world coastlines

agus agus.camacho at gmail.com
Sun Apr 1 00:17:58 CEST 2012


Dear Denis and Roger,

I am trying to use this thread to import coastlines into R, however i am not
succeeding:

When I try(with latest version of maptools  and psbmapping just installed):

a) wcoastline <- read.shp("C:/Users/Agus/Desktop/Distributional range
size/GSHHS_shp/gshhs_land.shp")
I get
 Error: could not find function "read.shp"

b)  coastline=importGSHHS("C:/Users/Agus/Desktop/Distributional range
size/GSHHS_shp/gshhs_land.shp"
                      , xlim=c(envir at extent@xmin,envir at extent@xmax), 
                               ylim=c(envir at extent@ymin,envir at extent@ymax))

I get:

importGSHHS status:
--> Pass 1: complete: 0 bounding boxes within limits.
--> Pass 2: 
Error in importGSHHS("C:/Users/Agus/Desktop/Distributional range
size/GSHHS_shp/gshhs_land.shp",  : 
  call to gshhs failed.

Could you please give me any hint?

there it goes my session info
sessionInfo()
R version 2.14.1 (2011-12-22)
Platform: x86_64-pc-mingw32/x64 (64-bit)

locale:
[1] LC_COLLATE=English_Australia.1252  LC_CTYPE=English_Australia.1252   
LC_MONETARY=English_Australia.1252
[4] LC_NUMERIC=C                       LC_TIME=English_Australia.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] PBSmapping_2.62.34 plyr_1.7.1         geosphere_1.2-26   rgdal_0.7-8       
outliers_0.14      XML_3.9-4.1       
 [7] dismo_0.7-14       raster_1.9-58      maptools_0.8-14    lattice_0.20-0    
sp_0.9-93          foreign_0.8-48    

loaded via a namespace (and not attached):
[1] grid_2.14.1  tools_2.14.1

THANKS!!
Agus

--
View this message in context: http://r-sig-geo.2731867.n2.nabble.com/Accessing-gshhs-database-of-world-coastlines-tp2761898p7425816.html
Sent from the R-sig-geo mailing list archive at Nabble.com.



More information about the R-sig-Geo mailing list