Possibility to not put certain lines into resolution=24, but e.g. only 18 and 20?

I think that neither Garmin nor cgpsmapper compiler do this, but would there be a possibility to start some lines only in resolution 20, while the rest of the map is starting at 24? Reason being is that I would like to change layout (TYP) at level 19 and below for some objects. (namely I display cycleroutes out of center in all resolutions, and would like to have them centered in resolution 20,19 and 18). (sorry Mark, after the last round of patches you asked if I am ever satisfied......) (Furthermore if this is possible, I would probably need an extension to the "continue" system, as two identical key combinations don't both work with "continue"; or even better a change in code like [0x01 resolution 24,22; 0x10a10 resolution 20,19,18]. This would also allow people to have nicer maps that behave like "google maps/mapnik", where when you zoom in roads get wider.

Hi, Felix, Felix Hartmann *wrotes on* /Tue Dec 1 19:21:11 GMT 2009/
I think that neither Garmin nor cgpsmapper compiler do this, but would there be a possibility to start some lines only in resolution 20, while the rest of the map is starting at 24?
According to the cgpsmapper manual revision 2.5. page 45 Point 4.4.3 Using level when defining map objects , cgpsmapper could compile maps in that requested way, if you provide input which is prepared for this. Although the standard use is to have different shapes of an object for different levels, it is possible to have map objects only on distinct levels.. if you e.g make entries in the mp-file like this: [POLYLINE] Type=0x3 Label=~[0x06]B58 WESELER STRASSE RoadID=4285 RouteParam=1,0,0,0,0,0,0,0,0,0,0,0 Data0=(50.91893,6.94975),(50.91905,6.94988),(50.91927,6.95005),(50.91942,6.95012),(50.91955,6.95020),(50.91968,6.95055),(50.91970,6.95072),(50.91972,6.95132),(50.91987,6.95207),(50.91994,6.95239),(50.91987,6.95276),(50.91957,6.95332),(50.91968,6.95362),(50.91978,6.95383),(50.91981,6.95385),(50.91983,6.95394),(50.91987,6.95411),(50.91985,6.95471),(50.91953,6.95555),(50.91949,6.95570),(50.91940,6.95598),(50.91933,6.95611),(50.91914,6.95647),(50.91897,6.95720),(50.91867,6.95808),(50.91884,6.95834),(50.91886,6.95847),(50.91916,6.95919),(50.91944,6.95980),(50.91949,6.95992) Nod1=0,4102,0 Nod2=24,4285,0 Nod3=27,4319,0 Nod4=29,4344,0 [END] [POLYLINE] Type=0x14 Label=~[0x06]B58 WESELER STRASSE Data1=(50.91893,6.94975),(50.91905,6.94988),(50.91927,6.95005),(50.91942,6.95012),(50.91955,6.95020),(50.91968,6.95055),(50.91970,6.95072),(50.91972,6.95132),(50.91987,6.95207),(50.91994,6.95239),(50.91987,6.95276),(50.91957,6.95332),(50.91968,6.95362),(50.91978,6.95383),(50.91981,6.95385),(50.91983,6.95394),(50.91987,6.95411),(50.91985,6.95471),(50.91953,6.95555),(50.91949,6.95570),(50.91940,6.95598),(50.91933,6.95611),(50.91914,6.95647),(50.91897,6.95720),(50.91867,6.95808),(50.91884,6.95834),(50.91886,6.95847),(50.91916,6.95919),(50.91944,6.95980),(50.91949,6.95992) [END] In the resulting img you get a line of the same shape with Type=0x3 in level0 and Type=0x14 in level1 cheers Gert

On 02.12.2009 12:52, Gert Münzel wrote:
Hi, Felix,
Felix Hartmann *wrotes on* /Tue Dec 1 19:21:11 GMT 2009/
I think that neither Garmin nor cgpsmapper compiler do this, but would there be a possibility to start some lines only in resolution 20, while the rest of the map is starting at 24?
According to the cgpsmapper manual revision 2.5. page 45 Point 4.4.3 Using level when defining map objects , cgpsmapper could compile maps in that requested way, if you provide input which is prepared for this. Although the standard use is to have different shapes of an object for different levels, Well I think this is the most interesting too. If this were easily implementable into mkgmap style-file via an additional command, this would be great.
it is possible to have map objects only on distinct levels.. if you e.g make entries in the mp-file like this: [POLYLINE] Type=0x3 Label=~[0x06]B58 WESELER STRASSE RoadID=4285 RouteParam=1,0,0,0,0,0,0,0,0,0,0,0 Data0=(50.91893,6.94975),(50.91905,6.94988),(50.91927,6.95005),(50.91942,6.95012),(50.91955,6.95020),(50.91968,6.95055),(50.91970,6.95072),(50.91972,6.95132),(50.91987,6.95207),(50.91994,6.95239),(50.91987,6.95276),(50.91957,6.95332),(50.91968,6.95362),(50.91978,6.95383),(50.91981,6.95385),(50.91983,6.95394),(50.91987,6.95411),(50.91985,6.95471),(50.91953,6.95555),(50.91949,6.95570),(50.91940,6.95598),(50.91933,6.95611),(50.91914,6.95647),(50.91897,6.95720),(50.91867,6.95808),(50.91884,6.95834),(50.91886,6.95847),(50.91916,6.95919),(50.91944,6.95980),(50.91949,6.95992) Nod1=0,4102,0 Nod2=24,4285,0 Nod3=27,4319,0 Nod4=29,4344,0 [END]
[POLYLINE] Type=0x14 Label=~[0x06]B58 WESELER STRASSE Data1=(50.91893,6.94975),(50.91905,6.94988),(50.91927,6.95005),(50.91942,6.95012),(50.91955,6.95020),(50.91968,6.95055),(50.91970,6.95072),(50.91972,6.95132),(50.91987,6.95207),(50.91994,6.95239),(50.91987,6.95276),(50.91957,6.95332),(50.91968,6.95362),(50.91978,6.95383),(50.91981,6.95385),(50.91983,6.95394),(50.91987,6.95411),(50.91985,6.95471),(50.91953,6.95555),(50.91949,6.95570),(50.91940,6.95598),(50.91933,6.95611),(50.91914,6.95647),(50.91897,6.95720),(50.91867,6.95808),(50.91884,6.95834),(50.91886,6.95847),(50.91916,6.95919),(50.91944,6.95980),(50.91949,6.95992) [END]
In the resulting img you get a line of the same shape with Type=0x3 in level0 and Type=0x14 in level1
cheers Gert
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev

I think it should be possible without too much effort. At least the internal class GType has the fields Minresolution and Maxresolution already implemented. From my sight it should be a small change in the TypeReader parser.

Felix Hartmann schrieb:
I think that neither Garmin nor cgpsmapper compiler do this, but would there be a possibility to start some lines only in resolution 20, while the rest of the map is starting at 24?
I have just looked at the source. Guess what, it is already in there! The syntax should be [0x01 resolution Max-Min] e.g. [0x01 resolution 24-21] [0x01 resolution 20-16] I have not tested this, just read this from the source. Regards, Johann

On 02.12.2009 20:46, Johann Gail wrote:
Felix Hartmann schrieb:
I think that neither Garmin nor cgpsmapper compiler do this, but would there be a possibility to start some lines only in resolution 20, while the rest of the map is starting at 24?
I have just looked at the source. Guess what, it is already in there!
The syntax should be
[0x01 resolution Max-Min] e.g. [0x01 resolution 24-21] [0x01 resolution 20-16]
I have not tested this, just read this from the source.
Regards, Johann
Okay, so however this would mean on can only use one type per "line" - or can I put highway=* [0x01 resolution 24-21] [0x02 resolution 20-16] ??? -- Regarding why would I like to route with Mapsource? 1. Etrex cannot have any route with more than ~ 100 direction changes without via poing - without running out of memory on route calculation. Mapsource currently does about twice to three times the distance, and much easier to check whether route is working well or not. Why no online service? There simply is no online router that is easily configurable to take 500 tags into account when routing, with mkgmap this is doable!!! So for mtb/cycle autorouting, the dreaded Mapsource is currently the best tool (for long distances gpsmapedit routes much better, but no possibility to export the routes (which are of great quality), I contacted Konstantin and asked him whether he could implement to save routes as tracks with all via points, or something similar (then one could use WinGdB to make a perfect route for GPS/Mapsource out of the track) but he has not implemented it (yet).

On 02.12.2009 21:00, Felix Hartmann wrote:
On 02.12.2009 20:46, Johann Gail wrote:
Felix Hartmann schrieb:
I think that neither Garmin nor cgpsmapper compiler do this, but would there be a possibility to start some lines only in resolution 20, while the rest of the map is starting at 24?
I have just looked at the source. Guess what, it is already in there!
The syntax should be
[0x01 resolution Max-Min] e.g. [0x01 resolution 24-21] [0x01 resolution 20-16]
I have not tested this, just read this from the source.
Regards, Johann
Okay, so however this would mean on can only use one type per "line" - or can I put highway=* [0x01 resolution 24-21] [0x02 resolution 20-16] ???
-- Regarding why would I like to route with Mapsource? 1. Etrex cannot have any route with more than ~ 100 direction changes without via poing - without running out of memory on route calculation. Mapsource currently does about twice to three times the distance, and much easier to check whether route is working well or not. Why no online service? There simply is no online router that is easily configurable to take 500 tags into account when routing, with mkgmap this is doable!!! So for mtb/cycle autorouting, the dreaded Mapsource is currently the best tool (for long distances gpsmapedit routes much better, but no possibility to export the routes (which are of great quality), I contacted Konstantin and asked him whether he could implement to save routes as tracks with all via points, or something similar (then one could use WinGdB to make a perfect route for GPS/Mapsource out of the track) but he has not implemented it (yet).
My main use for this is based on routes, so at least for relations I just thought about (well know it will work) a way that it will work. I will simply put into relations file lines like route=bicycle {add multilevel=1; add route=bicycle....} then in my lines file I can simply use the newly created key "multilevel=1" to use a different layout. So currently creating a multilevel map, will work fine for all lines that are originally relations. This should cover 95% of what I want to achieve.
participants (3)
-
Felix Hartmann
-
Gert Münzel
-
Johann Gail