Class CoverageDataTiffImage
java.lang.Object
mil.nga.geopackage.extension.coverage.CoverageDataTiffImage
- All Implemented Interfaces:
CoverageDataImage
Coverage Data TIFF image
- Since:
- 2.0.1
-
Constructor Summary
ConstructorDescriptionCoverageDataTiffImage
(TileRow tileRow) Constructor, used for reading a TIFFCoverageDataTiffImage
(FileDirectory directory) Constructor, used for writing a TIFF -
Method Summary
-
Constructor Details
-
CoverageDataTiffImage
Constructor, used for reading a TIFF- Parameters:
tileRow
- tile row
-
CoverageDataTiffImage
Constructor, used for writing a TIFF- Parameters:
directory
- file directory
-
-
Method Details
-
getImageBytes
public byte[] getImageBytes()Get the image bytes- Returns:
- image bytes
-
getDirectory
Get the file directory- Returns:
- file directory
-
getRasters
Get the rasters, read if needed- Returns:
- rasters
-
getWidth
public int getWidth()- Specified by:
getWidth
in interfaceCoverageDataImage
-
getHeight
public int getHeight()- Specified by:
getHeight
in interfaceCoverageDataImage
-
writeTiff
public void writeTiff()Write the TIFF file to the image bytes -
getPixel
public float getPixel(int x, int y) Get the pixel at the coordinate- Parameters:
x
- x coordinatey
- y coordinate- Returns:
- pixel value
-