[mkgmap-dev] Commit: r1102: Short arc removal was broken when --route was not specified, fixed.

2009-07-24 Thread svn commit
Version 1102 was commited by markb on 2009-07-24 09:06:03 +0100 (Fri, 24 Jul 2009) Short arc removal was broken when --route was not specified, fixed. ___ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo

Re: [mkgmap-dev] Commit: r1101: Further work on loop splitting code.

2009-07-24 Thread Mark Burton
Hi Valentijn, > I just ran mkgmap without --route: Thanks, that's another buglet squished. I've committed a fix. Incidentally, that way, Road Diemerdreef (OSM id 24975519), is a really dumb bit of OSM. It's a roundabout with about 20 points and has a diameter of about 1m! Why do people do that?

[mkgmap-dev] routing and cycleway=track

2009-07-24 Thread Sven Geggus
Hi there, quite a lot of cycleways around here alongside major roads (primary,secondary,trunk) are tagged as cycleway=track. In this case the Garmin device does not use this ways if "Avoid Highways" is enabled in routing option. The result is a very strange routing in these places. Would it be po

Re: [mkgmap-dev] routing and cycleway=track

2009-07-24 Thread Mark Burton
Hi Sven, > quite a lot of cycleways around here alongside major roads > (primary,secondary,trunk) are tagged as cycleway=track. In this case the > Garmin device does not use this ways if "Avoid Highways" is enabled in > routing option. The result is a very strange routing in these places. > > Wo

Re: [mkgmap-dev] Commit: r1101: Further work on loop splitting code.

2009-07-24 Thread Valentijn Sessink
Mark Burton schreef: > Incidentally, that way, Road Diemerdreef (OSM id 24975519), is a really > dumb bit of OSM. It's a roundabout with about 20 points and has a > diameter of about 1m! Why do people do that? I wouldn't know, I'm an IT person. My wife though is a psychologist. Do you want me to f

[mkgmap-dev] [PATCH v1] - make cycleway tracks

2009-07-24 Thread Mark Burton
As requested, here's an option (--make-cycleway-tracks) to enable the synthesis of cycleways when a (non-cycleway) way is tagged cycleway=track. I have also tweaked the code for making opposite cycleways - it now gives the synthesised way a highway=cycleway tag which it wasn't doing before. So a

Re: [mkgmap-dev] Commit: r1101: Further work on loop splitting code.

2009-07-24 Thread Mark Burton
Hi, > > Incidentally, that way, Road Diemerdreef (OSM id 24975519), is a really > > dumb bit of OSM. It's a roundabout with about 20 points and has a > > diameter of about 1m! Why do people do that? > > I wouldn't know, I'm an IT person. My wife though is a psychologist. Do > you want me to file

Re: [mkgmap-dev] Commit: r1101: Further work on loop splitting code.

2009-07-24 Thread Carlos Dávila
Mark Burton escribió: > Hi Valentijn, > > >> I just ran mkgmap without --route: >> > > Thanks, that's another buglet squished. I've committed a fix. > > Incidentally, that way, Road Diemerdreef (OSM id 24975519), is a really > dumb bit of OSM. It's a roundabout with about 20 points and has

Re: [mkgmap-dev] Commit: r1101: Further work on loop splitting code.

2009-07-24 Thread Valentijn Sessink
Mark Burton schreef: > BTW, do you have mini roundabouts? Yes, we do... > If so, should it have been one of them? ... but no. It's large. It was probably added at wrong scale or something - I looked at the history of the thing but there's not much there. V.

Re: [mkgmap-dev] - make cycleway tracks

2009-07-24 Thread Sven Geggus
Mark Burton wrote: > As requested, here's an option (--make-cycleway-tracks) to enable the > synthesis of cycleways when a (non-cycleway) way is tagged > cycleway=track. Wow, that was fast! Anyway looking at the patch this seems to be incomplete. We should synthesise a cycleway for the followin

Re: [mkgmap-dev] - make cycleway tracks

2009-07-24 Thread Mark Burton
Hi Sven, > Anyway looking at the patch this seems to be incomplete. We should > synthesise a cycleway for the following tags: > track,left,rigt,lane and yes. > > Where left or right will imply oneway=yes. I have no problem with matching more tags. However, left, right and yes are not discussed

Re: [mkgmap-dev] - make cycleway tracks

2009-07-24 Thread Sven Geggus
Mark Burton wrote: > I have no problem with matching more tags. However, left, right and yes > are not discussed on http://wiki.openstreetmap.org/wiki/Key:cycleway > how are they meant to be used? http://wiki.openstreetmap.org/wiki/Proposed_features/Advanced_footway_and_cycleway left and right

Re: [mkgmap-dev] - make cycleway tracks

2009-07-24 Thread Valentijn Sessink
Sven Geggus schreef: > You replaced cycleWay.copyTags with new code, this way you end e.g. up with > something like this: > > highway=cycleway > (+ more tags) > > instead of: > > highway=residential > (+ more tags) > > However, this may lead to a situation, where cycling one-way roads into t

