public class ElevationTilesTiff extends ElevationTilesCommon<ElevationTiffImage>
| Modifier and Type | Field and Description |
|---|---|
static int |
BITS_PER_SAMPLE
Bits per value for floating point elevations
|
static int |
SAMPLES_PER_PIXEL
Single sample elevation
|
tileDaoalgorithm, elevationBoundingBox, elevationProjection, EXTENSION_AUTHOR, EXTENSION_DEFINITION, EXTENSION_NAME, EXTENSION_NAME_NO_AUTHOR, height, requestProjection, sameProjection, width, zoomIn, zoomInBeforeOut, zoomOutextensionsDao, geoPackage| Constructor and Description |
|---|
ElevationTilesTiff(GeoPackage geoPackage,
TileDao tileDao)
Constructor, use the elevation tables pixel tile size as the request size
width and height
|
ElevationTilesTiff(GeoPackage geoPackage,
TileDao tileDao,
Integer width,
Integer height,
Projection requestProjection)
Constructor
|
ElevationTilesTiff(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 |
|---|---|
ElevationTiffImage |
createElevationImage(TileRow tileRow)
Create an elevation image
|
ElevationTiffImage |
createImage(int tileWidth,
int tileHeight)
Create a new image
|
static ElevationTilesTiff |
createTileTableWithMetadata(GeoPackage geoPackage,
String tableName,
BoundingBox contentsBoundingBox,
long contentsSrsId,
BoundingBox tileMatrixSetBoundingBox,
long tileMatrixSetSrsId)
Create the elevation tile table with metadata and extension
|
ElevationTiffImage |
drawTile(float[][] pixelValues)
Draw an elevation image tile from the double array of float pixel values
formatted as float[row][width]
|
ElevationTiffImage |
drawTile(float[] pixelValues,
int tileWidth,
int tileHeight)
Draw an elevation image tile from the flat array of float pixel values of
length tileWidth * tileHeight where each pixel is at: (y * tileWidth) + x
|
ElevationTiffImage |
drawTile(GriddedTile griddedTile,
Double[][] elevations)
Draw an elevation image tile from the double array of elevations
formatted as Double[row][width]
|
ElevationTiffImage |
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
|
byte[] |
drawTileData(float[][] pixelValues)
Draw an elevation image tile and format as TIFF bytes from the double
array of float pixel values formatted as float[row][width]
|
byte[] |
drawTileData(float[] pixelValues,
int tileWidth,
int tileHeight)
Draw an elevation image tile and format as TIFF bytes from the flat array
of float 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 TIFF bytes from the double
array of elevations formatted as Double[row][width]
|
byte[] |
drawTileData(GriddedTile griddedTile,
Double[] elevations,
int tileWidth,
int tileHeight)
Draw an elevation image tile and format as TIFF bytes from the flat array
of elevations of length tileWidth * tileHeight where each elevation is
at: (y * tileWidth) + x
|
Double |
getElevationValue(GriddedTile griddedTile,
byte[] imageBytes,
int x,
int y)
Get the elevation value
|
Double |
getElevationValue(GriddedTile griddedTile,
ElevationTiffImage 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
|
float |
getPixelValue(byte[] imageBytes,
int x,
int y)
Get the pixel value as a float from the image and the coordinate
|
float[] |
getPixelValues(byte[] imageBytes)
Get the pixel values of the image as floats
|
void |
setPixelValue(ElevationTiffImage image,
int x,
int y,
float pixelValue)
Set the pixel value into the image
|
static void |
validateImageType(mil.nga.tiff.FileDirectory directory)
Validate that the image type
|
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 static final int SAMPLES_PER_PIXEL
public static final int BITS_PER_SAMPLE
public ElevationTilesTiff(GeoPackage geoPackage, TileDao tileDao, Integer width, Integer height, Projection requestProjection)
geoPackage - GeoPackagetileDao - tile daowidth - elevation response widthheight - elevation response heightrequestProjection - request projectionpublic ElevationTilesTiff(GeoPackage geoPackage, TileDao tileDao)
geoPackage - GeoPackagetileDao - tile daopublic ElevationTilesTiff(GeoPackage geoPackage, TileDao tileDao, Projection requestProjection)
geoPackage - GeoPackagetileDao - tile daorequestProjection - request projectionpublic ElevationTiffImage createElevationImage(TileRow tileRow)
createElevationImage in class ElevationTilesCommon<ElevationTiffImage>tileRow - tile rowpublic double getElevationValue(GriddedTile griddedTile, TileRow tileRow, int x, int y)
getElevationValue in class ElevationTilesCommon<ElevationTiffImage>griddedTile - gridded tiletileRow - tile rowx - x coordinatey - y coordinatepublic Double getElevationValue(GriddedTile griddedTile, ElevationTiffImage image, int x, int y)
getElevationValue in class ElevationTilesCore<ElevationTiffImage>public float getPixelValue(byte[] imageBytes,
int x,
int y)
imageBytes - image bytesx - x coordinatey - y coordinatepublic float[] getPixelValues(byte[] imageBytes)
imageBytes - image bytespublic static void validateImageType(mil.nga.tiff.FileDirectory directory)
directory - file directorypublic 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 ElevationTiffImage drawTile(float[] pixelValues, int tileWidth, int tileHeight)
pixelValues - float pixel values of length tileWidth * tileHeighttileWidth - tile widthtileHeight - tile heightpublic byte[] drawTileData(float[] pixelValues,
int tileWidth,
int tileHeight)
pixelValues - float pixel values of length tileWidth * tileHeighttileWidth - tile widthtileHeight - tile heightpublic ElevationTiffImage drawTile(float[][] pixelValues)
pixelValues - float pixel values as [row][width]public byte[] drawTileData(float[][] pixelValues)
pixelValues - float pixel values as [row][width]public ElevationTiffImage 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 ElevationTiffImage 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 ElevationTiffImage createImage(int tileWidth, int tileHeight)
tileWidth - tile widthtileHeight - tile heightpublic void setPixelValue(ElevationTiffImage image, int x, int y, float pixelValue)
image - imagex - x coordinatey - y coordinatepixelValue - pixel valuepublic static ElevationTilesTiff createTileTableWithMetadata(GeoPackage geoPackage, String tableName, BoundingBox contentsBoundingBox, long contentsSrsId, BoundingBox tileMatrixSetBoundingBox, long tileMatrixSetSrsId)
geoPackage - tableName - contentsBoundingBox - contentsSrsId - tileMatrixSetBoundingBox - tileMatrixSetSrsId -