1 #ifndef OSMSCOUT_IMPORTPARAMETER_H 2 #define OSMSCOUT_IMPORTPARAMETER_H 32 class PreprocessorCallback;
39 virtual std::unique_ptr<Preprocessor> GetProcessor(
const std::string& filename,
62 std::string filenamebase;
66 const std::string& filenamebase);
80 return filenamebase+
".dat";
85 return filenamebase+
"2.dat";
90 return filenamebase+
".idx";
104 std::list<std::string> mapfiles;
105 std::string typefile;
106 std::string destinationDirectory;
112 std::string boundingPolygonFile;
114 std::list<Router> router;
119 size_t sortBlockSize;
122 size_t processingQueueSize;
124 size_t numericIndexPageSize;
126 size_t rawCoordBlockSize;
128 bool rawNodeDataMemoryMaped;
130 bool rawWayIndexMemoryMaped;
131 bool rawWayDataMemoryMaped;
132 size_t rawWayIndexCacheSize;
133 size_t rawWayBlockSize;
135 bool coordDataMemoryMaped;
136 size_t coordIndexCacheSize;
137 size_t coordBlockSize;
142 bool areaDataMemoryMaped;
143 size_t areaDataCacheSize;
145 bool wayDataMemoryMaped;
146 size_t wayDataCacheSize;
148 size_t areaAreaIndexMaxMag;
150 MagnificationLevel areaNodeGridMag;
151 uint16_t areaNodeSimpleListLimit;
152 uint16_t areaNodeTileListLimit;
153 uint16_t areaNodeTileListCoordLimit;
154 MagnificationLevel areaNodeBitmapMaxMag;
155 uint16_t areaNodeBitmapLimit;
157 MagnificationLevel areaWayMinMag;
158 MagnificationLevel areaWayIndexMaxLevel;
160 MagnificationLevel areaRouteMinMag;
161 MagnificationLevel areaRouteIndexMaxLevel;
163 uint32_t waterIndexMinMag;
164 uint32_t waterIndexMaxMag;
166 size_t optimizationMaxWayCount;
167 MagnificationLevel optimizationMaxMag;
168 MagnificationLevel optimizationMinMag;
169 size_t optimizationCellSizeAverage;
170 size_t optimizationCellSizeMax;
171 TransPolygon::OptimizeMethod optimizationWayMethod;
173 size_t routeNodeBlockSize;
174 uint32_t routeNodeTileMag;
176 AssumeLandStrategy assumeLand;
178 std::vector<std::string> langOrder;
180 std::vector<std::string> altLangOrder;
182 size_t maxAdminLevel;
184 OSMId firstFreeOSMId;
185 size_t fillWaterArea;
191 virtual ~ImportParameter();
193 const std::list<std::string>& GetMapfiles()
const;
194 std::string GetTypefile()
const;
195 std::string GetDestinationDirectory()
const;
196 std::string GetBoundingPolygonFile()
const;
200 size_t GetStartStep()
const;
201 size_t GetEndStep()
const;
204 const std::list<Router>& GetRouter()
const;
206 bool GetStrictAreas()
const;
208 bool GetSortObjects()
const;
209 size_t GetSortBlockSize()
const;
210 size_t GetSortTileMag()
const;
212 size_t GetProcessingQueueSize()
const;
214 size_t GetNumericIndexPageSize()
const;
216 size_t GetRawCoordBlockSize()
const;
218 bool GetRawNodeDataMemoryMaped()
const;
220 bool GetRawWayIndexMemoryMaped()
const;
221 bool GetRawWayDataMemoryMaped()
const;
222 size_t GetRawWayIndexCacheSize()
const;
223 size_t GetRawWayBlockSize()
const;
225 bool GetCoordDataMemoryMaped()
const;
226 size_t GetCoordIndexCacheSize()
const;
228 size_t GetCoordBlockSize()
const;
230 size_t GetRelMaxWays()
const;
231 size_t GetRelMaxCoords()
const;
233 bool GetAreaDataMemoryMaped()
const;
234 size_t GetAreaDataCacheSize()
const;
236 bool GetWayDataMemoryMaped()
const;
237 size_t GetWayDataCacheSize()
const;
239 MagnificationLevel GetAreaNodeGridMag()
const;
240 uint16_t GetAreaNodeSimpleListLimit()
const;
241 uint16_t GetAreaNodeTileListLimit()
const;
242 uint16_t GetAreaNodeTileListCoordLimit()
const;
243 MagnificationLevel GetAreaNodeBitmapMaxMag()
const;
244 uint16_t GetAreaNodeBitmapLimit()
const;
246 MagnificationLevel GetAreaWayMinMag()
const;
247 MagnificationLevel GetAreaWayIndexMaxLevel()
const;
249 MagnificationLevel GetAreaRouteMinMag()
const;
250 MagnificationLevel GetAreaRouteIndexMaxLevel()
const;
252 size_t GetAreaAreaIndexMaxMag()
const;
254 uint32_t GetWaterIndexMinMag()
const;
255 uint32_t GetWaterIndexMaxMag()
const;
257 size_t GetOptimizationMaxWayCount()
const;
258 MagnificationLevel GetOptimizationMaxMag()
const;
259 MagnificationLevel GetOptimizationMinMag()
const;
260 size_t GetOptimizationCellSizeAverage()
const;
261 size_t GetOptimizationCellSizeMax()
const;
262 TransPolygon::OptimizeMethod GetOptimizationWayMethod()
const;
264 size_t GetRouteNodeBlockSize()
const;
265 uint32_t GetRouteNodeTileMag()
const;
267 AssumeLandStrategy GetAssumeLand()
const;
269 OSMId GetFirstFreeOSMId()
const;
271 const std::vector<std::string>& GetLangOrder ()
const;
272 const std::vector<std::string>& GetAltLangOrder ()
const;
274 size_t GetMaxAdminLevel()
const;
276 void SetMapfiles(
const std::list<std::string>& mapfile);
277 void SetTypefile(
const std::string& typefile);
278 void SetDestinationDirectory(
const std::string& destinationDirectory);
279 void SetBoundingPolygonFile(
const std::string& boundingPolygonFile);
283 void SetStartStep(
size_t startStep);
284 void SetSteps(
size_t startStep,
size_t endStep);
285 void SetEco(
bool eco);
288 void AddRouter(
const Router& router);
290 void SetStrictAreas(
bool strictAreas);
292 void SetSortObjects(
bool sortObjects);
293 void SetSortBlockSize(
size_t sortBlockSize);
294 void SetSortTileMag(
size_t sortTileMag);
296 void SetProcessingQueueSize(
size_t processingQueueSize);
298 void SetNumericIndexPageSize(
size_t numericIndexPageSize);
300 void SetRawCoordBlockSize(
size_t blockSize);
302 void SetRawNodeDataMemoryMaped(
bool memoryMaped);
304 void SetRawWayIndexMemoryMaped(
bool memoryMaped);
305 void SetRawWayDataMemoryMaped(
bool memoryMaped);
306 void SetRawWayIndexCacheSize(
size_t wayIndexCacheSize);
307 void SetRawWayBlockSize(
size_t blockSize);
309 void SetCoordDataMemoryMaped(
bool memoryMaped);
310 void SetCoordIndexCacheSize(
size_t coordIndexCacheSize);
312 void SetCoordBlockSize(
size_t coordBlockSize);
314 void SetRelMaxWays(
size_t relMaxWays);
315 void SetRelMaxCoords(
size_t relMaxCoords);
317 void SetAreaDataMemoryMaped(
bool memoryMaped);
318 void SetAreaDataCacheSize(
size_t areaDataCacheSize);
320 void SetWayDataMemoryMaped(
bool memoryMaped);
321 void SetWayDataCacheSize(
size_t wayDataCacheSize);
323 void SetAreaAreaIndexMaxMag(
size_t areaAreaIndexMaxMag);
325 void SetAreaNodeGridMag(MagnificationLevel areaNodeGridMag);
326 void SetAreaNodeSimpleListLimit(uint16_t areaNodeSimpleListLimit);
327 void SetAreaNodeTileListLimit(uint16_t areaNodeTileListLimit);
328 void SetAreaNodeTileListCoordLimit(uint16_t areaNodeTileListCoordLimit);
329 void SetAreaNodeBitmapMaxMag(
const MagnificationLevel& areaNodeBitmapMaxMag);
330 void SetAreaNodeBitmapLimit(uint16_t areaNodeBitmapLimit);
332 void SetAreaWayMinMag(MagnificationLevel areaWayMinMag);
333 void SetAreaWayIndexMaxMag(MagnificationLevel areaWayIndexMaxLevel);
335 void SetAreaRouteMinMag(MagnificationLevel areaRouteMinMag);
336 void SetAreaRouteIndexMaxMag(MagnificationLevel areaRouteIndexMaxLevel);
338 void SetWaterIndexMinMag(uint32_t waterIndexMinMag);
339 void SetWaterIndexMaxMag(uint32_t waterIndexMaxMag);
341 void SetOptimizationMaxWayCount(
size_t optimizationMaxWayCount);
342 void SetOptimizationMaxMag(MagnificationLevel optimizationMaxMag);
343 void SetOptimizationMinMag(MagnificationLevel optimizationMinMag);
344 void SetOptimizationCellSizeAverage(
size_t optimizationCellSizeAverage);
345 void SetOptimizationCellSizeMax(
size_t optimizationCellSizeMax);
346 void SetOptimizationWayMethod(TransPolygon::OptimizeMethod optimizationWayMethod);
348 void SetRouteNodeBlockSize(
size_t blockSize);
349 void SetRouteNodeTileMag(uint32_t routeNodeTileMag);
351 void SetAssumeLand(AssumeLandStrategy assumeLand);
353 void SetLangOrder(
const std::vector<std::string>& langOrder);
354 void SetAltLangOrder(
const std::vector<std::string>& altLangOrder);
356 void SetMaxAdminLevel(
size_t maxAdminLevel);
358 void SetFirstFreeOSMId(
OSMId id);
360 void SetFillWaterArea(
size_t fillWaterArea);
361 size_t GetFillWaterArea()
const;
365 std::unique_ptr<Preprocessor> GetPreprocessor(
const std::string& filename,
368 void SetAreaWayIndexMaxLevel(
const MagnificationLevel& areaWayIndexMaxLevel);
370 static size_t GetDefaultStartStep();
371 static size_t GetDefaultEndStep();
376 #endif //OSMSCOUT_IMPORTPARAMETER_H std::string GetFilenamebase() const
Definition: ImportParameter.h:73
std::shared_ptr< ImportErrorReporter > ImportErrorReporterRef
Definition: ImportErrorReporter.h:137
AssumeLandStrategy
Definition: ImportParameter.h:96
int64_t OSMId
Definition: OSMScoutTypes.h:34
std::string GetVariantFilename() const
Definition: ImportParameter.h:83
#define OSMSCOUT_IMPORT_API
Definition: ImportImportExport.h:45
VehicleMask GetVehicleMask() const
Definition: ImportParameter.h:68
std::shared_ptr< Router > RouterRef
Definition: ImportParameter.h:94
Definition: ImportParameter.h:34
Definition: Preprocessor.h:35
std::string GetIndexFilename() const
Definition: ImportParameter.h:88
std::string GetDataFilename() const
Definition: ImportParameter.h:78
uint8_t VehicleMask
Definition: OSMScoutTypes.h:62
std::shared_ptr< PreprocessorFactory > PreprocessorFactoryRef
Definition: ImportParameter.h:43