Class ExtensionsTests

java.lang.Object
org.opengis.cite.gpkg12.CommonFixture
org.opengis.cite.gpkg12.extensions.ExtensionsTests

public class ExtensionsTests extends CommonFixture
Defines test methods that apply to descriptive information about a GeoPackage's content as it pertains to the metadata extension.

Sources

Author:
Jeff Yutzler
  • Constructor Details

    • ExtensionsTests

      public ExtensionsTests()
  • Method Details

    • validateTableExists

      @BeforeClass public void validateTableExists(org.testng.ITestContext testContext) throws SQLException
      Throws:
      SQLException
    • extensionsTableDefinition

      public void extensionsTableDefinition() throws SQLException
      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

      public void extensionsTableValues() throws SQLException
      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

      public void extensionsColumnValues() throws SQLException
      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

      public void extensionsColumnScope() throws SQLException
      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: