1 #ifndef OSMSCOUT_AREANODEINDEX_H 2 #define OSMSCOUT_AREANODEINDEX_H 60 uint8_t dataOffsetBytes;
61 MagnificationLevel magnification;
69 uint16_t entryCount=0;
71 std::map<TileId,ListTile> listTiles;
72 std::map<TileId,BitmapTile> bitmapTiles;
76 mutable FileScanner scanner;
79 MagnificationLevel gridMag;
80 std::vector<TypeData> nodeTypeData;
82 mutable std::mutex lookupMutex;
85 bool GetOffsetsList(
const TypeData& typeData,
86 const GeoBox& boundingBox,
87 std::vector<FileOffset>& offsets)
const;
89 bool GetOffsetsTileList(
const TypeData& typeData,
90 const GeoBox& boundingBox,
91 std::vector<FileOffset>& offsets)
const;
93 bool GetOffsetsBitmap(
const TypeData& typeData,
94 const GeoBox& boundingBox,
95 std::vector<FileOffset>& offsets)
const;
98 AreaNodeIndex() =
default;
101 bool Open(
const std::string& path,
102 bool memoryMappedData);
106 return scanner.IsOpen();
111 return scanner.GetFilename();
114 bool GetOffsets(
const GeoBox& boundingBox,
115 const TypeInfoSet& requestedTypes,
116 std::vector<FileOffset>& offsets,
117 TypeInfoSet& loadedTypes)
const;
Definition: AreaNodeIndex.h:44
std::string GetFilename() const
Definition: AreaNodeIndex.h:109
#define OSMSCOUT_API
Definition: CoreImportExport.h:45
static const char *const AREA_NODE_IDX
Definition: AreaNodeIndex.h:47
uint64_t FileOffset
Definition: OSMScoutTypes.h:47
std::shared_ptr< AreaNodeIndex > AreaNodeIndexRef
Definition: AreaNodeIndex.h:120
bool IsOpen() const
Definition: AreaNodeIndex.h:104