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

Feature Request: Build sf with File Geodatabase (FGDB) driver by default #1772

Closed
jacksonvoelkel opened this issue Aug 26, 2021 · 4 comments
Closed

Comments

@jacksonvoelkel
Copy link

Is it possible to include the ability to write to an Esri FGDB by default for st_write()? I know that it is a possibility to compile gdal with different settings to avoid OpenFileGDB's inability to write to a GDB, but it would truly make sf perfect if I had the ability out of the box by just installing sf.

Is this even something that can be handled via sf, or would this be up to another package (e.g. rgdal)?

@edzer
Copy link
Member

edzer commented Aug 26, 2021

That would require linking sf against a GDAL version that is built against proprietary software. So it should be possible, but won't happen for instance with the CRAN binaries you're probably using. Maybe you can ask ESRI to do this for you? Isn't their R-ArcGIS bridge fulfilling your purpose?

@edzer
Copy link
Member

edzer commented Aug 26, 2021

Your issue BTW is to get a custom build of GDAL, and then a standard build of sf against that, so I'm closing here as this is not an issue with sf.

@edzer edzer closed this as completed Aug 26, 2021
@jacksonvoelkel
Copy link
Author

Thank you for the clarification @edzer! The issue we have with R-ArcGIS bridge and arcgisbinding is that they're just writing to a shapefile first, and then using arcpy to copy it into a GDB (i.e. no direct write from R to the GDB). Without writing a novel here, we encounter occasional issues with shapefiles written with st_write() being copied into GDBs.

We hoped that we were overlooking a (simple) direct sf to GDB solution, but you've cleared that up for me - thanks!

@edzer
Copy link
Member

edzer commented Aug 26, 2021

Talk to ESRI, have them contribute a GDB writer to GDAL's OpenFileGDB driver: it's that simple.

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

2 participants