Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Backend request: GDB #3

Open
noamross opened this issue Oct 14, 2020 · 2 comments
Open

Backend request: GDB #3

noamross opened this issue Oct 14, 2020 · 2 comments

Comments

@noamross
Copy link

noamross commented Oct 14, 2020

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.

@edzer
Copy link
Member

edzer commented Oct 14, 2020

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).

@mdsumner
Copy link
Member

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants