The OGC GeoPackage standard was adopted prior to the adoption of "OGC Well known text representation of Coordinate Reference Systems" [34], in 13 August, 2014. As a result, the OGC GeoPackage standard references an older document [32] which has known ambiguities that are being encountered in the field. This extension establishes a new column to contain values that conform to the new standard.
GeoPackage SWG, author_name gpkg
.
gpkg_crs_wkt
Extension of Existing Requirement in clause [spatial_ref_sys_data_table_definition].
Applies to the gpkg_spatial_ref_sys
table.
Read-write
For GeoPackages conforming to this extension, the gpkg_spatial_ref_sys
table SHALL have an additional column called definition_12_063
as per Spatial Ref Sys Table Definition and gpkg_spatial_ref_sys Table Definition SQL (CRS WKT Extension).
Column Name | Column Type | Column Description | Not Null | Default | Key |
---|---|---|---|---|---|
|
TEXT |
Human readable name of this SRS |
yes |
||
|
INTEGER |
Unique identifier for each Spatial Reference System within a GeoPackage |
yes |
PK |
|
|
TEXT |
Case-insensitive name of the defining organization e.g. EPSG or epsg |
yes |
||
|
INTEGER |
Numeric ID of the Spatial Reference System assigned by the organization |
yes |
||
|
TEXT |
Well-known Text [32] Representation of the Spatial Reference System |
yes |
'undefined' |
|
|
TEXT |
Human readable description of this SRS |
no |
||
|
TEXT |
Well-known Text [34] Representation of the Spatial Reference System |
yes |
'undefined' |
Values of the definition_12_063
column SHALL be constructed per the WKT syntax in [34].
At least one definition column SHALL be defined with a valid definition unless the value of the srs_id
column is 0
or -1
. Both columns SHOULD be defined. If it is not possible to produce a valid [32] definition then the value of the definition
column MAY be undefined
. If it is not possible to produce a valid [34] definition then the value of the definition_12_063
column MAY be undefined
.
If, for a particular row, both the definition
and definition_12_063
columns are populated, the value in the definition_12_063
column takes priority.
Table Definition
Test Case ID |
/extension_crs_wkt/table_def |
Test Purpose |
Verify that the gpkg_spatial_ref_sys table exists and has the correct definition. Extends |
Test Method |
|
Reference |
Annex F.10 Req 115 |
Test Type |
Basic |
Test Case ID |
/extension_crs_wkt/data_values_default |
Test Purpose |
Verify that the gpkg_spatial_ref_sys table contains the required default contents. Extends |
Test Method |
|
Reference |
Annex F.10 Req 116 |
Test Type |
Capability |
Test Case ID |
/extension_crs_wkt/data_values_required |
Test Purpose |
Verify that the spatial_ref_sys table contains rows to define all srs_id values used by features and tiles in a GeoPackage. Extends |
Test Method |
|
Reference |
Annex F.10 Req 117 |
Test Type |
Capability |
CREATE TABLE gpkg_spatial_ref_sys (
srs_name TEXT NOT NULL,
srs_id INTEGER NOT NULL PRIMARY KEY,
organization TEXT NOT NULL,
organization_coordsys_id INTEGER NOT NULL,
definition TEXT NOT NULL DEFAULT 'undefined',
description TEXT,
definition_12_063 TEXT NOT NULL DEFAULT 'undefined'
);