public abstract class CoverageData<TImage extends CoverageDataImage> extends CoverageDataCore<TImage>
| Modifier and Type | Field and Description |
|---|---|
protected TileDao |
tileDao
Tile DAO
|
algorithm, coverageBoundingBox, coverageProjection, encoding, EXTENSION_AUTHOR, EXTENSION_DEFINITION, EXTENSION_NAME, EXTENSION_NAME_NO_AUTHOR, height, requestProjection, sameProjection, width, zoomIn, zoomInBeforeOut, zoomOutextensionsDao, geoPackage| Constructor and Description |
|---|
CoverageData(GeoPackage geoPackage,
TileDao tileDao,
Integer width,
Integer height,
Projection requestProjection)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
abstract TImage |
createImage(TileRow tileRow)
Create a coverage data image
|
static CoverageData<?> |
createTileTableWithMetadata(GeoPackage geoPackage,
String tableName,
BoundingBox contentsBoundingBox,
long contentsSrsId,
BoundingBox tileMatrixSetBoundingBox,
long tileMatrixSetSrsId,
GriddedCoverageDataType dataType)
Create the coverage data tile table with metadata and extension
|
abstract byte[] |
drawTileData(GriddedTile griddedTile,
Double[][] values)
Draw a coverage data image tile and format as TIFF bytes from the double
array of coverage data values formatted as Double[row][width]
|
abstract byte[] |
drawTileData(GriddedTile griddedTile,
Double[] values,
int tileWidth,
int tileHeight)
Draw a coverage data image tile and format as TIFF bytes from the flat array
of coverage data values of length tileWidth * tileHeight where each coverage data value is
at: (y * tileWidth) + x
|
static CoverageData<?> |
getCoverageData(GeoPackage geoPackage,
TileDao tileDao)
Get a Tiled Gridded Coverage Data, use the coverage data pixel tile size
as the request size width and height
|
static CoverageData<?> |
getCoverageData(GeoPackage geoPackage,
TileDao tileDao,
Integer width,
Integer height,
Projection requestProjection)
Get a Tiled Gridded Coverage Data
|
static CoverageData<?> |
getCoverageData(GeoPackage geoPackage,
TileDao tileDao,
Projection requestProjection)
Get a Tiled Gridded Coverage Data, use the coverage data pixel tile size
as the request size width and height, request as the specified projection
|
TileDao |
getTileDao()
Get the tile dao
|
abstract Double |
getValue(GriddedTile griddedTile,
byte[] imageBytes,
int x,
int y)
Get the coverage data value
|
abstract double |
getValue(GriddedTile griddedTile,
TileRow tileRow,
int x,
int y)
Get the coverage data value of the pixel in the tile row image
|
double |
getValue(TileRow tileRow,
int x,
int y)
Get the coverage data value of the pixel in the tile row image
|
CoverageDataResults |
getValues(CoverageDataRequest request,
Integer width,
Integer height) |
abstract Double[] |
getValues(GriddedTile griddedTile,
byte[] imageBytes)
Get the coverage data values
|
CoverageDataResults |
getValuesUnbounded(CoverageDataRequest request) |
createTileTableWithMetadata, formatUnboundedResults, getAlgorithm, getBicubicInterpolationValue, getBicubicInterpolationValue, getBicubicInterpolationValue, getBilinearInterpolationValue, getBilinearInterpolationValue, getBilinearInterpolationValue, getBilinearInterpolationValue, getCoverageBoundingBox, getCoverageProjection, getCubicInterpolationValue, getCubicInterpolationValue, getDataNull, getEncoding, getFloatPixelValue, getGriddedCoverage, getGriddedCoverageDao, getGriddedTile, getGriddedTile, getGriddedTileDao, getHeight, getNearestNeighbors, getNearestNeighborValue, getOrCreate, getPixelValue, getPixelValue, getPixelValue, getPixelValue, getRequestProjection, getTables, getTileMatrixSet, getUnsignedPixelValue, getUnsignedPixelValue, getUnsignedPixelValue, getUnsignedPixelValue, getUnsignedPixelValues, getValue, getValue, getValue, getValue, getValue, getValues, getValues, getValues, getValues, getValues, getValues, getValuesUnbounded, getWidth, getXSource, getXSourceMinAndMax, getYSource, getYSourceMinAndMax, has, isDataNull, isSameProjection, isZoomIn, isZoomInBeforeOut, isZoomOut, padBoundingBox, queryGriddedCoverage, reprojectCoverageData, setAlgorithm, setEncoding, setHeight, setWidth, setZoomIn, setZoomInBeforeOut, setZoomOutget, getExtensions, getExtensions, getExtensionsDao, getGeoPackage, getOrCreate, has, has, hasprotected final TileDao tileDao
public CoverageData(GeoPackage geoPackage, TileDao tileDao, Integer width, Integer height, Projection requestProjection)
geoPackage - GeoPackagetileDao - tile daowidth - coverage data response widthheight - coverage data response heightrequestProjection - request projectionpublic static CoverageData<?> getCoverageData(GeoPackage geoPackage, TileDao tileDao, Integer width, Integer height, Projection requestProjection)
geoPackage - GeoPackagetileDao - tile daowidth - coverage data response widthheight - coverage data response heightrequestProjection - request projectionpublic static CoverageData<?> getCoverageData(GeoPackage geoPackage, TileDao tileDao)
geoPackage - GeoPackagetileDao - tile daopublic static CoverageData<?> getCoverageData(GeoPackage geoPackage, TileDao tileDao, Projection requestProjection)
geoPackage - GeoPackagetileDao - tile daorequestProjection - request projectionpublic static CoverageData<?> createTileTableWithMetadata(GeoPackage geoPackage, String tableName, BoundingBox contentsBoundingBox, long contentsSrsId, BoundingBox tileMatrixSetBoundingBox, long tileMatrixSetSrsId, GriddedCoverageDataType dataType)
geoPackage - GeoPackagetableName - table namecontentsBoundingBox - contents bounding boxcontentsSrsId - contents srs idtileMatrixSetBoundingBox - tile matrix set bounding boxtileMatrixSetSrsId - tile matrix set srs iddataType - gridded coverage data typepublic abstract TImage createImage(TileRow tileRow)
tileRow - tile rowpublic abstract double getValue(GriddedTile griddedTile, TileRow tileRow, int x, int y)
griddedTile - gridded tiletileRow - tile rowx - x coordinatey - y coordinatepublic abstract Double getValue(GriddedTile griddedTile, byte[] imageBytes, int x, int y)
griddedTile - gridded tileimageBytes - image bytesx - x coordinatey - y coordinatepublic abstract Double[] getValues(GriddedTile griddedTile, byte[] imageBytes)
griddedTile - gridded tileimageBytes - image bytespublic abstract byte[] drawTileData(GriddedTile griddedTile, Double[] values, int tileWidth, int tileHeight)
griddedTile - gridded tilevalues - coverage data values of length tileWidth * tileHeighttileWidth - tile widthtileHeight - tile heightpublic abstract byte[] drawTileData(GriddedTile griddedTile, Double[][] values)
griddedTile - gridded tilevalues - coverage data values as [row][width]public TileDao getTileDao()
public CoverageDataResults getValues(CoverageDataRequest request, Integer width, Integer height)
getValues in class CoverageDataCore<TImage extends CoverageDataImage>public CoverageDataResults getValuesUnbounded(CoverageDataRequest request)
getValuesUnbounded in class CoverageDataCore<TImage extends CoverageDataImage>public double getValue(TileRow tileRow, int x, int y)
tileRow - tile rowx - x coordinatey - y coordinate