Package ca.spatial.gis.raster
Class GridImage
java.lang.Object
ca.spatial.gis.raster.GridImage
A ESRI Grid dataset decoder.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic int
static int
static int
static int
static float
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
Close the raw data streams.double
int
double
double
int
double
getLLX()
double
getLLY()
int
int
getTile(int tileX, int tileY)
Returns tile (tileX, tileY) as a Raster.int
int
int
getWidth()
int
tileXToX(int tile)
int
tileYToY(int tile)
int
XToTileX(int x)
int
YToTileY(int y)
-
Field Details
-
INT
public static final int INT- See Also:
- Constant Field Values
-
FLOAT
public static final int FLOAT- See Also:
- Constant Field Values
-
DOUBLE
public static final int DOUBLE- See Also:
- Constant Field Values
-
NODATA
public static final int NODATA- See Also:
- Constant Field Values
-
NODATA_FLOAT
public static final float NODATA_FLOAT- See Also:
- Constant Field Values
-
-
Constructor Details
-
GridImage
- Throws:
IOException
-
GridImage
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
-
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
-
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
-
getTile
Returns tile (tileX, tileY) as a Raster.
-