Resolution/level range, rendering parallel routes

Hi, [1] says that resolution or level range is not supported but in fact it works (tested on gpsmap 62s). It only needs to be written in opposite order (ie 3-1 instead of 1-3). Can you please change it so it works in both ways? It's really a minor issue but it should make it a bit easier for beginners :-) I need resolution range to render parallel hiking routes, like in [2] or in josm plugin routes. Lines for different routes needs to be offset by the same number of pixels in every zoom level so I'm going to generate osm file, that will for every zoom level contain all routes (with different offset that will translate to the same pixel distance). Before I start, is there any easier way to do this in mkgmap? If not, do you think it's useful enough to get it integrated into mkgmap? So I'll try to make mkgmap patch instead of osm file generator... [1] http://wiki.openstreetmap.org/wiki/Mkgmap/help/style_rules [2] http://www.mapy.cz/#x=12.851828&y=49.361801&z=12&l=2&c=c-t -- Jiri Klement

On 19/07/2011 21:46, Jiri Klement wrote:
Hi,
[1] says that resolution or level range is not supported but in fact it works (tested on gpsmap 62s). It only needs to be written in opposite order (ie 3-1 instead of 1-3). Can you please change it so it works in both ways? It's really a minor issue but it should make it a bit easier for beginners :-)
I'll fix the wiki, but I wouldn't know how to re-code mkgmap so that the level or resolution-ranges can be defined in the opposite way.
I need resolution range to render parallel hiking routes, like in [2] or in josm plugin routes. Lines for different routes needs to be offset by the same number of pixels in every zoom level so I'm going to generate osm file, that will for every zoom level contain all routes (with different offset that will translate to the same pixel distance).
Before I start, is there any easier way to do this in mkgmap? If not, do you think it's useful enough to get it integrated into mkgmap? So I'll try to make mkgmap patch instead of osm file generator...
I guess it depends on how those routes are being specified in the OSM data, but it strikes me that the most generic solution would be to create your own TYP file which contains ways with the correct offset, and combine this with new rules in mkgmap's lines and/or relations style files. I think Felix Hartmann does this in his openmtbmap, if you want to see a working example of how to do this. -- Charlie

On 19/07/11 18:46, Jiri Klement wrote:
Hi,
[1] says that resolution or level range is not supported but in fact it works (tested on gpsmap 62s). It only needs to be written in opposite order (ie 3-1 instead of 1-3). Can you please change it so it works in both ways? It's really a minor issue but it should make it a bit easier for beginners :-)
Thanks for reporting this. In my testing however it seems that level works as expected, but resolution does not. level 1-3 Works resolution 18-20 No resolution 20-18 'Works' Attached patch fixes the problem that I see. Could you double-check and if it really is level that doesn't work for you, can you provide some kind of example? Thanks ..Steve
participants (3)
-
Charlie Ferrero
-
Jiri Klement
-
Steve Ratcliffe