Class TmsLevel

java.lang.Object
hec.map.tms.datasource.TmsLevel
All Implemented Interfaces:
ImageObserver

public class TmsLevel extends Object implements ImageObserver
This is one level in a TMS file. Each level is a specified resolution. Level 0 is the most detailed resolution.

  • Field Details

  • Constructor Details

  • Method Details

    • colToX

      protected double colToX(int col)
      Returns the left hand X coordinate of this column

      Parameters:
      col -
      Returns:
    • rowToY

      protected double rowToY(int row)
      REtruns the top hand Y coordinate of this column

      Parameters:
      row -
      Returns:
    • yToRow

      protected int yToRow(double y)
    • xToCol

      protected int xToCol(double x)
    • getImage

      public TmsImage getImage(WorldRect visibleRect, TmsGlyphDataRecord gdr)
    • createImage

      protected TmsImage createImage(WorldRect visibleRect, TmsGlyphDataRecord gdr)
      create the level image made up of the individual tile images that intersect the visible rectangle

      Parameters:
      visibleRect -
      gdr -
      Returns:
      Returns a TmsImage that contains the image and its bounding rectangle. Returns null if nothing can be drawn to that visible area.

    • getExtents

      public WorldRect getExtents()
    • getNumberRows

      public int getNumberRows()
    • getNumberColumns

      public int getNumberColumns()
    • getMinX

      public double getMinX()
    • getMaxX

      public double getMaxX()
    • getMinY

      public double getMinY()
    • getMaxY

      public double getMaxY()
    • getNoDataValue

      public float getNoDataValue()
    • getTile

      public Tile getTile(int row, int column)
      Returns the tile for a given row and column. There is no guarantee that a tile may exist at that row column. If no tile exists, then a null Tile is returned.

      Parameters:
      row -
      column -
      Returns:
    • getValue

      public float[] getValue(double[] easting, double[] northing)
    • close

      public void close()
    • imageUpdate

      public boolean imageUpdate(Image img, int infoflags, int x, int y, int width, int height)
      Specified by:
      imageUpdate in interface ImageObserver
    • clearImage

      public void clearImage()