Package hec.map.vrt

Class VrtMapObject

java.lang.Object
hec.map.MapObject
hec.map.vrt.VrtMapObject
All Implemented Interfaces:
ElevationMap, MapObjectInterface, Serializable

public class VrtMapObject extends MapObject implements ElevationMap
See Also:
  • Constructor Details

    • VrtMapObject

      public VrtMapObject()
    • VrtMapObject

      public VrtMapObject(String vrtMapPath)
    • VrtMapObject

      public VrtMapObject(MapIdentifier mapId)
  • Method Details

    • getFilenames

      public List getFilenames()
      Description copied from class: MapObject
      return the list of File names that the MapObject has. The first filename in the list must be the main file (ie for shape files it should be the .shp file, usually _mapId.getPath() ). Subclasses should override this method if they have more than 1 file.

      Overrides:
      getFilenames in class MapObject
      Returns:
      the list of Map File names
    • 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
    • getMapObjects

      public List<MapObject> getMapObjects()
    • getFileOpener

      public FileOpener getFileOpener()
      Overrides:
      getFileOpener in class MapObject
    • 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
    • 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
    • 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