Class SimpleProvider

Inheritance Relationships

Base Type

Derived Type

Class Documentation

class SimpleProvider : public navtk::geospatial::SpatialMapDataProvider

Container that aggregates data from one or more SpatialMapDataSources and supplies a unified lookup_datum function for reading that data.

Subclassed by navtk::geospatial::SimpleElevationProvider

Public Functions

virtual std::pair<bool, double> lookup_datum(double latitude, double longitude) const override

Iterates over the available SpatialMapDataSources and queries them for an value at the given latitude and longitude.

If a valid value is found in the SpatialMapDataSource databases, it will be returned. Otherwise sets the validity flag to false.

Parameters
  • latitude – The latitude value in radians.

  • longitude – The longitude value in radians.

Returns

A pair showing whether a value was found (.first) and if true, the value.

SpatialMapDataProvider(not_null<std::shared_ptr<SpatialMapDataSource>> src)

Constructor for a single SpatialMapDataSource

Parameters

src – the source

SpatialMapDataProvider(std::vector<not_null<std::shared_ptr<SpatialMapDataSource>>> srcs = {})

Constructor for a vector of zero or more SpatialMapDataSources.

Parameters

srcs – The vector of sources.