-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
ogr2ogr transfer relationships defined in geopackages #11397
Comments
GDALRelationship could probably be transferred with moderate effort and risk by ogr2ogr |
Yes, I would suggest to only consider transferring GDAL relationships with ogr2ogr. I guess foreign key relationships in gpkgs are not often used anyway because they are limited in how they can be defined |
Transferring relations makes sense only when the data from the both sides of the relations are also transferrer, so it could be possible with a command like |
…o target dataset Fixes OSGeo#11397
…o target dataset Fixes OSGeo#11397
Feature description
When converting between gpkgs with ogr2ogr, support transferring relationships defined by related tables or foreign keys to the output.
If ogr2ogr is for example used to reproject a gpkg, defined relationships appears to be lost and must be recreated again.
Recreating relationships defined with the related tables extension is not necessarily problematic, but lost foreign keys are more difficult to fix as the tables must be dropped and recreated. It would therefore be great if these relationships were transferred directly by ogr2ogr.
Most desirable would be if ogr2ogr could also transfer relations when converting formats, e.g. from File Geodatabase to gpkg.
Additional context
No response
The text was updated successfully, but these errors were encountered: