public class ElevationTilesPng extends ElevationTilesCommon<ElevationPngImage>
tileDaoalgorithm, elevationBoundingBox, elevationProjection, EXTENSION_AUTHOR, EXTENSION_DEFINITION, EXTENSION_NAME, EXTENSION_NAME_NO_AUTHOR, height, requestProjection, sameProjection, width, zoomIn, zoomInBeforeOut, zoomOutextensionsDao, geoPackage| Constructor and Description |
|---|
ElevationTilesPng(GeoPackage geoPackage,
TileDao tileDao)
Constructor, use the elevation tables pixel tile size as the request size
width and height
|
ElevationTilesPng(GeoPackage geoPackage,
TileDao tileDao,
Integer width,
Integer height,
Projection requestProjection)
Constructor
|
ElevationTilesPng(GeoPackage geoPackage,
TileDao tileDao,
Projection requestProjection)
Constructor, use the elevation tables pixel tile size as the request size
width and height, request as the specified projection
|
| Modifier and Type | Method and Description |
|---|---|
ElevationPngImage |
createElevationImage(TileRow tileRow)
Create an elevation image
|
ElevationPngImage |
createImage(int tileWidth,
int tileHeight)
Create a new 16 bit single channel image
|
static ElevationTilesPng |
createTileTableWithMetadata(GeoPackage geoPackage,
String tableName,
BoundingBox contentsBoundingBox,
long contentsSrsId,
BoundingBox tileMatrixSetBoundingBox,
long tileMatrixSetSrsId)
Create the elevation tile table with metadata and extension
|
ElevationPngImage |
drawTile(GriddedTile griddedTile,
Double[][] elevations)
Draw an elevation image tile from the double array of unsigned elevations
formatted as Double[row][width]
|
ElevationPngImage |
drawTile(GriddedTile griddedTile,
Double[] elevations,
int tileWidth,
int tileHeight)
Draw an elevation image tile from the flat array of elevations of length
tileWidth * tileHeight where each elevation is at: (y * tileWidth) + x
|
ElevationPngImage |
drawTile(int[][] unsignedPixelValues)
Draw an elevation image tile from the double array of unsigned 16 bit
integer pixel values formatted as int[row][width]
|
ElevationPngImage |
drawTile(int[] unsignedPixelValues,
int tileWidth,
int tileHeight)
Draw an elevation image tile from the flat array of unsigned 16 bit
integer pixel values of length tileWidth * tileHeight where each pixel is
at: (y * tileWidth) + x
|
ElevationPngImage |
drawTile(short[][] pixelValues)
Draw an elevation tile from the double array of "unsigned short" pixel
values formatted as short[row][width]
|
ElevationPngImage |
drawTile(short[] pixelValues,
int tileWidth,
int tileHeight)
Draw an elevation image tile from the flat array of "unsigned short"
pixel values of length tileWidth * tileHeight where each pixel is at: (y
* tileWidth) + x
|
byte[] |
drawTileData(GriddedTile griddedTile,
Double[][] elevations)
Draw an elevation image tile and format as PNG bytes from the double
array of unsigned elevations formatted as Double[row][width]
|
byte[] |
drawTileData(GriddedTile griddedTile,
Double[] elevations,
int tileWidth,
int tileHeight)
Draw an elevation image tile and format as PNG bytes from the flat array
of elevations of length tileWidth * tileHeight where each elevation is
at: (y * tileWidth) + x
|
byte[] |
drawTileData(int[][] unsignedPixelValues)
Draw an elevation image tile and format as PNG bytes from the double
array of unsigned 16 bit integer pixel values formatted as
int[row][width]
|
byte[] |
drawTileData(int[] unsignedPixelValues,
int tileWidth,
int tileHeight)
Draw an elevation image tile and format as PNG bytes from the flat array
of unsigned 16 bit integer pixel values of length tileWidth * tileHeight
where each pixel is at: (y * tileWidth) + x
|
byte[] |
drawTileData(short[][] pixelValues)
Draw an elevation tile and format as PNG bytes from the double array of
"unsigned short" pixel values formatted as short[row][width]
|
byte[] |
drawTileData(short[] pixelValues,
int tileWidth,
int tileHeight)
Draw an elevation image tile and format as PNG bytes from the flat array
of "unsigned short" pixel values of length tileWidth * tileHeight where
each pixel is at: (y * tileWidth) + x
|
Double |
getElevationValue(GriddedTile griddedTile,
byte[] imageBytes,
int x,
int y)
Get the elevation value
|
Double |
getElevationValue(GriddedTile griddedTile,
ElevationPngImage image,
int x,
int y) |
double |
getElevationValue(GriddedTile griddedTile,
TileRow tileRow,
int x,
int y)
Get the elevation value of the pixel in the tile row image
|
Double[] |
getElevationValues(GriddedTile griddedTile,
byte[] imageBytes)
Get the elevation values
|
int |
getPixelValue(byte[] imageBytes,
int x,
int y)
Get the pixel value as a 16 bit unsigned integer value
|
int[] |
getPixelValues(byte[] imageBytes)
Get the pixel values of the image as 16 bit unsigned integer values
|
void |
setPixelValue(ImageLineInt row,
int x,
int unsignedPixelValue)
Set the pixel value
|
void |
setPixelValue(ImageLineInt row,
int x,
short pixelValue)
Set the pixel value
|
void |
setPixelValue(int[] row,
int x,
int unsignedPixelValue)
Set the pixel value
|
void |
setPixelValue(int[] row,
int x,
short pixelValue)
Set the pixel value
|
static void |
validateImageType(PngReader reader)
Validate that the image type is single channel 16 bit
|
getElevations, getElevationsUnbounded, getElevationValue, getTileDaocreateTileTableWithMetadata, formatUnboundedResults, getAlgorithm, getBicubicInterpolationElevation, getBicubicInterpolationElevation, getBicubicInterpolationElevation, getBilinearInterpolationElevation, getBilinearInterpolationElevation, getBilinearInterpolationElevation, getBilinearInterpolationElevation, getCubicInterpolationElevation, getCubicInterpolationElevation, getDataNull, getElevation, getElevationBoundingBox, getElevationProjection, getElevations, getElevations, getElevations, getElevationsUnbounded, getElevationValue, getElevationValue, getElevationValue, getElevationValues, getElevationValues, getElevationValues, getFloatPixelValue, getGriddedCoverage, getGriddedCoverageDao, getGriddedTile, getGriddedTile, getGriddedTileDao, getHeight, getNearestNeighborElevation, getNearestNeighbors, getOrCreate, getPixelValue, getPixelValue, getPixelValue, getPixelValue, getRequestProjection, getSourceMinAndMax, getTables, getTileMatrixSet, getUnsignedPixelValue, getUnsignedPixelValue, getUnsignedPixelValue, getUnsignedPixelValue, getUnsignedPixelValues, getWidth, getXSource, getYSource, has, isDataNull, isSameProjection, isZoomIn, isZoomInBeforeOut, isZoomOut, padBoundingBox, queryGriddedCoverage, reprojectElevations, setAlgorithm, setHeight, setWidth, setZoomIn, setZoomInBeforeOut, setZoomOutget, getExtensionsDao, getGeoPackage, getOrCreate, haspublic ElevationTilesPng(GeoPackage geoPackage, TileDao tileDao, Integer width, Integer height, Projection requestProjection)
geoPackage - GeoPackagetileDao - tile daowidth - elevation response widthheight - elevation response heightrequestProjection - request projectionpublic ElevationTilesPng(GeoPackage geoPackage, TileDao tileDao)
geoPackage - GeoPackagetileDao - tile daopublic ElevationTilesPng(GeoPackage geoPackage, TileDao tileDao, Projection requestProjection)
geoPackage - GeoPackagetileDao - tile daorequestProjection - request projectionpublic ElevationPngImage createElevationImage(TileRow tileRow)
createElevationImage in class ElevationTilesCommon<ElevationPngImage>tileRow - tile rowpublic double getElevationValue(GriddedTile griddedTile, TileRow tileRow, int x, int y)
getElevationValue in class ElevationTilesCommon<ElevationPngImage>griddedTile - gridded tiletileRow - tile rowx - x coordinatey - y coordinatepublic Double getElevationValue(GriddedTile griddedTile, ElevationPngImage image, int x, int y)
getElevationValue in class ElevationTilesCore<ElevationPngImage>public int getPixelValue(byte[] imageBytes,
int x,
int y)
imageBytes - image bytesx - x coordinatey - y coordinatepublic int[] getPixelValues(byte[] imageBytes)
imageBytes - image bytespublic static void validateImageType(PngReader reader)
reader - png readerpublic Double getElevationValue(GriddedTile griddedTile, byte[] imageBytes, int x, int y)
griddedTile - gridded tileimageBytes - image bytesx - x coordinatey - y coordinatepublic Double[] getElevationValues(GriddedTile griddedTile, byte[] imageBytes)
griddedTile - gridded tileimageBytes - image bytespublic ElevationPngImage drawTile(short[] pixelValues, int tileWidth, int tileHeight)
pixelValues - "unsigned short" pixel values of length tileWidth * tileHeighttileWidth - tile widthtileHeight - tile heightpublic byte[] drawTileData(short[] pixelValues,
int tileWidth,
int tileHeight)
pixelValues - "unsigned short" pixel values of length tileWidth * tileHeighttileWidth - tile widthtileHeight - tile heightpublic ElevationPngImage drawTile(short[][] pixelValues)
pixelValues - "unsigned short" pixel values as [row][width]public byte[] drawTileData(short[][] pixelValues)
pixelValues - "unsigned short" pixel values as [row][width]public ElevationPngImage drawTile(int[] unsignedPixelValues, int tileWidth, int tileHeight)
unsignedPixelValues - unsigned 16 bit integer pixel values of length tileWidth *
tileHeighttileWidth - tile widthtileHeight - tile heightpublic byte[] drawTileData(int[] unsignedPixelValues,
int tileWidth,
int tileHeight)
unsignedPixelValues - unsigned 16 bit integer pixel values of length tileWidth *
tileHeighttileWidth - tile widthtileHeight - tile heightpublic ElevationPngImage drawTile(int[][] unsignedPixelValues)
unsignedPixelValues - unsigned 16 bit integer pixel values as [row][width]public byte[] drawTileData(int[][] unsignedPixelValues)
unsignedPixelValues - unsigned 16 bit integer pixel values as [row][width]public ElevationPngImage drawTile(GriddedTile griddedTile, Double[] elevations, int tileWidth, int tileHeight)
griddedTile - gridded tileelevations - elevations of length tileWidth * tileHeighttileWidth - tile widthtileHeight - tile heightpublic byte[] drawTileData(GriddedTile griddedTile, Double[] elevations, int tileWidth, int tileHeight)
griddedTile - gridded tileelevations - elevations of length tileWidth * tileHeighttileWidth - tile widthtileHeight - tile heightpublic ElevationPngImage drawTile(GriddedTile griddedTile, Double[][] elevations)
griddedTile - gridded tileelevations - elevations as [row][width]public byte[] drawTileData(GriddedTile griddedTile, Double[][] elevations)
griddedTile - gridded tileelevations - elevations as [row][width]public ElevationPngImage createImage(int tileWidth, int tileHeight)
tileWidth - tile widthtileHeight - tile heightpublic void setPixelValue(ImageLineInt row, int x, short pixelValue)
row - image line rowx - x coordinatepixelValue - pixel valuepublic void setPixelValue(int[] row,
int x,
short pixelValue)
row - row arrayx - x coordinatepixelValue - pixel valuepublic void setPixelValue(ImageLineInt row, int x, int unsignedPixelValue)
row - image line rowx - x coordinateunsignedPixelValue - unsigned pixel valuepublic void setPixelValue(int[] row,
int x,
int unsignedPixelValue)
row - row arrayx - x coordinateunsignedPixelValue - unsigned pixel valuepublic static ElevationTilesPng createTileTableWithMetadata(GeoPackage geoPackage, String tableName, BoundingBox contentsBoundingBox, long contentsSrsId, BoundingBox tileMatrixSetBoundingBox, long tileMatrixSetSrsId)
geoPackage - tableName - contentsBoundingBox - contentsSrsId - tileMatrixSetBoundingBox - tileMatrixSetSrsId -