public class Dt2ElevationData
extends AbstractElevationData
Modifier and Type | Class and Description |
---|---|
static class |
Dt2ElevationData.DtedFormat |
Modifier and Type | Field and Description |
---|---|
static ElevationDataSpi |
SPI |
Modifier and Type | Method and Description |
---|---|
double |
getElevation(double lat,
double lng) |
void |
getElevation(java.util.Iterator<GeoPoint> points,
double[] elevations,
Hints hints) |
static double |
interpretSample(short s)
Interprets a raw 16-bit DTED sample into a float-point
elevation value.
|
public double getElevation(double lat, double lng)
public void getElevation(java.util.Iterator<GeoPoint> points, double[] elevations, Hints hints)
public static double interpretSample(short s)
The negative in DTED is NOT two's complement, it's signed-magnitude. Mask off the MSB and multiple by -1 to make it 2's complement.
s
- is the value.Double.NaN
in the event that the value is null or invalid per
MIL-PRF-89020B