Use of relations file

I am trying to use the relations to build a simple map (to use over my existing OSM map produced with mkgmap too) with only mtb routes. I've tried with a simple relations file like this: type=route & route=mtb { apply { set route=mtb; add route_ref='${ref}'}} and I have also a simple lines file wich is: route=mtb [0x16 road_class=0 road_speed=0 level 1] Running mkgmap with these two files against an Italy extract from geofabrik..de, I am only able to see ways wich have "route=mtb" in herself. All ways wich belongs to a relations are simply ignored. I am using mkgmap 1485. Thank you

On Tue, Jan 19, 2010 at 03:10:12AM -0800, Fabrizio Lorenzini wrote:
I am trying to use the relations to build a simple map (to use over my existing OSM map produced with mkgmap too) with only mtb routes. I've tried with a simple relations file like this:
type=route & route=mtb { apply { set route=mtb; add route_ref='${ref}'}}
and I have also a simple lines file wich is:
route=mtb [0x16 road_class=0 road_speed=0 level 1]
Running mkgmap with these two files against an Italy extract from geofabrik.de, I am only able to see ways wich have "route=mtb" in herself. All ways wich belongs to a relations are simply ignored.
I am using mkgmap 1485.
It should definitely work with r1485, because that is before the branches/mp merge. (I haven't been able to generate a map for a while, and it is possible that it has changed something in the handling of relations.) Can you download a small extract around a route in JOSM, save it to a file, and have mkgmap process that file? I can help you if you give me the browse URL of the way or relation. For example, here is a route=ferry relation that I have successfully used for testing: http://www.openstreetmap.org/browse/relation/155054 http://www.openstreetmap.org/browse/way/2735495 Best regards, Marko

On 19.01.2010 12:25, Marko Mäkelä wrote:
On Tue, Jan 19, 2010 at 03:10:12AM -0800, Fabrizio Lorenzini wrote:
I am trying to use the relations to build a simple map (to use over my existing OSM map produced with mkgmap too) with only mtb routes. I've tried with a simple relations file like this:
type=route& route=mtb { apply { set route=mtb; add route_ref='${ref}'}}
and I have also a simple lines file wich is:
route=mtb [0x16 road_class=0 road_speed=0 level 1]
Running mkgmap with these two files against an Italy extract from geofabrik.de, I am only able to see ways wich have "route=mtb" in herself. All ways wich belongs to a relations are simply ignored.
Everything is correct. If you delete the rest of the lines file, how do you think mkgmap is supposed to render them?
Twould be different if you prefix all lines with route=mtb & ....
I am using mkgmap 1485.
It should definitely work with r1485, because that is before the branches/mp merge. (I haven't been able to generate a map for a while, and it is possible that it has changed something in the handling of relations.)
Can you download a small extract around a route in JOSM, save it to a file, and have mkgmap process that file? I can help you if you give me the browse URL of the way or relation. For example, here is a route=ferry relation that I have successfully used for testing:
http://www.openstreetmap.org/browse/relation/155054 http://www.openstreetmap.org/browse/way/2735495
Best regards,
Marko _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

Hi Felix, Fabrizio, On Tue, Jan 19, 2010 at 12:33:28PM +0100, Felix Hartmann wrote:
Running mkgmap with these two files against an Italy extract from geofabrik.de, I am only able to see ways wich have "route=mtb" in herself. All ways wich belongs to a relations are simply ignored.
Everything is correct. If you delete the rest of the lines file, how do you think mkgmap is supposed to render them?
Twould be different if you prefix all lines with route=mtb & ....
I understood the question differently. (After all, we all are non-native speakers.) I understood that Fabrizio wants to see just the MTB routes and nothing else. But he is seeing only the ways that have route=mtb in the first place, not the ways that belong to a route=mtb relation. You seemed to understand that Fabrizio expected to see other ways besides MTB routes. Can you please clarify and post some browse URLs, Fabrizio? Marko
participants (3)
-
Fabrizio Lorenzini
-
Felix Hartmann
-
Marko Mäkelä