libosmscout  0.1
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules
osmscout::CoverageIndex Class Reference

#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"
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ CoverageIndex()

osmscout::CoverageIndex::CoverageIndex ( )
default

Member Function Documentation

◆ Close()

◆ GetTile()

Pixel osmscout::CoverageIndex::GetTile ( const GeoCoord coord) const

◆ IsCovered() [1/2]

bool osmscout::CoverageIndex::IsCovered ( const GeoCoord coord) const

References GetTile(), and IsCovered().

◆ IsCovered() [2/2]

bool osmscout::CoverageIndex::IsCovered ( const Pixel tile) const

References osmscout::Pixel::x, and osmscout::Pixel::y.

Referenced by IsCovered().

◆ IsOpen()

bool osmscout::CoverageIndex::IsOpen ( ) const
inline

◆ Open()

Member Data Documentation

◆ COVERAGE_IDX

const char *const osmscout::CoverageIndex::COVERAGE_IDX ="coverage.idx"
static

Referenced by Open().


The documentation for this class was generated from the following files: