Class SpatialMapDataSource
Defined in File SpatialMapDataSource.hpp
Inheritance Relationships
Derived Types
public navtk::geospatial::ElevationSource(Class ElevationSource)public navtk::geospatial::GeoidUndulationSource(Class GeoidUndulationSource)
Class Documentation
This class is the interface for all sources of spatial map data.
Derive from this class if you’re writing a class that reads or calculates spatial map data. Most common implementations will likely be some form of elevation (but are not limited to elevations — e.g. Jamming Map). Each instance of this class should correspond to a single path or no path (e.g. constant undulation model).
Subclassed by navtk::geospatial::ElevationSource, navtk::geospatial::GeoidUndulationSource
Public Functions
Return a value from the map for a given location.
If no value is available, return a pair indicating the return value is invalid (i.e. {false, 0.0}).
- Parameters
latitude – Latitude (radians) of the location being queried for a data value.
longitude – Longitude (radians) of the location being queried for a data value.
- Returns
A
pairshowing whether a value was found (.first) and iftrue, the value in the type associated with the derived class (.second).