Thanks, Now I found the driver in the current rgdal version! Unfortunately I still can't open the database, even though the OpenfileGDB driver is used. When I list the layers and then try to load one of the layers, I get the error message that no features are found:
ogrListLayers("Stoy.gdb") [1] "veg_storbyomrader" "veg_traffikert_veg" "flyplass_store_flyplasser" "bane_storbyomrader" [5] "bane_traffikert_bane" attr(,"driver") [1] "OpenFileGDB" attr(,"nlayers") [1] 5 > m = readOGR("Stoy.gdb",layer = "veg_storbyomrader") Error in readOGR("Stoy.gdb", layer = "veg_storbyomrader") : no features found In addition: Warning message: In ogrFIDs(dsn = dsn, layer = layer) : no features found Is this likely due to the database, or could this be a problem with the driver? In case that helps, here is the link to the map layer I want to extrac (the link is to a web page, but I have the data base file). http://www.miljostatus.no/kart/?lang=no&extent=152517|6532562|210570|6557188&layers=147:46;20:100;138:100;&basemap=KART&opacity=71&saturation=90 Best - Guido On Sun, Oct 26, 2014 at 7:21 AM, Michael Sumner <mdsum...@gmail.com> wrote: > This driver is present in the Windows binary on CRAN (at least it was > in July): > https://stat.ethz.ch/pipermail/r-sig-geo/attachments/20140710/5dda6bc4/attachment.pl > > I'm not sure about on Linux, I thought it was there but I may have > inadvertently switched to an older GDAL on some systems. I can try > this out on a test VM though, I'm keen to have rgal-recipes for > installing on various systems. > > Let me know if: > 1) you want Windows or Linux > 2) you want help building / installing on Linux (Ubuntu) > > (Compiling the Windows binary is hard and mysterious, but I'd love to > be able to do that too. I can do all of it except the final .zip > package bundle which I don't understand yet) > > Cheers, Mike. > > On Fri, Oct 24, 2014 at 9:06 PM, Guido Biele > <guido.bi...@neuro-cognition.org> wrote: > > Hello, > > > > I have an ESRI ArGis geo database directory which I would like to > convert > > to geojson or a shape file (or anything else that I can read into R). > > > > Unfortunately that does not work out of the box with rgdal, because it > does > > not come with the fileGDB or openfileGDB driver. > > I could successfully install gdal and the fileGDB driver/extension, but > it > > seems that i can use gdal only to convert the gdb file to a SQL database. > > > > So before I start to learn about SQL, I thought I ask if anybody can > point > > me to a tutorial or similar that explains how to convert the contents of > a > > GDB folder to a R-readable format. > > > > I also wondered if it would be possible to let rgdal know that it could > > access the required drivers because I installed them manually. > > I would appreciate any hint about this too! > > > > Thanks in advance! > > Best Guido > > > > [[alternative HTML version deleted]] > > > > ______________________________________________ > > R-help@r-project.org mailing list > > https://stat.ethz.ch/mailman/listinfo/r-help > > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > > and provide commented, minimal, self-contained, reproducible code. > > > > -- > Michael Sumner > Software and Database Engineer > Australian Antarctic Division > Hobart, Australia > e-mail: mdsum...@gmail.com > [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.