|
libosmscout
1.1.1
|
#include <libosmscout-import/include/osmscout/import/AreaIndexGenerator.h>


Classes | |
| struct | TypeData |
Protected Types | |
| using | CoordCountMap = std::map< TileId, size_t > |
| using | CoordOffsetsMap = std::map< TileId, std::list< FileOffset > > |
Protected Member Functions | |
| AreaIndexGenerator (const std::string &typeName, const std::string &typeNamePlural, const std::string &dataFile, const std::string &indexFile) | |
| virtual bool | FitsIndexCriteria (Progress &progress, const TypeInfo &typeInfo, const CoordCountMap &cellFillCount) const |
| void | CalculateStatistics (const MagnificationLevel &level, TypeData &typeData, const CoordCountMap &cellFillCount) const |
| bool | CalculateDistribution (const TypeConfig &typeConfig, const ImportParameter ¶meter, Progress &progress, const std::vector< TypeInfoRef > &types, std::vector< TypeData > &typeData, const MagnificationLevel &minLevelParam, const MagnificationLevel &maxLevelParam, bool useMmap, MagnificationLevel &maxLevel) const |
| bool | WriteBitmap (Progress &progress, FileWriter &writer, const TypeInfo &typeInfo, const TypeData &typeData, const CoordOffsetsMap &typeCellOffsets) |
| virtual void | WriteTypeId (const TypeConfigRef &typeConfig, const TypeInfoRef &type, FileWriter &writer) const =0 |
| bool | MakeAreaIndex (const TypeConfigRef &typeConfig, const ImportParameter ¶meter, Progress &progress, const std::vector< TypeInfoRef > &types, const MagnificationLevel &areaIndexMinMag, const MagnificationLevel &areaIndexMaxLevel, bool useMmap) |
Protected Attributes | |
| std::string | typeName |
| std::string | typeNamePlural |
| std::string | dataFile |
| std::string | indexFile |
Additional Inherited Members | |
Public Member Functions inherited from osmscout::ImportModule | |
| virtual | ~ImportModule ()=default |
| virtual void | GetDescription (const ImportParameter ¶meter, ImportModuleDescription &description) const |
| virtual bool | Import (const TypeConfigRef &typeConfig, const ImportParameter ¶meter, Progress &progress)=0 |
Generic Area index generator
|
protected |
|
protected |
|
inlineprotected |
|
protected |
|
protected |
Calculate internal statistics that are the base for deciding if the given object type is indexed at the given index level.
| level | |
| typeData | |
| cellFillCount |
|
protectedvirtual |
|
protected |
|
protected |
For each cell we store a file offset to the bitmap data or 0, if there is no data for the cell. The bitmap entry itself contains the number of offsets followed by the offsets themselves (delta-encoded).
| progress | |
| writer | |
| typeInfo | |
| typeData | |
| typeCellOffsets |
|
protectedpure virtual |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.14