AltitudeConverterCompat
public final class AltitudeConverterCompat
Converts altitudes reported above the World Geodetic System 1984 (WGS84) reference ellipsoid into ones above Mean Sea Level.
Reference:
Brian Julian and Michael Angermann. "Resource efficient and accurate altitude conversion to Mean Sea Level." 2023 IEEE/ION Position, Location and Navigation Symposium (PLANS).
Summary
Public methods |
|
|---|---|
static void |
@WorkerThreadAdds a Mean Sea Level altitude to the |
Public methods
addMslAltitudeToLocation
@WorkerThread
public static void addMslAltitudeToLocation(
@NonNull Context context,
@NonNull Location location
)
Adds a Mean Sea Level altitude to the location. In addition, adds a Mean Sea Level altitude accuracy if the location has a finite and non-negative vertical accuracy; otherwise, does not add a corresponding accuracy.
Must be called off the main thread as data may be loaded from raw assets.
| Throws | |
|---|---|
java.io.IOException |
if an I/O error occurs when loading data from raw assets. |
java.lang.IllegalArgumentException |
if the |