public class DataContentsTests extends CommonFixture
gpkg_contents table describes the
geospatial data contained in the file.
Sources
CommonFixture.GeoPackageVersiondatabaseConnection, dataSource, gpkgFile, ROOT_PKG_PATH| Constructor and Description |
|---|
DataContentsTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
columnDataTypes()
The columns of tables in a GeoPackage SHALL only be declared using one
of the data types specified in table GeoPackage
Data Types.
|
void |
contentsTableDefinition()
A GeoPackage file SHALL include a
gpkg_contents table per table
Contents
Table or View Definition and gpkg_contents Table
Definition SQL. |
void |
contentsTablesExist()
The
table_name column value in a gpkg_contents table row
SHALL contain the name of a SQLite table or view. |
static Collection<String> |
getAllowedSqlTypes() |
void |
optValidGeoPackage()
Verify that a GeoPackage contains a features or tiles table and
gpkg_contents table row describing it.
|
void |
srsIdReferencesSrsTable()
Values of the
gpkg_contents table srs_id column SHALL
reference values in the gpkg_spatial_ref_sys table srs_id column. |
void |
timestampFormat()
Values of the
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. |
checkPrimaryKey, close, getAllowedVersions, getGeopackageVersion, getPrimaryKeyColumn, getTestName, initCommonFixture, isExtendedType, setTestName, validateClassEnabledpublic void columnDataTypes()
throws SQLException
SQLException - If an SQL query causes an errorpublic void contentsTableDefinition()
throws SQLException
gpkg_contents table per table
Contents
Table or View Definition and gpkg_contents Table
Definition SQL.SQLException - If an SQL query causes an errorpublic void contentsTablesExist()
throws SQLException
table_name column value in a gpkg_contents table row
SHALL contain the name of a SQLite table or view.SQLException - If an SQL query causes an errorpublic void timestampFormat()
throws SQLException
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.SQLException - If an SQL query causes an errorpublic void srsIdReferencesSrsTable()
throws SQLException
gpkg_contents table srs_id column SHALL
reference values in the gpkg_spatial_ref_sys table srs_id column.SQLException - If an SQL query causes an errorpublic void optValidGeoPackage()
throws SQLException
SQLException - If an SQL query causes an errorpublic static Collection<String> getAllowedSqlTypes()
Copyright © 2018 Open Geospatial Consortium. All rights reserved.