Class WebPTests
java.lang.Object
org.opengis.cite.gpkg12.CommonFixture
org.opengis.cite.gpkg12.TileFixture
org.opengis.cite.gpkg12.extensions.webp.WebPTests
Defines test methods that apply to descriptive information about a GeoPackage's content
as it pertains to tiled, gridded elevation data.
Sources
- GeoPackage Encoding Standard - Annex F.11 Elevation (OGC 12-128r13)
- Author:
- Jeff Yutzler
-
Field Summary
Fields inherited from class org.opengis.cite.gpkg12.TileFixture
jpegImageReaders, pngImageReaders, TileTableExpectedColumns, tileTableNames
Fields inherited from class org.opengis.cite.gpkg12.CommonFixture
databaseConnection, dataSource, geopackageVersion, gpkgFile, ROOT_PKG_PATH
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
a_ValidateExtensionPresent
(org.testng.ITestContext testContext) GeoPackages with one or more rows in the `gpkg_extensions` table with an `extension_name` of "gpkg_webp" SHALL comply with this extension.void
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".void
(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.protected boolean
isAcceptedImageFormat
(byte[] image) void
setUp()
Sets up variables used across methods, overrides TileTestsMethods inherited from class org.opengis.cite.gpkg12.TileFixture
canReadImage, isEqual, setDataType
Methods inherited from class org.opengis.cite.gpkg12.CommonFixture
checkPrimaryKey, close, getGeopackageVersion, getPrimaryKeyColumn, getTestName, initCommonFixture, isExtendedType, setTestName, validateClassEnabled
-
Field Details
-
webpImageReaders
-
-
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
Sets up variables used across methods, overrides TileTests- Overrides:
setUp
in classTileFixture
- Throws:
SQLException
- if there is a database error
-
coverageAncillaryTableDefinition
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
(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 errorIOException
- If the bytes of an image cause an error when read- See Also:
-
isAcceptedImageFormat
- Overrides:
isAcceptedImageFormat
in classTileFixture
- Throws:
IOException
-