Class GeoPackageTile


  • public class GeoPackageTile
    extends Object
    GeoPackage tile wrapper containing tile dimensions and the image or raw image bytes
    Since:
    1.2.0
    Author:
    osbornb
    • Field Detail

      • width

        public final int width
        Tile width
      • height

        public final int height
        Tile height
    • Constructor Detail

      • GeoPackageTile

        public GeoPackageTile​(int width,
                              int height,
                              BufferedImage image)
        Constructor
        Parameters:
        width - tile width
        height - tile height
        image - tile image
      • GeoPackageTile

        public GeoPackageTile​(int width,
                              int height,
                              byte[] data)
        Constructor
        Parameters:
        width - tile width
        height - tile height
        data - tile data
    • Method Detail

      • getWidth

        public int getWidth()
        Get width
        Returns:
        width
      • getHeight

        public int getHeight()
        Get height
        Returns:
        height
      • getImage

        public BufferedImage getImage()
        Get the image
        Returns:
        image
      • getData

        public byte[] getData()
        Get image data
        Returns:
        image data
      • setImage

        public void setImage​(BufferedImage image)
        Set the image
        Parameters:
        image - buffered image
      • setData

        public void setData​(byte[] data)
        Set the image data
        Parameters:
        data - image data