1 #ifndef LIBOSMSCOUT_AREAYINDEX_H 2 #define LIBOSMSCOUT_AREAYINDEX_H 24 #include <unordered_set> 57 FileOffset GetCellOffset(
size_t x,
size_t y)
const;
69 void GetOffsets(
const TypeData& typeData,
70 const GeoBox& boundingBox,
71 std::unordered_set<FileOffset>& offsets)
const;
73 AreaIndex(
const std::string &indexFileName);
91 const std::string& path,
92 bool memoryMappedData);
96 return scanner.IsOpen();
101 return fullIndexFileName;
104 bool GetOffsets(
const GeoBox& boundingBox,
105 const TypeInfoSet& types,
106 std::vector<FileOffset>& offsets,
107 TypeInfoSet& loadedTypes)
const;
111 #endif //LIBOSMSCOUT_AREAYINDEX_H std::string fullIndexFileName
Full path and name of the data file.
Definition: AreaIndex.h:61
uint8_t dataOffsetBytes
Definition: AreaIndex.h:47
std::vector< TypeData > typeData
Definition: AreaIndex.h:64
bool IsOpen() const
Definition: AreaIndex.h:94
FileScanner scanner
Scanner instance for reading this file.
Definition: AreaIndex.h:62
std::string indexFileName
Definition: AreaIndex.h:60
#define OSMSCOUT_API
Definition: CoreImportExport.h:45
std::mutex lookupMutex
Definition: AreaIndex.h:66
TileIdBox tileBox
Definition: AreaIndex.h:50
std::shared_ptr< TypeInfo > TypeInfoRef
Definition: TypeConfig.h:58
uint64_t FileOffset
Definition: OSMScoutTypes.h:47
TypeInfoRef type
Definition: AreaIndex.h:44
GeoBox boundingBox
Definition: AreaIndex.h:52
std::shared_ptr< TypeConfig > TypeConfigRef
Definition: TypeConfig.h:1227
MagnificationLevel indexLevel
Definition: AreaIndex.h:45
std::string GetFilename() const
Definition: AreaIndex.h:99
Definition: AreaIndex.h:39
FileOffset bitmapOffset
Definition: AreaIndex.h:48
Definition: AreaIndex.h:42