Package hec.map.dem
Class DemMap
java.lang.Object
hec.map.MapObject
hec.map.dem.DemMap
- All Implemented Interfaces:
ElevationMap
,GridMap
,MapObjectInterface
,Serializable
public class DemMap
extends MapObject
implements Serializable, MapObjectInterface, ElevationMap, GridMap
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected WorldPt
protected WorldPt
protected WorldPt
protected WorldPt
protected int
protected int
protected double
protected double
protected int
protected int
protected double
protected double
protected double
protected List[]
Holds all of the Elevation Profiles.protected int
Fields inherited from class hec.map.MapObject
_debug, _extent, _fileOpener, _loaded, _mapId, mCoordinateReferencySystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
int
float[]
getElevation
(double[] northing, double[] easting) Retruns an array of elevations for an array of northin/easting points.double
getElevation
(int pSet, int layer, WorldPt pt) float
getElevation
(WorldPt pt) Returns the elevation at the given World point.getEnumerator
(int pSet, int layer) double
double
double
Returns the value that represents an UNDEFINED elevation in the map.int
int
List[]
double
double
double
int
void
load()
Method to tell the Map Object to load its data into memoryprotected void
boolean
void
unload()
Method to tell the Map Object to unload, because the map is doneMethods inherited from class hec.map.MapObject
equals, getCoordinateInfo, getCoordinateReferenceSystem, getExtent, getFilenames, getFileOpener, getMapIdentifier, getName, mapIdentifierEquals, newFile, newThenOpenFile, openFile, readProjection, setExtent, setFileOpener, setMapIdentifier, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface hec.map.ElevationMap
getName
Methods inherited from interface hec.map.MapObjectInterface
getCoordinateReferenceSystem, getExtent, getMapIdentifier, setExtent, setMapIdentifier
-
Field Details
-
_profiles
Holds all of the Elevation Profiles. -
_coordSys
protected int _coordSys -
_coordUnits
protected int _coordUnits -
_unitSys
protected int _unitSys -
_boundSW
-
_boundNW
-
_boundNE
-
_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
-
DemMap
-
DemMap
public DemMap()
-
-
Method Details
-
load
Description copied from interface:MapObjectInterface
Method to tell the Map Object to load its data into memory- Specified by:
load
in interfaceMapObjectInterface
- Specified by:
load
in classMapObject
- 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 interfaceMapObjectInterface
- Specified by:
unload
in classMapObject
-
getGridCellSize
- Specified by:
getGridCellSize
in interfaceGridMap
-
loadAscii
-
supportsNoDataValue
public boolean supportsNoDataValue()- Specified by:
supportsNoDataValue
in interfaceGridMap
-
getNoDataValue
public double getNoDataValue()Description copied from interface:ElevationMap
Returns the value that represents an UNDEFINED elevation in the map.- Specified by:
getNoDataValue
in interfaceElevationMap
- Specified by:
getNoDataValue
in interfaceGridMap
-
getProfiles
-
getCoordinateSystem
public int getCoordinateSystem() -
getCoordinateSystemUnits
public int getCoordinateSystemUnits() -
getUnitSystem
public int getUnitSystem() -
getBoundSW
-
getBoundNW
-
getBoundNE
-
getBoundSE
-
getMinimumElevation
public double getMinimumElevation()- Specified by:
getMinimumElevation
in interfaceElevationMap
-
getMaximumElevation
public double getMaximumElevation()- Specified by:
getMaximumElevation
in interfaceElevationMap
-
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
-
getElevation
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 interfaceElevationMap
-
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 interfaceElevationMap
- Returns:
- array of elevation points. The elevation value elevation[n] was derived using the point (easting[n],northing[n]).
-
getElevation
-