libosmscout
0.1
|
#include <CoverageIndex.h>
Public Member Functions | |
void | Close () |
CoverageIndex ()=default | |
Pixel | GetTile (const GeoCoord &coord) const |
bool | IsCovered (const GeoCoord &coord) const |
bool | IsCovered (const Pixel &tile) const |
bool | IsOpen () const |
bool | Open (const std::string &path) |
Static Public Attributes | |
static const char *const | COVERAGE_IDX ="coverage.idx" |
CoverageIndex allows you to check for tiles that hold map data (for this db). It allows to identify db regions of different databases that overlap.
|
default |
void osmscout::CoverageIndex::Close | ( | ) |
References osmscout::GeoCoord::GetLat(), and osmscout::GeoCoord::GetLon().
Referenced by IsCovered().
bool osmscout::CoverageIndex::IsCovered | ( | const GeoCoord & | coord | ) | const |
References GetTile(), and IsCovered().
bool osmscout::CoverageIndex::IsCovered | ( | const Pixel & | tile | ) | const |
References osmscout::Pixel::x, and osmscout::Pixel::y.
Referenced by IsCovered().
|
inline |
References osmscout::FileScanner::IsOpen().
bool osmscout::CoverageIndex::Open | ( | const std::string & | path | ) |
References osmscout::AppendFileToDir(), COVERAGE_IDX, osmscout::Log::Error(), osmscout::FileScanner::FastRandom, osmscout::IOException::GetDescription(), osmscout::FileScanner::HasError(), osmscout::log, osmscout::FileScanner::Open(), osmscout::FileScanner::ReadUInt32(), osmscout::FileScanner::ReadUInt8(), osmscout::Pixel::x, and osmscout::Pixel::y.
|
static |
Referenced by Open().