|
libosmscout 1.1.1
|
#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 |
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).
|
explicit |
|
virtual |
| void osmscout::AreaAreaIndex::Close | ( | ) |
| void osmscout::AreaAreaIndex::DumpStatistics | ( | ) |
| void osmscout::AreaAreaIndex::FlushCache | ( | ) |
| bool osmscout::AreaAreaIndex::GetAreasInArea | ( | const TypeConfig & | typeConfig, |
| const GeoBox & | boundingBox, | ||
| size_t | maxLevel, | ||
| const TypeInfoSet & | types, | ||
| std::vector< DataBlockSpan > & | spans, | ||
| TypeInfoSet & | loadedTypes ) const |
|
inline |
|
inline |
| bool osmscout::AreaAreaIndex::Open | ( | const std::string & | path, |
| bool | memoryMappedData ) |
|
static |