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

Popular posts from this blog

php - Passing multiple values in a url using checkbox -

compilation - PHP install fails on Ubuntu 14 (make: *** [sapi/cli/php] Error 1) PHP 5.6.20 -

sql - Postgresql tables exists, but getting "relation does not exist" when querying -