The gpkg_2D_gridded_coverage_ancillary table definition has a column tile_matrix_set_id, which is supposed to be an integer that is a foreign key to id in gpkg_tile_matrix_set.
Suggest this be a FK to the table_name in gpkg_tile_matrix_set. It could also be possible to use the rowid if we are confident that no-one creates gpkg_tile_matrix_set using the WITHOUT ROWID optimisation (https://www.sqlite.org/withoutrowid.html).
The gpkg_2D_gridded_coverage_ancillary table definition has a column
tile_matrix_set_id
, which is supposed to be an integer that is a foreign key toid
ingpkg_tile_matrix_set
.Unfortunately there is no
id
ingpkg_tile_matrix_set
: http://www.geopackage.org/spec/#tile_matrix_set_data_table_definitionSuggest this be a FK to the
table_name
ingpkg_tile_matrix_set
. It could also be possible to use therowid
if we are confident that no-one createsgpkg_tile_matrix_set
using theWITHOUT ROWID
optimisation (https://www.sqlite.org/withoutrowid.html).