Class GdalSource
Defined in File GdalSource.hpp
Inheritance Relationships
Base Type
public navtk::geospatial::ElevationSource(Class ElevationSource)
Class Documentation
This is an abstract class for reading data files that conform to MIL-PRF-89020B, using Geospatial Data Abstraction Library (GDAL).
All GDAL map data sources should extend from this class.
To use this package GDAL must be installed and built with navtk.
Public Types
Current GDAL implementations.
Values:
A TIFF file with georeferencing information embedded in it.
An NGA standard of terrain elevation data.
Public Functions
Constructor.
- Parameters
map_path – to directory containing one or more GDAL data files. All GDAL files in this directory must have the same file format and vertical reference frame.
type – the gdal format used by the dataset.
in_ref – the vertical reference frame stored in the input directory. Defaults to ASPN_MEASUREMENT_ALTITUDE_REFERENCE_HAE.
out_ref – the vertical reference frame for output elevations. Defaults to ASPN_MEASUREMENT_ALTITUDE_REFERENCE_HAE.
undulation_path – the path to the geoid undulation file for converting between HAE and MSL. The default path of this variable requires setting the NAVTK_DATA_DIR environment variable to the folder containing the undulation file, or setting the NAVTK_GEOID_UNDULATION_PATH environment variable to the path of the file itself.
num_tiles – the max number of tiles to store in memory.
Gets the elevation at a given latitude and longitude.
- Parameters
latitude_rad – latitude value in radians
longitude_rad – longitude value in radians
- Returns
A
pairshowing whether a valid elevation was found (.first) and iftrue, the elevation in meters above either geoid — aka mean sea level — or ellipsoid (.second).
- Parameters
new_ref – the output vertical reference frame to change to. If
new_refisASPN_MEASUREMENT_ALTITUDE_REFERENCE_AGL, then this function will do nothing.`