Class SpatialMapDataProvider
Defined in File SpatialMapDataProvider.hpp
Inheritance Relationships
Derived Type
public navtk::geospatial::SimpleProvider(Class SimpleProvider)
Class Documentation
Container that aggregates spatial map data from one or more
SpatialMapDataSourceand supplies a unifiedlookup_datumfunction for reading that data.In general, consumers of spatial map data should be written in terms of this class. Classes that supply spatial map data implement
SpatialMapDataSource.Possible implementations of this class:
Prioritization of various sources (returning higher precision sources when available)
Stitching sources together
Interpolation between sources
Extrapolation
Averaging overlapping sources
Conditional selection (i.e. a coastal region with underwater and above water)
Spot filling (use X if available, or Y if not)
Subclassed by navtk::geospatial::SimpleProvider
Public Functions
Destructor.
Constructor for a single
SpatialMapDataSource- Parameters
src – the source
Constructor for a vector of zero or more
SpatialMapDataSources.- Parameters
srcs – The vector of sources.
Adds a
SpatialMapDataSourceto the provider.- Parameters
src – the source.
Returns a pair containing a validity flag and data at the given latitude and longitude.
If the flag is
false, the data is invalid and should not be used.- Parameters
latitude – The latitude value in radians.
longitude – The longitude value in radians.
- Returns
A
pairshowing whether a datum was found (.first) and iftrue, the datum value.
Protected Attributes
Store the SpatialMapDataSources used in the background by the provider.