logo separator

[mkgmap-dev] rendering nested relations

From Henning Scholland osm at aighes.de on Fri Dec 7 14:24:43 GMT 2012

It's a question of parsing the data.

You (means mkgmap) have to rebuild superroutes, till there are only 
way-member in it.

parse tile and read all relation (maybe store in RAM)
if relation_A contains relations_B, replace all relations_B in this 
relation_A  with the objects the relation_B1...Bn  contain.
end, if no relation contains any relation.

This shouldn't be very complex and not very expensive, because there are 
typical not so many relation in one tile.

mkgmap did this afaik only the way you discoverd (increasing ID).


More information about the mkgmap-dev mailing list