gov.nasa.worldwind.util
Class ElevationsUtil
java.lang.Object
gov.nasa.worldwind.util.ElevationsUtil
public class ElevationsUtil
- extends Object
|
Method Summary |
static boolean |
isKnownMissingSignal(Double value)
Checks if the value is one of the well-known "nodata" value used in digital elevation model files
to specify missing areas / voids. |
static void |
rectify(ByteBufferRaster raster)
Rectify elevation raster. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DEM_DEFAULT_MISSING_SIGNAL
public static final double DEM_DEFAULT_MISSING_SIGNAL
- See Also:
- Constant Field Values
DTED_DEFAULT_MISSING_SIGNAL
public static final double DTED_DEFAULT_MISSING_SIGNAL
- See Also:
- Constant Field Values
knownMissingSignals
protected static final double[] knownMissingSignals
SRTM_DEFAULT_MISSING_SIGNAL
public static final double SRTM_DEFAULT_MISSING_SIGNAL
- See Also:
- Constant Field Values
ElevationsUtil
public ElevationsUtil()
isKnownMissingSignal
public static boolean isKnownMissingSignal(Double value)
- Checks if the
value is one of the well-known "nodata" value used in digital elevation model files
to specify missing areas / voids.
- Parameters:
value - a value to check
- Returns:
TRUE, if the value is one of the well known "nodata" values
rectify
public static void rectify(ByteBufferRaster raster)
throws IllegalArgumentException
- Rectify elevation raster. For best performance each elevation raster must have correct parameters and values set.
The
rectify() operation validates that correct Elevation min and max values are set or calculated.
All values that beyond min/max and voids, must be marked with "Missing Signal" (aka "nodata" value).
- Parameters:
raster - A DataRaster to rectify
- Throws:
IllegalArgumentException - if raster is null