Class GridImage

java.lang.Object
ca.spatial.gis.raster.GridImage

public class GridImage extends Object
A ESRI Grid dataset decoder.
  • Field Details

  • Constructor Details

    • GridImage

      public GridImage(String directory) throws IOException
      Throws:
      IOException
    • GridImage

      public GridImage(File directory) throws IOException
      Constructs a GridImage2 that acquires its data from a given directory.
      Parameters:
      directory - the directory containing the grid image files
      Throws:
      IOException
  • Method Details

    • getLLX

      public double getLLX()
    • getLLY

      public double getLLY()
    • getCellSize

      public double getCellSize()
    • getGridMin

      public double getGridMin()
    • getGridMax

      public double getGridMax()
    • getCellType

      public int getCellType()
    • getExtent2D

      public Extent2D getExtent2D()
    • tileXToX

      public int tileXToX(int tile)
    • tileYToY

      public int tileYToY(int tile)
    • getTileHeight

      public int getTileHeight()
    • getTileWidth

      public int getTileWidth()
    • getNumXTiles

      public int getNumXTiles()
    • getNumYTiles

      public int getNumYTiles()
    • XToTileX

      public int XToTileX(int x)
    • YToTileY

      public int YToTileY(int y)
    • getBounds

      public Rectangle getBounds()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • close

      public void close()
      Close the raw data streams. After calling this routine the GridImage can no longer be accessed.
    • getData

      public Raster getData(Rectangle region)
    • getTile

      public Raster getTile(int tileX, int tileY)
      Returns tile (tileX, tileY) as a Raster.