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

Unknown geometry type: GEOMETRY with non-spatial GPKG #202

Open
wonder-sk opened this issue Apr 11, 2023 · 0 comments
Open

Unknown geometry type: GEOMETRY with non-spatial GPKG #202

wonder-sk opened this issue Apr 11, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@wonder-sk
Copy link
Contributor

This error can happen when using db-sync and doing init from gpkg - after the import of data to "modified" schema, the copy from "modified" schema to "base" schema can fail like this:

The base and modified schemas do not exist yet, going to initialize them ...
GEODIFF: NOTICE:  schema "dbsync_nonspatial" does not exist, skipping

Error: copy failed!
GEODIFF: Error: Unknown geometry type: GEOMETRY

This happens when there's just non-spatial table in the whole GPKG: in order to honor Requirement 17 from GPKG v1.1.0, OGR adds an empty table called ogr_empty_table when writing GPKG (this requirement has been dropped in GPKG v1.2.0).

The workaround for now is to skip that special table, but it would be nice to handle this properly.

@wonder-sk wonder-sk added the bug Something isn't working label Apr 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant