Re: [Libosmscout-development] Cannot get TYPE wood to render above level 10
Library for OpenStreetMap offline rendering and routing
Status: Beta
Brought to you by:
tteuling
|
From: Tim T. <ti...@fr...> - 2016-08-19 18:26:11
|
Hello Nicholas,
> In your example, what is the -r flag referring to? And what does
> cell level mean?
"Relation".
-n/w/r => Load OSM node/way/relation by its id
-no/wo/ao => Load Libosmscout node/way/area by its offset
-rn => Load route node
-c => Load coordinate
Some options directly use an existing idex, other do full file scan.
Cell level:
static uint32_t CalculateCellLevel(const osmscout::GeoBox& boundingBox)
{
uint32_t level=25;
while (true) {
if (boundingBox.GetWidth()<=osmscout::cellDimension[level].width &&
boundingBox.GetHeight()<=osmscout::cellDimension[level].height) {
break;
}
if (level==0) {
break;
}
level--;
}
return level;
}
Level of the cell, by which the object would be completely contained.
A measure for size and used by some indexes.
See for example DBThread.cpp:
if (currentMagnification.GetLevel()>=15) {
searchParameter.SetMaximumAreaLevel(6);
}
else {
searchParameter.SetMaximumAreaLevel(4);
}
Which means if you are at zoom level 15 show all object that
completely fit in level <=currentLevel+6.
--
Gruß...
Tim
|