Package hec.map.tms.datasource.tile.bil
Class BilTile
java.lang.Object
hec.map.tms.datasource.tile.bil.BilTile
- All Implemented Interfaces:
Tile
This class represents one tile in a TMS. A TMS file can be made up of many levels and each level has many tiles. A
tile is one unit of data in a grid. Multiple tiles "patch" together to make a quilt
This tile reads data in BIL format From ESRI - http://webhelp.esri.com/arcgisdesktop/9.2/index.cfm?TopicName=BIL,_BIP,_and_BSQ_raster_files
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionBilTile(String path, FileSystem dataProvider) Constructs a tile around a zip entry that represents the "data" of the tile -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this tile and unloads any resourcesvoidReturns a bounding box that represents the edges of the tile.Returns an image that represents this tile.floatReturns the maximum value that occurs within the tile.floatReturns the minimum value that occurs within the tile.floatReturns the float value used by this Tile to mark values that are undefined.doubleMethod to return the upper left x corner of the tile.doubleMethod to return the upper left y corner of the tile.float[]Returns the float array the represents the data.float[]getValues(double[] x, double[] y, int numPoints) returns a double array of values that are located at points x,y.
-
Constructor Details
-
BilTile
Constructs a tile around a zip entry that represents the "data" of the tile
-
-
Method Details
-
closeDataStream
public void closeDataStream() -
getValues
public float[] getValues(double[] x, double[] y, int numPoints) returns a double array of values that are located at points x,y. Values in the array are in the same order as the input x,y arrays. the x and y values are assumed to be in the same coordinate space as the data. I.E. the x/y values are offsets from the UL and UR and which is assumed to be (0,0) -
getNoDataValue
public float getNoDataValue()Returns the float value used by this Tile to mark values that are undefined.- Specified by:
getNoDataValuein interfaceTile- Returns:
-
close
public void close()Description copied from interface:TileCloses this tile and unloads any resources -
getValues
public float[] getValues()Description copied from interface:TileReturns the float array the represents the data. The data is returned in Row order i.e., ,..... -
getImage
Description copied from interface:TileReturns an image that represents this tile. The return value can be null if this tile does not have an image. -
getMinValue
public float getMinValue()Description copied from interface:TileReturns the minimum value that occurs within the tile.- Specified by:
getMinValuein interfaceTile
-
getMaxValue
public float getMaxValue()Description copied from interface:TileReturns the maximum value that occurs within the tile.- Specified by:
getMaxValuein interfaceTile
-
getUpperLeftX
public double getUpperLeftX()Description copied from interface:TileMethod to return the upper left x corner of the tile. Some formats specify the center of the upper left grid cell. This is not the case.- Specified by:
getUpperLeftXin interfaceTile- Returns:
-
getUpperLeftY
public double getUpperLeftY()Description copied from interface:TileMethod to return the upper left y corner of the tile. Some formats specify the center of the upper left grid cell. This is not the case.- Specified by:
getUpperLeftYin interfaceTile- Returns:
-
getExtents
Description copied from interface:TileReturns a bounding box that represents the edges of the tile.- Specified by:
getExtentsin interfaceTile- Returns:
-