R: Use of relations file

If I were you, I would use JOSM to download and save a small area that contains a route. (Or you can define a bogus route relation on your home street and not download it, just save it to a file that you would process with mkgmap.)
I've tried your suggestion, using JOSM to obtain a file with a couple of routes I created some time a go. Everything works pretty well, and I am able to obtain the map I want. I have to check the content of Italy's dump from geofabrik.de in order to see why it does'nt work as expected. Thank you very much! Fabrizio

Hi Fabrizio, On Tue, Jan 19, 2010 at 06:59:59AM -0800, Fabrizio Lorenzini wrote:
If I were you, I would use JOSM to download and save a small area that contains a route. (Or you can define a bogus route relation on your home street and not download it, just save it to a file that you would process with mkgmap.)
Obviously I meant "not upload" instead of "not download", but you got my idea.
I've tried your suggestion, using JOSM to obtain a file with a couple of routes I created some time a go. Everything works pretty well, and I am able to obtain the map I want. I have to check the content of Italy's dump from geofabrik.de in order to see why it does'nt work as expected.
Great! When I debugged the copying of route_ref from bus route relations to bus stops in the default style, I used the echo action inside the apply {} block. I also added some System.err.println() diagnostics to mkgmap itself. This helped me to figure out that mkgmap was unable to handle forward references to subrelations. I committed a fix for that a couple of weeks ago; your checked out version does contain my fix. Which program are you using for splitting the tiles? Are the relations defined fine in the split tile .osm files? The node and way members of a relation should be defined before the relation in the .osm file. Otherwise, mkgmap will pretend that the node or way is not a member in the relation. (Hint: search for the relation id in the .osm file, then search backwards for each of the member ids.) Best regards, Marko
participants (2)
-
Fabrizio Lorenzini
-
Marko Mäkelä