public class WebPTests extends TileTests
Sources
CommonFixture.GeoPackageVersion| Modifier and Type | Field and Description |
|---|---|
protected static Collection<ImageReader> |
webpImageReaders |
jpegImageReaders, pngImageReaders, tileTableNamesdatabaseConnection, dataSource, gpkgFile, ROOT_PKG_PATH| Constructor and Description |
|---|
WebPTests() |
| Modifier and Type | Method and Description |
|---|---|
void |
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 |
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, getDataType, imageFormatJpg, matrixHeightGreaterThanZero, matrixSetNameForEachTilesTable, matrixSetNamesReferenceTiles, matrixSetSrsIdReferencesGoodId, matrixWidthGreaterThanZero, pixelXSizeGreaterThanZero, pixelYSizeGreaterThanZero, setDataType, sortedPixelSizes, tileColumnRange, tileHeightGreaterThanZero, tileMatrixDimensionAgreement, tileMatrixPerZoomLevel, tileMatrixSetTable, tileMatrixTableContentsReferences, tileMatrixTableDefinition, tileRowRange, tilesTableDefinitions, tileWidthGreaterThanZero, zoomLevelNotNegative, zoomLevelRange, zoomTimesTwocheckPrimaryKey, close, getAllowedVersions, getGeopackageVersion, getPrimaryKeyColumn, getTestName, initCommonFixture, isExtendedType, setTestName, validateClassEnabledprotected static final Collection<ImageReader> webpImageReaders
public void a_ValidateExtensionPresent(org.testng.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 TileTestsSQLException - 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_webpimageFormat in class TileTestsSQLException - 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 TileTestsIOExceptionCopyright © 2018 Open Geospatial Consortium. All rights reserved.