Package hec.map.flo2d
Class Flo2dDepthMap
java.lang.Object
hec.map.MapObject
hec.map.flo2d.Flo2dDepthMap
- All Implemented Interfaces:
ElevationMap,Flo2dMap,GridMap,MapObjectInterface,Serializable
- See Also:
-
Field Summary
FieldsFields inherited from class hec.map.MapObject
_debug, _extent, _fileOpener, _loaded, _mapId, mCoordinateReferencySystem -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindCell(double e, double n) intgetCells()float[]getElevation(double[] northing, double[] easting) Retruns an array of elevations for an array of northin/easting points.floatgetElevation(WorldPt pt) Returns the elevation at the given World point.Gets the Extent attribute of the MapObjectInterface objectdoubledoubledoubleReturns the value that represents an UNDEFINED elevation in the map.voidload()Method to tell the Map Object to load its data into memorybooleanreadFile(MapIdentifier shpId) booleanvoidunload()Method to tell the Map Object to unload, because the map is doneMethods inherited from class hec.map.MapObject
equals, getCoordinateInfo, getCoordinateReferenceSystem, getFilenames, getFileOpener, getMapIdentifier, getName, mapIdentifierEquals, newFile, newThenOpenFile, openFile, readProjection, setExtent, setFileOpener, setMapIdentifier, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface hec.map.ElevationMap
getNameMethods inherited from interface hec.map.MapObjectInterface
getCoordinateReferenceSystem, getMapIdentifier, setExtent, setMapIdentifier
-
Field Details
-
_maxElev
protected double _maxElev -
_minElev
protected double _minElev
-
-
Constructor Details
-
Flo2dDepthMap
public Flo2dDepthMap() -
Flo2dDepthMap
-
Flo2dDepthMap
-
-
Method Details
-
getExtent
Description copied from interface:MapObjectInterfaceGets the Extent attribute of the MapObjectInterface object- Specified by:
getExtentin interfaceMapObjectInterface- Overrides:
getExtentin classMapObject- Returns:
- The Extent value
-
load
Description copied from interface:MapObjectInterfaceMethod to tell the Map Object to load its data into memory- Specified by:
loadin interfaceMapObjectInterface- Specified by:
loadin classMapObject- Throws:
IOException- Description of Exception
-
readFile
-
unload
public void unload()Description copied from interface:MapObjectInterfaceMethod to tell the Map Object to unload, because the map is done- Specified by:
unloadin interfaceMapObjectInterface- Specified by:
unloadin classMapObject
-
getGridCellSize
- Specified by:
getGridCellSizein interfaceGridMap
-
getNoDataValue
public double getNoDataValue()Description copied from interface:ElevationMapReturns the value that represents an UNDEFINED elevation in the map.- Specified by:
getNoDataValuein interfaceElevationMap- Specified by:
getNoDataValuein interfaceGridMap
-
supportsNoDataValue
public boolean supportsNoDataValue()- Specified by:
supportsNoDataValuein interfaceGridMap
-
getElevation
Description copied from interface:ElevationMapReturns the elevation at the given World point. If there is no elvation defined, the the "No Data Value" is returned.- Specified by:
getElevationin interfaceElevationMap
-
findCell
-
findCell
-
getElevation
public float[] getElevation(double[] northing, double[] easting) Description copied from interface:ElevationMapRetruns 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:
getElevationin interfaceElevationMap- 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:
getMaximumElevationin interfaceElevationMap
-
getMinimumElevation
public double getMinimumElevation()- Specified by:
getMinimumElevationin interfaceElevationMap
-
getCells
-
getCell
-