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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
The columns of tables in a GeoPackage SHALL only be declared using one of the data types specified in table GeoPackage Data Types.void
A GeoPackage file SHALL include agpkg_contents
table per table Contents Table or View Definition and gpkg_contents Table Definition SQL.void
Thetable_name
column value in agpkg_contents
table row SHALL contain the name of a SQLite table or view.static Collection<String>
void
Verify that a GeoPackage contains a features or tiles table and gpkg_contents table row describing it.void
Values of thegpkg_contents
tablesrs_id
column SHALL reference values in thegpkg_spatial_ref_sys
tablesrs_id
column.void
Values of thegpkg_contents
tablelast_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.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_contents
table 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_name
column value in agpkg_contents
table 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_contents
tablelast_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.- Throws:
SQLException
- If an SQL query causes an error- See Also:
-
srsIdReferencesSrsTable
Values of thegpkg_contents
tablesrs_id
column SHALL reference values in thegpkg_spatial_ref_sys
tablesrs_id
column.- 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
-