public class WebPTests extends TileFixture
Sources
| Modifier and Type | Field and Description |
|---|---|
protected static Collection<ImageReader> |
webpImageReaders |
jpegImageReaders, pngImageReaders, TileTableExpectedColumns, tileTableNamesdatabaseConnection, dataSource, geopackageVersion, gpkgFile, ROOT_PKG_PATH| Constructor and Description |
|---|
WebPTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
a_ValidateExtensionPresent(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 |
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".
|
void |
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.
|
protected boolean |
isAcceptedImageFormat(byte[] image) |
void |
setUp()
Sets up variables used across methods, overrides TileTests
|
canReadImage, isEqual, setDataTypecheckPrimaryKey, close, getPrimaryKeyColumn, getTestName, initCommonFixture, isExtendedType, setTestName, validateClassEnabledprotected static final Collection<ImageReader> webpImageReaders
public void a_ValidateExtensionPresent(ITestContext testContext) throws SQLException
/extensions/tile_encoding_webp/data/webp_ext_nametestContext - the test contextSQLException - If an SQL query causes an errorpublic void setUp()
throws SQLException
setUp in class TileFixtureSQLException - if there is a database errorpublic void coverageAncillaryTableDefinition()
throws SQLException
/extensions/tile_encoding_webp/data/webp_ext_rowSQLException - If an SQL query causes an errorpublic void imageFormat()
throws SQLException,
IOException
/extensions/tiles_encoding_webp/data/mime_type_webpSQLException - If an SQL query causes an errorIOException - If the bytes of an image cause an error when readprotected boolean isAcceptedImageFormat(byte[] image)
throws IOException
isAcceptedImageFormat in class TileFixtureIOExceptionCopyright © 2021 Open Geospatial Consortium. All rights reserved.