Class ExtensionsTests
java.lang.Object
org.opengis.cite.gpkg12.CommonFixture
org.opengis.cite.gpkg12.extensions.ExtensionsTests
Defines test methods that apply to descriptive information about a GeoPackage's content
as it pertains to the metadata extension.
Sources
- GeoPackage Encoding Standard - 2.3 Extension Mechanism (OGC 12-128r13)
- Author:
- Jeff Yutzler
-
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 scope column value in a gpkg_extensions row SHALL be lowercase "read-write" for an extension that affects both readers and writers, or "write-only" for an extension that affects only writers.voidThe `column_name` column value in a `gpkg_extensions` row SHALL be the name of a column in the table specified by the `table_name` column value for that row, or be NULL.voidA GeoPackage MAY contain a table or updateable view named gpkg_extensions.voidValues of the `gpkg_extensions` `table_name` column SHALL reference values in the `gpkg_contents` `table_name` column or be NULL.They SHALL NOT be NULL for rows where the `column_name` value is not NULL.voidvalidateTableExists(org.testng.ITestContext testContext) Methods inherited from class org.opengis.cite.gpkg12.CommonFixture
checkPrimaryKey, close, getGeopackageVersion, getPrimaryKeyColumn, getTestName, initCommonFixture, isExtendedType, setTestName, validateClassEnabled
-
Constructor Details
-
ExtensionsTests
public ExtensionsTests()
-
-
Method Details
-
validateTableExists
@BeforeClass public void validateTableExists(org.testng.ITestContext testContext) throws SQLException - Throws:
SQLException
-
extensionsTableDefinition
A GeoPackage MAY contain a table or updateable view named gpkg_extensions. If present this table SHALL be defined per clause 2.3.2.1.1 Table Definition, GeoPackage Extensions Table or View Definition (Table or View Name: gpkg_extensions) and gpkg_extensions Table Definition SQL. An extension SHALL NOT modify the definition or semantics of existing columns. An extension MAY define additional tables or columns. An extension MAY allow new values or encodings for existing columns.- Throws:
SQLException- If an SQL query causes an error- See Also:
-
extensionsTableValues
Values of the `gpkg_extensions` `table_name` column SHALL reference values in the `gpkg_contents` `table_name` column or be NULL.They SHALL NOT be NULL for rows where the `column_name` value is not NULL. /opt/extension_mechanism/extensions/data/data_values_table_name- Throws:
SQLException- If an SQL query causes an error- See Also:
-
extensionsColumnValues
The `column_name` column value in a `gpkg_extensions` row SHALL be the name of a column in the table specified by the `table_name` column value for that row, or be NULL. /opt/extension_mechanism/extensions/data/data_values_column_name- Throws:
SQLException- If an SQL query causes an error- See Also:
-
extensionsColumnScope
The scope column value in a gpkg_extensions row SHALL be lowercase "read-write" for an extension that affects both readers and writers, or "write-only" for an extension that affects only writers. /opt/extension_mechanism/extensions/data/data_values_scope- Throws:
SQLException- If an SQL query causes an error- See Also:
-