r - rgdal - read a table within a ESRI geodatabase (gdb) -
i trying read table esri geodatabase (.gdb) has no geometry using r. readogr throwing error because there no geometry defined, kind of make sense:
library(rgdal) readogr("gssurgo_co.gdb","mutext") #error in readogr("gssurgo_co.gdb", "mutext") : no features found #in addition: warning message: #in ogrinfo(dsn = dsn, layer = layer, encoding = encoding, use_iconv = use_iconv, : #ogrinfo: features null
my current solution access directly gdal , dump cvs of table read r:
# here example same layer system("ogr2ogr -f csv mutext.csv gssurgo_co.gdb mutext") mutext <- read.csv("mutext.csv")
it works, there better way this?
thanks!
Comments
Post a Comment