Class CoverageDataTiffImage
- java.lang.Object
-
- mil.nga.geopackage.extension.coverage.CoverageDataTiffImage
-
- All Implemented Interfaces:
CoverageDataImage
public class CoverageDataTiffImage extends Object implements CoverageDataImage
Coverage Data TIFF image- Since:
- 2.0.1
- Author:
- osbornb
-
-
Constructor Summary
Constructors Constructor Description CoverageDataTiffImage(TileRow tileRow)
Constructor, used for reading a TIFFCoverageDataTiffImage(FileDirectory directory)
Constructor, used for writing a TIFF
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FileDirectory
getDirectory()
Get the file directoryint
getHeight()
byte[]
getImageBytes()
Get the image bytesfloat
getPixel(int x, int y)
Get the pixel at the coordinateRasters
getRasters()
Get the rasters, read if neededint
getWidth()
void
writeTiff()
Write the TIFF file to the image bytes
-
-
-
Constructor Detail
-
CoverageDataTiffImage
public CoverageDataTiffImage(TileRow tileRow)
Constructor, used for reading a TIFF- Parameters:
tileRow
- tile row
-
CoverageDataTiffImage
public CoverageDataTiffImage(FileDirectory directory)
Constructor, used for writing a TIFF- Parameters:
directory
- file directory
-
-
Method Detail
-
getImageBytes
public byte[] getImageBytes()
Get the image bytes- Returns:
- image bytes
-
getDirectory
public FileDirectory getDirectory()
Get the file directory- Returns:
- file directory
-
getRasters
public Rasters 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
-
-