Closed bradh closed 9 years ago
Table 2 currently has both tpudt_name and tpudt_id as UNIQUE. I don't think that can work.
tpudt_name
tpudt_id
It could work if they were jointly UNIQUE, something like:
CREATE TABLE gpkg_2D_gridded_tile_ancillary ( id INTEGER PRIMARY KEY AUTOINCREMENT, tpudt_name TEXT NOT NULL, tpudt_id INTEGER NOT NULL, min REAL, max REAL, mean REAL, std_dev REAL, CONSTRAINT fk_g2dgtat_name FOREIGN KEY (tpudt_name) REFERENCES gpkg_contents(table_name), UNIQUE (tpudt_name, tpudt_id) )
Suggest updating Table 2 to show this slightly differently (perhaps remove the unique column and just adding it as a text requirement).
https://github.com/opengeospatial/geopackage-elevation/blob/master/spec/1_tiled_gridded_elevation_data.adoc#tile-ancillary
In today's SWG we agreed to add a footnote.
Table 2 currently has both
tpudt_name
andtpudt_id
as UNIQUE. I don't think that can work.It could work if they were jointly UNIQUE, something like:
Suggest updating Table 2 to show this slightly differently (perhaps remove the unique column and just adding it as a text requirement).