Package org.opengis.cite.gpkg12.core
Class DataContentsTests
java.lang.Object
org.opengis.cite.gpkg12.CommonFixture
org.opengis.cite.gpkg12.core.DataContentsTests
Defines test methods that apply to descriptive information about the contents of a
GeoPackage. The
gpkg_contents table describes the geospatial data contained in
the file.
Sources
- GeoPackage Encoding Standard - Contents (OGC 12-128r14)
- Author:
- Luke Lambert
-
Field Summary
Fields inherited from class org.opengis.cite.gpkg12.CommonFixture
databaseConnection, dataSource, geopackageVersion, gpkgFile, ROOT_PKG_PATH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThe columns of tables in a GeoPackage SHALL only be declared using one of the data types specified in table GeoPackage Data Types.voidA GeoPackage file SHALL include agpkg_contentstable per table Contents Table or View Definition and gpkg_contents Table Definition SQL.voidThetable_namecolumn value in agpkg_contentstable row SHALL contain the name of a SQLite table or view.static Collection<String>voidVerify that a GeoPackage contains a features or tiles table and gpkg_contents table row describing it.voidValues of thegpkg_contentstablesrs_idcolumn SHALL reference values in thegpkg_spatial_ref_systablesrs_idcolumn.voidValues of thegpkg_contentstablelast_changecolumn 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.Methods inherited from class org.opengis.cite.gpkg12.CommonFixture
checkPrimaryKey, close, getGeopackageVersion, getPrimaryKeyColumn, getTestName, initCommonFixture, isExtendedType, setTestName, validateClassEnabled
-
Constructor Details
-
DataContentsTests
public DataContentsTests()
-
-
Method Details
-
columnDataTypes
The columns of tables in a GeoPackage SHALL only be declared using one of the data types specified in table GeoPackage Data Types.- Throws:
SQLException- If an SQL query causes an error- See Also:
-
contentsTableDefinition
A GeoPackage file SHALL include agpkg_contentstable per table Contents Table or View Definition and gpkg_contents Table Definition SQL.- Throws:
SQLException- If an SQL query causes an error- See Also:
-
contentsTablesExist
Thetable_namecolumn value in agpkg_contentstable row SHALL contain the name of a SQLite table or view.- Throws:
SQLException- If an SQL query causes an error- See Also:
-
timestampFormat
Values of thegpkg_contentstablelast_changecolumn 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.- Throws:
SQLException- If an SQL query causes an error- See Also:
-
srsIdReferencesSrsTable
Values of thegpkg_contentstablesrs_idcolumn SHALL reference values in thegpkg_spatial_ref_systablesrs_idcolumn.- Throws:
SQLException- If an SQL query causes an error- See Also:
-
optValidGeoPackage
Verify that a GeoPackage contains a features or tiles table and gpkg_contents table row describing it.- Throws:
SQLException- If an SQL query causes an error- See Also:
-
getAllowedSqlTypes
-