Class BilTile

java.lang.Object
hec.map.tms.datasource.tile.bil.BilTile
All Implemented Interfaces:
Tile

public class BilTile extends Object implements 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
    Modifier and Type
    Class
    Description
    static interface 
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    BilTile(String path, FileSystem dataProvider)
    Constructs a tile around a zip entry that represents the "data" of the tile
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes this tile and unloads any resources
    void
     
    Returns a bounding box that represents the edges of the tile.
    Returns an image that represents this tile.
    float
    Returns the maximum value that occurs within the tile.
    float
    Returns the minimum value that occurs within the tile.
    float
    Returns the float value used by this Tile to mark values that are undefined.
    double
    Method to return the upper left x corner of the tile.
    double
    Method 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.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • BilTile

      public BilTile(String path, FileSystem dataProvider)
      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)

      Specified by:
      getValues in interface Tile
      Parameters:
      x -
      y -
      Returns:
    • getNoDataValue

      public float getNoDataValue()
      Returns the float value used by this Tile to mark values that are undefined.

      Specified by:
      getNoDataValue in interface Tile
      Returns:
    • close

      public void close()
      Description copied from interface: Tile
      Closes this tile and unloads any resources
      Specified by:
      close in interface Tile
    • getValues

      public float[] getValues()
      Description copied from interface: Tile
      Returns the float array the represents the data. The data is returned in Row order i.e. ,,.....
      Specified by:
      getValues in interface Tile
      Returns:
    • getImage

      public Image getImage(TmsGlyphDataRecord gdr)
      Description copied from interface: Tile
      Returns an image that represents this tile. The return value can be null if this tile does not have an image.
      Specified by:
      getImage in interface Tile
      Returns:
    • getMinValue

      public float getMinValue()
      Description copied from interface: Tile
      Returns the minimum value that occurs within the tile.
      Specified by:
      getMinValue in interface Tile
    • getMaxValue

      public float getMaxValue()
      Description copied from interface: Tile
      Returns the maximum value that occurs within the tile.
      Specified by:
      getMaxValue in interface Tile
    • getUpperLeftX

      public double getUpperLeftX()
      Description copied from interface: Tile
      Method 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:
      getUpperLeftX in interface Tile
      Returns:
    • getUpperLeftY

      public double getUpperLeftY()
      Description copied from interface: Tile
      Method 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:
      getUpperLeftY in interface Tile
      Returns:
    • getExtents

      public WorldRect getExtents()
      Description copied from interface: Tile
      Returns a bounding box that represents the edges of the tile.
      Specified by:
      getExtents in interface Tile
      Returns: