-
Notifications
You must be signed in to change notification settings - Fork 22
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
Unable to set dataset creations exporting a data frame to GeoPackage #177
Comments
To sanity check the
|
Yes, so currently we pass options ( Lines 1275 to 1287 in bdd7bf4
And so passing dataset creation options is right now not possible (and I am not aware of any workaround ..). But this is something we should certainly solve. One option is to have an explicit Another option could be to split the user-passed kwargs automatically into dataset and layer creation options, using the driver metadata (cfr #103). A third option to pass the kwargs to both dataset and layer creation doesn't seem desirable, since that causes warnings. |
Are they always exclusive to dataset or layer? |
Using the code in #189, checking this:
So there are some drivers where an option name can be passed both to dataset creation and layer creation .. (although for the most common ones it is not the case, so automatically splitting might still be convenient for those). We could also have both: explicit |
That is not a bad solution. +1 |
OK, I updated #189 to take that route |
Expansion of comment in #71 (comment).
I am trying to export a dataframe to a GeoPackage but with two dataset creation options set, specifically
VERSION
andADD_GPKG_OGR_CONTENTS
documented in https://gdal.org/drivers/vector/gpkg.html#dataset-creation-options.The code I'm using:
Running this code gives the following:
From this I assume all
**kwargs
are being set as layer creation options rather than dataset creation options but I'm unsure how to set these (without using another tool).Python version: 3.9.1
pyogrio version: 0.4.2
Happy to provide any other information and apologies if I've missed anything useful to debug this.
The text was updated successfully, but these errors were encountered: