Class NSG_TileTests

java.lang.Object
org.opengis.cite.gpkg12.CommonFixture
org.opengis.cite.gpkg12.nsg.tiles.NSG_TileTests

public class NSG_TileTests extends org.opengis.cite.gpkg12.CommonFixture
  • Field Summary

    Fields inherited from class org.opengis.cite.gpkg12.CommonFixture

    databaseConnection, dataSource, geopackageVersion, gpkgFile, ROOT_PKG_PATH
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    NSG Req 23: The (min_x, min_y, max_x, max_y) values in the gpkg_tile_matrix_set table SHALL be the maximum bounds of the CRS specified for the tile pyramid data table and SHALL be used to determine the geographic position of each tile in the tile pyramid data table.
    void
    --- NSG Req 19: Data validity SHALL be assessed against data value constraints specified in Table 26 below using a test suite.
    void
    NSG Req 19: Data validity SHALL be assessed against data value constraints specified in Table 26 below using a test suite.
    void
    NSG Req 22: The gpkg_tile_matrix table SHALL contain pixel_x_size and pixel_y_size column values that differ by a factor of 2 between all adjacent zoom levels for each tile pyramid data table per OGC GeoPackage Clause 2.2.3.
    void
    NSG Req 20: The gpkg_tile_matrix table SHALL contain tile_width and tile_height column values of 256 for every table_name tile pyramid data table.
    static String
    Validate a string value to ensure it contains no illegal characters or content

    Methods inherited from class org.opengis.cite.gpkg12.CommonFixture

    checkPrimaryKey, close, getGeopackageVersion, getPrimaryKeyColumn, getTestName, initCommonFixture, isExtendedType, setTestName, validateClassEnabled

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • NSG_TileTests

      public NSG_TileTests()
  • Method Details

    • ValidateStringInput

      public static String ValidateStringInput(String inputString) throws IllegalArgumentException
      Validate a string value to ensure it contains no illegal characters or content
      Parameters:
      inputString - The string to validate
      Returns:
      validated string
      Throws:
      IllegalArgumentException - if the input is found to be invalid
    • dataValidity_gpkg_tile_matrix

      public void dataValidity_gpkg_tile_matrix() throws SQLException
      NSG Req 19: Data validity SHALL be assessed against data value constraints specified in Table 26 below using a test suite. Data validity MAY be enforced by SQL triggers. 19-D: Addresses Table 26 Rows 12-17 (regarding table "gpkg_tile_matrix")
      Throws:
      SQLException - if access to gpkg failed
    • tileSizeTests

      public void tileSizeTests() throws SQLException, IOException
      NSG Req 20: The gpkg_tile_matrix table SHALL contain tile_width and tile_height column values of 256 for every table_name tile pyramid data table. NSG Req 21: Every tile_data tile in every table_name tile pyramid data table shall have a width and height of 256 pixels.
      Throws:
      SQLException - if access to gpkg failed
      IOException - if tile data coul not be read
    • pixelsSizeTests

      public void pixelsSizeTests() throws SQLException
      NSG Req 22: The gpkg_tile_matrix table SHALL contain pixel_x_size and pixel_y_size column values that differ by a factor of 2 between all adjacent zoom levels for each tile pyramid data table per OGC GeoPackage Clause 2.2.3. It SHALL NOT contain pixel sizes that vary by irregular intervals or by regular intervals other than a factor of 2 between adjacent zoom levels per OGC GeoPackage Clause 3.2.1.
      Throws:
      SQLException - if access to gpkg failed
    • boundingBoxTests

      public void boundingBoxTests() throws SQLException
      NSG Req 23: The (min_x, min_y, max_x, max_y) values in the gpkg_tile_matrix_set table SHALL be the maximum bounds of the CRS specified for the tile pyramid data table and SHALL be used to determine the geographic position of each tile in the tile pyramid data table.
      Throws:
      SQLException - if access to gpkg failed
    • dataValidity_gpkg_contents

      public void dataValidity_gpkg_contents() throws SQLException
      --- NSG Req 19: Data validity SHALL be assessed against data value constraints specified in Table 26 below using a test suite. Data validity MAY be enforced by SQL triggers. --- 19-B: Addresses Table 26 Rows 3-7 (regarding table "gpkg_contents")
      Throws:
      SQLException - if access to gpkg failed