Package hec.map.tms

Class TmsMap

All Implemented Interfaces:
ElevationMap, GridMap, MapObjectInterface, Serializable

public class TmsMap extends MapObject implements GridMap
See Also:
  • Constructor Details

    • TmsMap

      public TmsMap()
    • TmsMap

      public TmsMap(String filePath)
    • TmsMap

      public TmsMap(MapIdentifier mapId)
  • Method Details

    • load

      public void load() throws IOException
      Description copied from interface: MapObjectInterface
      Method to tell the Map Object to load its data into memory
      Specified by:
      load in interface MapObjectInterface
      Specified by:
      load in class MapObject
      Throws:
      IOException - Description of Exception
    • unload

      public void unload()
      Description copied from interface: MapObjectInterface
      Method to tell the Map Object to unload, because the map is done
      Specified by:
      unload in interface MapObjectInterface
      Specified by:
      unload in class MapObject
    • getTilesFor

      public List<Tile> getTilesFor(MapScale scale)
    • getNumberOfLevels

      public int getNumberOfLevels()
    • getElevation

      public float getElevation(WorldPt pt)
      Description copied from interface: ElevationMap
      Returns the elevation at the given World point. If there is no elvation defined, the the "No Data Value" is returned.
      Specified by:
      getElevation in interface ElevationMap
    • getElevation

      public float[] getElevation(double[] northing, double[] easting)
      Description copied from interface: ElevationMap
      Retruns an array of elevations for an array of northin/easting points. Northing/Easting array values are paired northing[0],easting[0], etc to make one point. Throws an invalid value exception if the northing/easting arrays are not the same size.
      Specified by:
      getElevation in interface ElevationMap
      Returns:
      array of elevation points. The elevation value elevation[n] was derived using the point (easting[n],northing[n]).
    • getMaximumElevation

      public double getMaximumElevation()
      Specified by:
      getMaximumElevation in interface ElevationMap
    • getMinimumElevation

      public double getMinimumElevation()
      Specified by:
      getMinimumElevation in interface ElevationMap
    • supportsNoDataValue

      public boolean supportsNoDataValue()
      Specified by:
      supportsNoDataValue in interface GridMap
    • getNoDataValue

      public double getNoDataValue()
      Description copied from interface: ElevationMap
      Returns the value that represents an UNDEFINED elevation in the map.
      Specified by:
      getNoDataValue in interface ElevationMap
      Specified by:
      getNoDataValue in interface GridMap
    • getGridCellSize

      public WorldRect getGridCellSize()
      Specified by:
      getGridCellSize in interface GridMap
    • getAreaWidth

      public int getAreaWidth()
      Returns:
    • getAreaHeight

      public int getAreaHeight()
      Returns:
    • getImage

      public TmsImage getImage(MapScale scale, TmsGlyphDataRecord gdr)
    • getCurrentLevelExtent

      public WorldRect getCurrentLevelExtent()
      Returns:
    • clearImage

      public void clearImage()