Re: [mkgmap-dev] - make cycleway tracks

2009-07-24 Thread Mark Burton
On Fri, 24 Jul 2009 13:56:19 + (UTC) Sven Geggus wrote: > Mark Burton wrote: > > > I have no problem with matching more tags. However, left, right and yes > > are not discussed on http://wiki.openstreetmap.org/wiki/Key:cycleway > > how are they meant to be used? > > http://wiki.openstreetm

Re: [mkgmap-dev] - make cycleway tracks

2009-07-24 Thread Sven Geggus
Valentijn Sessink wrote: > So you mean: if a certain way has > "highway=$something; oneway=yes; cycleway = opposite" > mkgmap should ADD a fake road that has > "highway=$something, oneway=-1" and then access restrictions for pretty > much everything except bikes, is that what you're saying? Exac

[mkgmap-dev] [PATCH v2] - make cycleway tracks

2009-07-24 Thread Mark Burton
v2 - Now matches extra tags (lane, left, right, both). Commented out setting of highway=cycleway until it's agreed that it's a good idea. - As requested, here's an option (--make-cycleway-tracks) to enable the synthesis of cycleways when a (non-cycleway) way is tagged cyclew

Re: [mkgmap-dev] routing and cycleway=track

2009-07-24 Thread Mark Burton
Here's a question: when you have a cycleway lane/track, are bicycles prohibited from using the road or can they use the road if they wish to? I wonder if when we generate a cycleway, we should be adding a bicycle=no to the original way? Cheers, Mark _

Re: [mkgmap-dev] routing and cycleway=track

2009-07-24 Thread Sven Geggus
Mark Burton wrote: > Here's a question: when you have a cycleway lane/track, are bicycles > prohibited from using the road or can they use the road if they wish to? I suppose that this is different in different countries. In Germany there is a term called "Radwegebenutzungspflicht" which means t

Re: [mkgmap-dev] routing and cycleway=track

2009-07-24 Thread Mark Burton
Hi Sven, > Mark Burton wrote: > > > Here's a question: when you have a cycleway lane/track, are bicycles > > prohibited from using the road or can they use the road if they wish to? > > I suppose that this is different in different countries. In Germany > there is a term called "Radwegebenutzu

Re: [mkgmap-dev] routing and cycleway=track

2009-07-24 Thread Sven Geggus
Mark Burton wrote: > so that if the original way doesn't already have the bicycle routing > defined, it will be disallowed. Ah, nice! There is another thing I found looking at the code. As far as left and right tags are concerned one should create a one-way cycleway only. right: cycleway with

Re: [mkgmap-dev] Putting the DP code under the microscope

2009-07-24 Thread Johann Gail
Thilo Hannemann schrieb: > Here is another approach to the "lost last point". The Douglas Peucker > filter is improved so that it can deal with identical start- and > endpoints. If the start- and the endpoint are identical, the algorithm > calculates the distance between these identical points

Re: [mkgmap-dev] Putting the DP code under the microscope

2009-07-24 Thread Thilo Hannemann
Hi Johann, it is actually not what it seems to be. The douglasPeucker function is called recursively. If the condition (maxDistance < allowedError) is fulfilled, the current part of the way can be reduced to a line (in case start- and endpoint are different points) or a point (in case star

[mkgmap-dev] [PATCH v3] - make cycleway tracks

2009-07-24 Thread Mark Burton
v3 renamed option for enabling this to --make-cycleways added --make-all-cycleways option to turn on all cycleway synthesising options Now removes bicycle access from the original way (unless that way has a "bicycle" tag) to force the routing to use the cycleway. BTW - this may be a complete r

Re: [mkgmap-dev] routing and cycleway=track

2009-07-24 Thread Mark Burton
Hi Sven, > > so that if the original way doesn't already have the bicycle routing > > defined, it will be disallowed. > > Ah, nice! I have put out a new patch that does that. > There is another thing I found looking at the code. > > As far as left and right tags are concerned one should creat

[mkgmap-dev] Default mapping of highway=primary

2009-07-24 Thread Dermot McNally
Hi, While hacking on my own TYP file, I've noticed that my preferred styling for highway=primary is never being respected, and that primary roads always assume the same style as trunk. In the TYP file, I've assumed that primary will be mapped to 0x03 [Principal HWY-medium] and trunk to 0x02 [Princ

Re: [mkgmap-dev] proposed README organization

2009-07-24 Thread Greg Troxel
I've done some more README work. I am finding a lot of information on wikis, including talk pages, and have tried to link to it rather than duplicating it, at least for now. This patch creates all the files, even if some of them have little content. I did include an example of making gmapi-form

Re: [mkgmap-dev] routing and cycleway=track

2009-07-24 Thread Valentijn Sessink
Mark Burton schreef: > if(currentWay.getTag("bicycle") == null) > currentWay.addTag("bicycle", "no"); > > so that if the original way doesn't already have the bicycle routing > defined, it will be disallowed. In the Netherlands that would be right, too: the bicycle-paths are mandatory. My f