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: Flatgeobuf read/write support #917

Closed
kylebarron opened this issue Jul 2, 2020 · 5 comments
Closed

Feature request: Flatgeobuf read/write support #917

kylebarron opened this issue Jul 2, 2020 · 5 comments
Labels

Comments

@kylebarron
Copy link

Expected behavior and actual behavior.

As of GDAL 3.1, there is read and write support for Flatgeobuf. It appears that there is no such support in Fiona.

Is adding a line to drvsupport.py all that would be needed, or would it be involved to add support here?

Operating system

Ubuntu 18.04

Fiona and GDAL version and provenance

'1.8.13.post1' from PyPI

GDAL 3.1.0 installed via Conda

@rbuffat
Copy link
Contributor

rbuffat commented Jul 3, 2020

It depends on the driver. Some drivers potentially work out of the box, but not all.

You can use the following pattern to enable not supported drivers, given they are included in the gdal installation Fiona is built against:

https://github.com/Toblerity/Fiona/blob/maint-1.8/docs/manual.rst#77unsupported-drivers

@tomplex
Copy link

tomplex commented Jul 29, 2020

I was able to get reading to work fine just by following the instructions above:

import fiona
fiona.drvsupport.supported_drivers["FlatGeobuf"] = "rw"
src = fiona.open("file.fgb")

@kylebarron
Copy link
Author

That's a good point! I didn't even think of trying to set that manually.

@sgillies
Copy link
Member

sgillies commented Aug 29, 2020

I'm removing this from the 1.8.14 milestone since #924 looks pretty complicated. I did turn on read support in 0595442.

@sgillies sgillies removed this from the 1.8.14 milestone Aug 29, 2020
sgillies added a commit that referenced this issue Aug 29, 2020
@sgillies
Copy link
Member

sgillies commented Apr 1, 2021

Resolved.

@sgillies sgillies closed this as completed Apr 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants