libosmscout
0.1
|
#include <AreaNodeIndex.h>
Public Member Functions | |
AreaNodeIndex ()=default | |
void | Close () |
std::string | GetFilename () const |
bool | GetOffsets (const GeoBox &boundingBox, const TypeInfoSet &requestedTypes, std::vector< FileOffset > &offsets, TypeInfoSet &loadedTypes) const |
bool | IsOpen () const |
bool | Open (const std::string &path, bool memoryMappedData) |
Static Public Attributes | |
static const char *const | AREA_NODE_IDX ="areanode.idx" |
AreaWayIndex allows you to find ways and way relations in a given area.
Ways can be limited by type and result count.
|
default |
void osmscout::AreaNodeIndex::Close | ( | ) |
|
inline |
bool osmscout::AreaNodeIndex::GetOffsets | ( | const GeoBox & | boundingBox, |
const TypeInfoSet & | requestedTypes, | ||
std::vector< FileOffset > & | offsets, | ||
TypeInfoSet & | loadedTypes | ||
) | const |
References osmscout::TypeInfoSet::Clear(), osmscout::Log::Error(), osmscout::IOException::GetDescription(), osmscout::GeoBox::GetDisplayText(), osmscout::StopClock::GetMilliseconds(), osmscout::GeoBox::Intersects(), osmscout::log, osmscout::StopClock::ResultString(), osmscout::TypeInfoSet::Set(), osmscout::StopClock::Stop(), and osmscout::Log::Warn().
|
inline |
bool osmscout::AreaNodeIndex::Open | ( | const std::string & | path, |
bool | memoryMappedData | ||
) |
References osmscout::AppendFileToDir(), AREA_NODE_IDX, osmscout::Log::Error(), osmscout::FileScanner::FastRandom, osmscout::IOException::GetDescription(), osmscout::FileScanner::HasError(), osmscout::log, osmscout::FileScanner::Open(), osmscout::FileScanner::ReadBool(), osmscout::FileScanner::ReadCoord(), osmscout::FileScanner::ReadFileOffset(), osmscout::FileScanner::ReadUInt16(), osmscout::FileScanner::ReadUInt16Number(), osmscout::FileScanner::ReadUInt32(), and osmscout::FileScanner::ReadUInt8().
|
static |
Referenced by Open().