Class WebPTests


public class WebPTests extends TileFixture
Defines test methods that apply to descriptive information about a GeoPackage's content as it pertains to tiled, gridded elevation data.

Sources

Author:
Jeff Yutzler
  • Field Details

  • Constructor Details

    • WebPTests

      public WebPTests()
  • Method Details

    • a_ValidateExtensionPresent

      @BeforeClass public void a_ValidateExtensionPresent(org.testng.ITestContext testContext) throws SQLException
      GeoPackages with one or more rows in the `gpkg_extensions` table with an `extension_name` of "gpkg_webp" SHALL comply with this extension. Test case /extensions/tile_encoding_webp/data/webp_ext_name
      Parameters:
      testContext - the test context
      Throws:
      SQLException - If an SQL query causes an error
      See Also:
    • setUp

      @BeforeClass public void setUp() throws SQLException
      Sets up variables used across methods, overrides TileTests
      Overrides:
      setUp in class TileFixture
      Throws:
      SQLException - if there is a database error
    • coverageAncillaryTableDefinition

      public void coverageAncillaryTableDefinition() throws SQLException
      A GeoPackage that contains tile pyramid user data tables with `tile_data` columns that contain images in WebP format SHALL contain a `gpkg_extensions` table that contains row records with `table_name` values for each such table, "tile_data" `column_name` values, `extension_name` column values of "gpkg_webp", and `scope` column values of "read-write". Test case /extensions/tile_encoding_webp/data/webp_ext_row
      Throws:
      SQLException - If an SQL query causes an error
      See Also:
    • imageFormat

      public void imageFormat() throws SQLException, IOException
      (extends http://www.geopackage.org/spec/#r36[GPKG-36] and http://www.geopackage.org/spec/#r37[GPKG-37]) A GeoPackage that contains a tile pyramid user data table that contains tile data MAY store tile_data in http://www.ietf.org/rfc/rfc2046.txt[MIME type] image/x-webp. The http://www.ietf.org/rfc/rfc2046.txt[MIME type] of values of the `tile_data` column in tile pyramid user data tables SHALL be `image/x-webp`. Test case /extensions/tiles_encoding_webp/data/mime_type_webp
      Throws:
      SQLException - If an SQL query causes an error
      IOException - If the bytes of an image cause an error when read
      See Also:
    • isAcceptedImageFormat

      protected boolean isAcceptedImageFormat(byte[] image) throws IOException
      Overrides:
      isAcceptedImageFormat in class TileFixture
      Throws:
      IOException