sfdbi icon indicating copy to clipboard operation
sfdbi copied to clipboard

Backend request: GDB

Open noamross opened this issue 5 years ago • 2 comments

It would be great to be able to use a spatial query based on an sf object on a .gdb database without reading the whole thing from disk.

noamross avatar Oct 14 '20 18:10 noamross

I'm not sure you can read .gdb with a DBI interface, but you can with GDAL; see https://github.com/mdsumner/lazysf from @mdsumner for a shot at this (using the query argument in sf::read_sf).

edzer avatar Oct 14 '20 18:10 edzer

You can use dbConnect with GDB - lazysf() is a frontend - but fwiw it's not a "real database" from GDAL's perspective, it works through virtual translation, so GDAL's specials FID, OGR_GEOMETRY etc are available, there's no native SQL to pass through.

mdsumner avatar Oct 14 '20 21:10 mdsumner