1#ifndef OSMSCOUT_OPTIMIZEAREASLOWZOOM_H
2#define OSMSCOUT_OPTIMIZEAREASLOWZOOM_H
60 uint8_t dataOffsetBytes;
76 std::string datafilename;
77 mutable FileScanner scanner;
80 std::map<TypeInfoRef,std::list<TypeData> > areaTypesData;
82 mutable std::mutex lookupMutex;
85 void ReadTypeData(FileScanner& scanner,
88 void GetOffsets(
const TypeData& typeData,
89 const GeoBox& boundingBox,
90 std::set<FileOffset>& offsets)
const;
92 void LoadData(std::set<FileOffset>& offsets,
93 std::vector<AreaRef>& areas)
const;
100 const std::string& path,
101 bool memoryMappedData);
107 const TypeInfoSet& areaTypes,
108 TypeInfoSet& availableAreaTypes)
const;
110 const Magnification& magnification,
111 const TypeInfoSet& areaTypes,
112 std::vector<AreaRef>& areas,
113 TypeInfoSet& loadedAreaTypes)
const;
#define OSMSCOUT_API
Definition CoreImportExport.h:45
bool Open(const TypeConfigRef &typeConfig, const std::string &path, bool memoryMappedData)
bool HasOptimizations(double magnification) const
static const char *const FILE_AREASOPT_DAT
Definition OptimizeAreasLowZoom.h:46
virtual ~OptimizeAreasLowZoom()
bool GetAreas(const GeoBox &boundingBox, const Magnification &magnification, const TypeInfoSet &areaTypes, std::vector< AreaRef > &areas, TypeInfoSet &loadedAreaTypes) const
void GetTypes(const Magnification &magnification, const TypeInfoSet &areaTypes, TypeInfoSet &availableAreaTypes) const
uint64_t FileOffset
Definition OSMScoutTypes.h:46
std::shared_ptr< TypeConfig > TypeConfigRef
Definition TypeConfig.h:1396
std::shared_ptr< OptimizeAreasLowZoom > OptimizeAreasLowZoomRef
Definition OptimizeAreasLowZoom.h:116