-
Notifications
You must be signed in to change notification settings - Fork 202
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
GML Version 3.1.1 Export #968
Comments
Fiona is a wrapper library around GDAL. If no additional arguments are passed to fiona.open, the driver uses its default behavior, which potentially can be different depending on the version of GDAL Fiona is built against. GDAL documentation for the GML driver can be found here: https://gdal.org/drivers/vector/gml.html#vector-gml There seems to be a FORMAT parameter:
This parameter should be passed to fiona.open:
Disclaimer: I did not test if this works. |
Hi, I've tried your solution, but it doesn't work. It keeps turning it into GML version 2 files. I've checked the GDAL version Fiona is using and it's 3.1.3. I guess GML3 is supported by this version of GDAL, but Fiona is not able to properly pass the options provided in the Any further suggestions? |
It looks as there is a bug. Currently, only layer creation options are taken into account, and not dataset creation options such as FORMAT. |
Hi,
I'm trying to make a GML export of a Polygon using Fiona. I've managed to make the export, but it seems like the export is in version 2 format of GML. How can I enable Fiona to make an export to GML Version 3.1.1. Should I add a new kind of schema? Is this related to my GDAL version?
This issue is related to a question I've asked on another project
Steps to reproduce the problem.
I make use of GeoPandas, Fiona and Shapely. I've installed Fiona and GDAL using the wheel provided on the following website.
GDAL Version 3.1.3
Next, I make a shapely Polygon object and use the
mapping
function to make sure Fiona can save it as a GML.I've written a function to convert the GML from v2 tot v3.1.1, but I hope it's possible without the function!
I saw you can add additional keyword to the
fiona.open
function that then will be passed to GDAL, but I couldn't figure out what to add to make it work. I like to be able to save my file as a 3.1.1 .gml using Fiona.Something like this (see the XSD), but It didn't worked out :
The text was updated successfully, but these errors were encountered: