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
  • Constructor Details

    • 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 Details

    • 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 interface CoverageDataImage
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface CoverageDataImage
    • 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 coordinate
      y - y coordinate
      Returns:
      pixel value