1#ifndef OSMSCOUT_OPTIMIZEWAYSLOWZOOM_H
2#define OSMSCOUT_OPTIMIZEWAYSLOWZOOM_H
56 uint8_t dataOffsetBytes;
72 std::string datafilename;
73 mutable FileScanner scanner;
76 std::map<TypeInfoRef,std::list<TypeData> > wayTypesData;
78 mutable std::mutex lookupMutex;
81 void ReadTypeData(FileScanner& scanner,
84 void GetOffsets(
const TypeData& typeData,
85 const GeoBox& boundingBox,
86 std::set<FileOffset>& offsets)
const;
88 void LoadData(std::set<FileOffset>& offsets,
89 std::vector<WayRef>& ways)
const;
96 const std::string& path,
97 bool memoryMappedData);
103 const TypeInfoSet& wayTypes,
104 TypeInfoSet& availableWayTypes)
const;
106 const Magnification& magnification,
107 const TypeInfoSet& wayTypes,
108 std::vector<WayRef>& ways,
109 TypeInfoSet& loadedWayTypes)
const;
#define OSMSCOUT_API
Definition CoreImportExport.h:45
bool GetWays(const GeoBox &boundingBox, const Magnification &magnification, const TypeInfoSet &wayTypes, std::vector< WayRef > &ways, TypeInfoSet &loadedWayTypes) const
bool Open(const TypeConfigRef &typeConfig, const std::string &path, bool memoryMappedData)
static const char *const FILE_WAYSOPT_DAT
Definition OptimizeWaysLowZoom.h:42
virtual ~OptimizeWaysLowZoom()
bool HasOptimizations(double magnification) const
void GetTypes(const Magnification &magnification, const TypeInfoSet &wayTypes, TypeInfoSet &availableWayTypes) const
uint64_t FileOffset
Definition OSMScoutTypes.h:46
std::shared_ptr< TypeConfig > TypeConfigRef
Definition TypeConfig.h:1396
std::shared_ptr< OptimizeWaysLowZoom > OptimizeWaysLowZoomRef
Definition OptimizeWaysLowZoom.h:112