Package hec.map.raster
Class RasterMap
java.lang.Object
hec.map.MapObject
hec.map.raster.RasterMap
- All Implemented Interfaces:
ElevationMap
,GridMap
,MapObjectInterface
,Serializable
public class RasterMap
extends MapObject
implements Serializable, MapObjectInterface, ElevationMap, GridMap
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final String
static final String[]
static final float
static final String
static final String
Fields inherited from class hec.map.MapObject
_debug, _extent, _fileOpener, _loaded, _mapId, mCoordinateReferencySystem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected SegmentData
int
float[]
getElevation
(double[] northing, double[] easting) Retruns an array of elevations for an array of northin/easting points.float
getElevation
(WorldPt pt) Returns the elevation at the given World point.long
double
float
double
float
double
Returns the value that represents an UNDEFINED elevation in the map.int
float
static RasterMap
importMap
(RasterImportProgressIndicator progress, FileOpener fileOpener, int typeOfData, AiDemBaseMap map) static RasterMap
importMap
(RasterImportProgressIndicator progress, Identifier smrmpId, String mapName, int dataType, String[] params, String[] units, AiDemBaseMap[] maps) void
load()
Split the load between binary and ASCIIprotected void
readHeader
(HecFile file) protected void
protected void
boolean
void
unload()
Method to tell the Map Object to unload, because the map is doneprotected void
writeHeader
(HecFile file) protected void
Methods 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
-
EXTENSION
- See Also:
-
BYTES_IN_STRING
public static final int BYTES_IN_STRING- See Also:
-
BYTES_IN_FLOAT
public static final int BYTES_IN_FLOAT- See Also:
-
VERSION_CONTINUOUS_ONLY
- See Also:
-
VERSION
- See Also:
-
RESAMPLE_TO_UNDEFINED_RATIO
public static final float RESAMPLE_TO_UNDEFINED_RATIO- See Also:
-
CONTINUOUS_DATA
public static final int CONTINUOUS_DATA- See Also:
-
CATEGORY_DATA
public static final int CATEGORY_DATA- See Also:
-
IMPORT_EXTENSIONS
-
-
Constructor Details
-
RasterMap
-
RasterMap
-
RasterMap
public RasterMap()
-
-
Method Details
-
getGridCellSize
- Specified by:
getGridCellSize
in interfaceGridMap
-
getBaseResolution
-
getResolution
-
getLowerLeft
-
getLowerRight
-
getUpperLeft
-
getUpperRight
-
getRowsInASegment
public int getRowsInASegment() -
getColumnsInASegment
public int getColumnsInASegment() -
getValue
-
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
-
getMaximumElevation
public double getMaximumElevation()- Specified by:
getMaximumElevation
in interfaceElevationMap
-
getMaxValue
public float getMaxValue() -
getMinimumElevation
public double getMinimumElevation()- Specified by:
getMinimumElevation
in interfaceElevationMap
-
getMinValue
public float getMinValue() -
getSegmentIterator
-
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
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
-
buildSegment
-
returnSegment
-
returnSegment
-
loadArea
-
getEndOfHeader
public long getEndOfHeader() -
getResolutions
-
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
-
load
Split the load between binary and ASCII- Specified by:
load
in interfaceMapObjectInterface
- Specified by:
load
in classMapObject
- Throws:
IOException
- Description of Exception
-
readHeader
- Throws:
IOException
-
writeHeader
- Throws:
IOException
-
writeHeader
- Throws:
IOException
-
importMap
public static RasterMap importMap(RasterImportProgressIndicator progress, FileOpener fileOpener, int typeOfData, AiDemBaseMap map) throws IOException - Throws:
IOException
-
importMap
public static RasterMap importMap(RasterImportProgressIndicator progress, Identifier smrmpId, String mapName, int dataType, String[] params, String[] units, AiDemBaseMap[] maps) throws IOException - Throws:
IOException
-
getLowerLeftCorner
- Returns:
-