libosmscout 1.1.1
Loading...
Searching...
No Matches
osmscout::AreaAreaIndex Class Reference

#include <libosmscout/include/osmscout/db/AreaAreaIndex.h>

Public Member Functions

 AreaAreaIndex (size_t cacheSize)
virtual ~AreaAreaIndex ()
void Close ()
bool Open (const std::string &path, bool memoryMappedData)
bool IsOpen () const
std::string GetFilename () const
bool GetAreasInArea (const TypeConfig &typeConfig, const GeoBox &boundingBox, size_t maxLevel, const TypeInfoSet &types, std::vector< DataBlockSpan > &spans, TypeInfoSet &loadedTypes) const
void DumpStatistics ()
void FlushCache ()

Static Public Attributes

static const char *const AREA_AREA_IDX

Detailed Description

AreaAreaIndex allows you to find areas in a given region.

For areas result can be limited by the maximum level (which in turn defines the minimum size of the resulting areas since an area in a given level must fit into the cell size (but can cross cell borders)) and the maximum number of areas found.

Internally the index is implemented as quadtree. As a result each index entry has 4 children (besides entries in the lowest level).

Constructor & Destructor Documentation

◆ AreaAreaIndex()

osmscout::AreaAreaIndex::AreaAreaIndex ( size_t cacheSize)
explicit

◆ ~AreaAreaIndex()

virtual osmscout::AreaAreaIndex::~AreaAreaIndex ( )
virtual

Member Function Documentation

◆ Close()

void osmscout::AreaAreaIndex::Close ( )

◆ DumpStatistics()

void osmscout::AreaAreaIndex::DumpStatistics ( )

◆ FlushCache()

void osmscout::AreaAreaIndex::FlushCache ( )

◆ GetAreasInArea()

bool osmscout::AreaAreaIndex::GetAreasInArea ( const TypeConfig & typeConfig,
const GeoBox & boundingBox,
size_t maxLevel,
const TypeInfoSet & types,
std::vector< DataBlockSpan > & spans,
TypeInfoSet & loadedTypes ) const

◆ GetFilename()

std::string osmscout::AreaAreaIndex::GetFilename ( ) const
inline

◆ IsOpen()

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

◆ Open()

bool osmscout::AreaAreaIndex::Open ( const std::string & path,
bool memoryMappedData )

Member Data Documentation

◆ AREA_AREA_IDX

const char* const osmscout::AreaAreaIndex::AREA_AREA_IDX
static

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