Interface Tile

All Known Implementing Classes:
BilTile, FltTile, TmsLevel.EmptyTile

public interface Tile
This is the interface for all Tiles used in TMS. Tiles must conform to this format in order to be drawn correctly or have data correctly queried out of it. Pay attention to the methods that return the Upper Left corner of the tile.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Closes this tile and unloads any resources
    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 value in this tile that represents NO data.
    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[] xvalues, double[] yvalues, int numPoints)
    Returns the values at each x/y pair in the data sources.
  • Method Details

    • getValues

      float[] getValues(double[] xvalues, double[] yvalues, int numPoints)
      Returns the values at each x/y pair in the data sources. Only 0 to numPoints are searched.
      Parameters:
      xvalues -
      yvalues -
      numPoints -
      Returns:
    • getNoDataValue

      float getNoDataValue()
      Returns the value in this tile that represents NO data.
      Returns:
    • getValues

      float[] getValues()
      Returns the float array the represents the data. The data is returned in Row order i.e. ,,.....
      Returns:
    • getImage

      Image getImage(TmsGlyphDataRecord gdr)
      Returns an image that represents this tile. The return value can be null if this tile does not have an image.
      Parameters:
      gdr -
      Returns:
    • getMinValue

      float getMinValue()
      Returns the minimum value that occurs within the tile.
    • getMaxValue

      float getMaxValue()
      Returns the maximum value that occurs within the tile.
    • getUpperLeftX

      double getUpperLeftX()
      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.
      Returns:
    • getUpperLeftY

      double getUpperLeftY()
      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.
      Returns:
    • getExtents

      WorldRect getExtents()
      Returns a bounding box that represents the edges of the tile.
      Returns:
    • close

      void close()
      Closes this tile and unloads any resources