gpkg_spatial_ref_sys table in a GeoPackage SHALL contain
records to define all spatial reference systems used by features and
tiles in a GeoPackage.gpkg_contents table per table
Contents
Table or View Definition and gpkg_contents Table
Definition SQL.table_name column value in a gpkg_contents table row
SHALL contain the name of a SQLite table or view.matrix_height column value in a gpkg_tile_matrix table
row SHALL be greater than 0.gpkg_tile_matrix_set table or view SHALL contain one row
record for each tile pyramid user data table.gpkg_tile_matrix_set table_name column
SHALL reference values in the gpkg_contents table_name column for rows
with a data type of "tiles".gpkg_tile_matrix_set srs_id column SHALL
reference values in the gpkg_spatial_ref_sys srs_idmatrix_width column value in a gpkg_tile_matrix table
row SHALL be greater than 0.gpkg_metadata_reference table row with a reference_scope column value of 'geopackage' SHALL have a table_name column value that is NULL.gpkg_metadata_reference table reference scope column value
SHALL be one of 'geopackage', 'table', 'column', 'row', 'row/col' in
lowercase.gpkg_metadata table SHALL contain a
gpkg_metadata_reference table per clause 2.4.3.1.1 Table Definition, Metadata
Reference Table Definition (Table Name: gpkg_metadata_reference) and
gpkg_metadata_reference Table Definition SQL.md_scope column value in a gpkg_metadata table or
updateable view SHALL be one of the name column values from Metadata Scopes.pixel_x_size column value in a gpkg_tile_matrix table row
SHALL be greater than 0.pixel_y_size column value in a gpkg_tile_matrix table row
SHALL be greater than 0.gpkg_spatial_ref_sys table in a GeoPackage SHALL contain a
record for organization
EPSG or epsg and
organization_coordsys_id 4326 for
WGS-84, a record
with an srs_id of -1, an organization of "NONE", an
organization_coordsys_id of -1, and definition "undefined" for
undefined Cartesian coordinate reference systems, and a record with an
srs_id of 0, an organization of "NONE", an organization_coordsys_id of 0, and definition "undefined" for undefined
geographic coordinate reference systems.pixel_x_size and pixel_y_size column values for
zoom_level column values in a gpkg_tile_matrix table
sorted in ascending order SHALL be sorted in descending order.gpkg_contents table srs_id column SHALL
reference values in the gpkg_spatial_ref_sys table srs_id column.gpkg_spatial_ref_sys table per
clause 1.1.2.1.1
Table Definition, Table
Spatial Ref Sys Table Definition and Table
gpkg_spatial_ref_sys Table Definition SQL.table_name from the gpkg_tile_matrix
(tm) table, the tile pyramid (tp) user data table tile_column
column value in a GeoPackage SHALL be in the range <= tp.tile_column
<= tm.matrix_width - 1 where the tm and tp zoom_level column
values are equal.tile_height column value in a gpkg_tile_matrix table row
SHALL be greater than 0.min_x and
max_x in gpkg_tile_matrix_set) SHALL equal the product
of matrix_width, tile_width, and pixel_x_size
for that zoom level.gpkg_tile_matrix table or view SHALL contain one row
record for each zoom level that contains one or more tiles in each tile
pyramid user data table or view.gpkg_tile_matrix_set table or view per
Table Definition, Tile
Matrix Set Table or View Definition and
gpkg_tile_matrix_set Table Creation SQL.gpkg_tile_matrix table_name
column SHALL reference values in the gpkg_contents table_name column for rows with a data_type of
'tiles'.gpkg_tile_matrix table or view per clause 2.2.7.1.1
Table Definition, Table Tile Matrix
Metadata Table or View Definition and Table
gpkg_tile_matrix Table Creation SQL.table_name from the gpkg_tile_matrix
(tm) table, the tile pyramid (tp) user data table tile_row
column value in a GeoPackage SHALL be in the range 0 <= tp.tile_row <=
tm.matrix_height - 1 where the tm and tp zoom_level column
values are equal.gpkg_contents table SHALL contain a row with a data_type column value of "tiles" for each tile pyramid user data
table or view.tile_width column value in a gpkg_tile_matrix table row
SHALL be greater than 0.gpkg_contents table last_change
column SHALL be in ISO 8601
format containing a complete date plus UTC hours, minutes, seconds
and a decimal fraction of a second, with a 'Z' ('zulu') suffix
indicating UTC.zoom_level column value in a gpkg_tile_matrix table
row SHALL not be negative.table_name from the gpkg_tile_matrix
(tm) table, the tile pyramid (tp) user data table zoom_level
column value in a GeoPackage SHALL be in the range min(tm.zoom_level) <=
tp.zoom_level <= max(tm.zoom_level).Copyright © 2022 Open Geospatial Consortium. All rights reserved.