Package hec.map.dem

Class DemMap

All Implemented Interfaces:
ElevationMap, GridMap, MapObjectInterface, Serializable

public class DemMap extends MapObject implements Serializable, MapObjectInterface, ElevationMap, GridMap
See Also:
  • Field Details

    • _profiles

      protected List[] _profiles
      Holds all of the Elevation Profiles.
    • _coordSys

      protected int _coordSys
    • _coordUnits

      protected int _coordUnits
    • _unitSys

      protected int _unitSys
    • _boundSW

      protected WorldPt _boundSW
    • _boundNW

      protected WorldPt _boundNW
    • _boundNE

      protected WorldPt _boundNE
    • _boundSE

      protected WorldPt _boundSE
    • _demMinEle

      protected double _demMinEle
    • _demMaxEle

      protected double _demMaxEle
    • _demResX

      protected double _demResX
    • _demResY

      protected double _demResY
    • _demResZ

      protected double _demResZ
    • _demProRow

      protected int _demProRow
    • _demProCol

      protected int _demProCol
  • Constructor Details

    • DemMap

      public DemMap(String fileName)
    • DemMap

      public DemMap(MapIdentifier id)
    • DemMap

      public DemMap()
  • 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
    • getGridCellSize

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

      protected void loadAscii(HecFile file)
    • 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
    • getProfiles

      public List[] getProfiles()
    • getCoordinateSystem

      public int getCoordinateSystem()
    • getCoordinateSystemUnits

      public int getCoordinateSystemUnits()
    • getUnitSystem

      public int getUnitSystem()
    • getBoundSW

      public WorldPt getBoundSW()
    • getBoundNW

      public WorldPt getBoundNW()
    • getBoundNE

      public WorldPt getBoundNE()
    • getBoundSE

      public WorldPt getBoundSE()
    • getMinimumElevation

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

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

      public double getResolutionX()
    • getResolutionY

      public double getResolutionY()
    • getResolutionZ

      public double getResolutionZ()
    • getProfileRowCount

      public int getProfileRowCount()
    • getProfileColumnCount

      public int getProfileColumnCount()
    • getAreaWidth

      public int getAreaWidth()
    • getAreaHeight

      public int getAreaHeight()
    • getEnumerator

      public DemEnumerator getEnumerator(int pSet, int layer)
    • 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]).
    • getElevation

      public double getElevation(int pSet, int layer, WorldPt pt)