<div dir="ltr">yeah - railways, motorway, trunk, primary and maybe secondary. I think it does not need to be active for other type of lines? <div>Make sure its not active for contourlines. Maybe the DP filter puts them very close and similar. Or maybe a good test for tolerance - if they are merged then the distance to merge them was too close.</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 13 May 2021 at 01:12, Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Mike,<br>
<br>
Thanks for the reminder reg. rails.<br>
The algo might work for them as well, at least for rails with two parrallel lines, maybe also if four lines fall together so that there is a pattern like a-b-c-b-a-b-c-b-a . But, as I wrote, it will only remove invisible points so far, so only file size changes (and maybe rendering time)<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von Mike Baggaley <<a href="mailto:mike@tvage.co.uk" target="_blank">mike@tvage.co.uk</a>><br>
Gesendet: Mittwoch, 12. Mai 2021 18:47<br>
An: 'Development list for mkgmap'<br>
Betreff: Re: [mkgmap-dev] Commit r4703: improve RoadMerger (based on merge-roads-reversed-v6.patch)<br>
<br>
That sounds really promising Gerd. Does this only apply to roads, or can it<br>
also handle other lines? I would like to also reduce multiple railway lines<br>
to a single line at lower resolutions.<br>
<br>
Cheers,<br>
Mike<br>
<br>
-----Original Message-----<br>
From: Gerd Petermann [mailto:<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>]<br>
Sent: 12 May 2021 16:56<br>
To: Development list for mkgmap <<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>><br>
Subject: Re: [mkgmap-dev] Commit r4703: improve RoadMerger (based on<br>
merge-roads-reversed-v6.patch)<br>
<br>
Hi Felix,<br>
<br>
see <a href="https://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=4711" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=4711</a><br>
<br>
I think I see a way to really improve rendering of dual carriage ways. Needs<br>
some more experimenting. At the moment only size is reduced in<br>
RemoveObsoletePointsFilter, but the new code seems to be able detect dual<br>
carriage ways. Work in progress...<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von<br>
Felix Hartmann <<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>><br>
Gesendet: Mittwoch, 12. Mai 2021 16:58<br>
An: Development list for mkgmap<br>
Betreff: Re: [mkgmap-dev] Commit r4703: improve RoadMerger (based on<br>
merge-roads-reversed-v6.patch)<br>
<br>
Ah true, if the dp filter changes differently it would not be good. I think<br>
the key could include the max level for no direction change. Just on add the<br>
smaller resolution would need to be considered. However with level 0 dp<br>
filter being invisible in changes anyhow, it's really only important for<br>
level 1 or higher if direction for continue ways can be merged or not.<br>
<br>
Also oneway street could be reversed at level 1 or higher.<br>
<br>
On Wed, 12 May 2021, 22:37 Gerd Petermann<br>
<<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a><mailto:<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>>><br>
wrote:<br>
Hi Felix,<br>
<br>
I don't understand why you think that the direction is only important at<br>
level 0. Doesn't that depend on the TYP file and the style?<br>
Still, you are probably right that mkgmap could ignore the direction if that<br>
doesn't produce visible differences. We just have to find out if there is a<br>
fixed limit or if we need more options or special tags.<br>
What I try to avoid is the situation that the road is merged and therefore<br>
possibly reduced to a straight line while overlay lines are not merged and<br>
possibly zig-zagging along the road.<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: mkgmap-dev<br>
<<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgm" target="_blank">mkgmap-dev-bounces@lists.mkgm</a><br>
<a href="http://ap.org.uk" rel="noreferrer" target="_blank">ap.org.uk</a>>> im Auftrag von Felix Hartmann<br>
<<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a><mailto:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>>><br>
Gesendet: Mittwoch, 12. Mai 2021 15:08<br>
An: Development list for mkgmap<br>
Betreff: Re: [mkgmap-dev] Commit r4703: improve RoadMerger (based on<br>
merge-roads-reversed-v6.patch)<br>
<br>
Actually besides rivers all lines can be reversed from level1 onwards - Is<br>
that possible or can ways not be reversed if the direction may not be<br>
changed in level 0?<br>
<br>
Also it would be good if adding {add mkgmap:has-direction=true}<br>
is only relevant for future lines if continue with_actions is used, but not<br>
if continue is used. E.g. if a road has cycleway = lane:left I display it<br>
only at resolution 24, however the road itself can be reversed. Just not the<br>
cycleway line that is a second line to the left side of the road. The road<br>
also is later in my style vs the cycleway. That way maybe some additional<br>
lines can be reversed.<br>
<br>
In general for Austria or Germany this gives pretty nice improvements in map<br>
size. For less developed countries the differences are smaller...<br>
<br>
On Tue, 11 May 2021 at 19:21, Gerd Petermann<br>
<<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a><mailto:<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>><mai<br>
<a href="mailto:lto%3Agpetermann_muenchen@hotmail.com" target="_blank">lto:gpetermann_muenchen@hotmail.com</a><mailto:<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>>><br>
> wrote:<br>
Hi Mike,<br>
<br>
it is off by default because it will cause trouble with some styles / TYP<br>
files which rely on the direction but don't set that the new special tag<br>
(yet).<br>
<br>
Gerd<br>
<br>
________________________________________<br>
Von: mkgmap-dev<br>
<<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgm" target="_blank">mkgmap-dev-bounces@lists.mkgm</a><br>
<a href="http://ap.org.uk" rel="noreferrer" target="_blank">ap.org.uk</a>><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-b" target="_blank">mkgmap-dev-b</a><br>
<a href="mailto:ounces@lists.mkgmap.org.uk" target="_blank">ounces@lists.mkgmap.org.uk</a>>>> im Auftrag von Mike Baggaley<br>
<<a href="mailto:mike@tvage.co.uk" target="_blank">mike@tvage.co.uk</a><mailto:<a href="mailto:mike@tvage.co.uk" target="_blank">mike@tvage.co.uk</a>><mailto:<a href="mailto:mike@tvage.co.uk" target="_blank">mike@tvage.co.uk</a><mailto:<a href="mailto:mi" target="_blank">mi</a><br>
<a href="mailto:ke@tvage.co.uk" target="_blank">ke@tvage.co.uk</a>>>><br>
Gesendet: Dienstag, 11. Mai 2021 13:15<br>
An:<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>><mailto<br>
:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>>><br>
Betreff: Re: [mkgmap-dev] Commit r4703: improve RoadMerger (based on<br>
merge-roads-reversed-v6.patch)<br>
<br>
Hi Gerd,<br>
<br>
I may be misunderstanding this, but the explanation of when it is enabled<br>
seems illogical.<br>
<br>
It seems to me that reversing should be the default except on ways that have<br>
mkgmap:has-direction=true unless a switch is given to disable it.<br>
<br>
Or it could be off by default and a switch enables it, except for ways that<br>
have mkgmap:has-direction=true.<br>
<br>
Cheers,<br>
Mike<br>
<br>
-----Original Message-----<br>
From: svn commit<br>
[mailto:<a href="mailto:svn@mkgmap.org.uk" target="_blank">svn@mkgmap.org.uk</a><mailto:<a href="mailto:svn@mkgmap.org.uk" target="_blank">svn@mkgmap.org.uk</a>><mailto:<a href="mailto:svn@mkgmap.org.uk" target="_blank">svn@mkgmap.org.uk</a><br>
<mailto:<a href="mailto:svn@mkgmap.org.uk" target="_blank">svn@mkgmap.org.uk</a>>>]<br>
Sent: 11 May 2021 11:22<br>
To:<br>
<a href="mailto:mkgmap-svn@lists.mkgmap.org.uk" target="_blank">mkgmap-svn@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-svn@lists.mkgmap.org.uk" target="_blank">mkgmap-svn@lists.mkgmap.org.uk</a>><mailto<br>
:<a href="mailto:mkgmap-svn@lists.mkgmap.org.uk" target="_blank">mkgmap-svn@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-svn@lists.mkgmap.org.uk" target="_blank">mkgmap-svn@lists.mkgmap.org.uk</a>>>;<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>><mailto<br>
:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>>><br>
Subject: [mkgmap-dev] Commit r4703: improve RoadMerger (based on<br>
merge-roads-reversed-v6.patch)<br>
<br>
Version mkgmap-r4703 was committed by gerd on Tue, 11 May 2021<br>
<br>
improve RoadMerger (based on merge-roads-reversed-v6.patch)<br>
This has two effects:<br>
- it allows RoadMerger to merge roads which build a sharp angle, if that is<br>
done an info message is logged<br>
- it allows RoadMerger to merge roads with different directions be reversing<br>
the order of points if special criteria are met<br>
- implement new special tag mkgmap:has-direction=true which tells mkgmap<br>
that the direction of the way is important and should not be reversed. The<br>
routing tags oneway=yes or oneway=-1 have the same effect, but they also<br>
effect routing. Use this tag if you have a TYP file which renders lines<br>
different (e.g. cycleway on the right or on the left side) to prevent a<br>
reverse merge<br>
- implements new experimental option --x-force-reverse-merge<br>
<br>
Merging with reverse produces smaller maps, esp. smaller NET and NOD files,<br>
it may have an influence on routing.<br>
Reversing of roads is disabled unless mkgmap detects that the style has at<br>
least one rule which adds mkgmap:has-direction=true in rule file lines or<br>
option --x-force-reverse-merge is used.<br>
The program checks if any line that was added for a given OSM way has the<br>
tag mkgmap:has-direction=true.<br>
If one is found the tag is propagated to the road(s) for that OSM way so no<br>
reversing happens.<br>
Roads with different direction attributes are not merged.<br>
<br>
The option --x-force-reverse-merge is meant for those who don't use a TYP<br>
file or don't render left/right attributes with different types. All others<br>
should not use the option and adapt the style instead.<br>
<br>
<a href="http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=4703" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/websvn/revision.php?repname=mkgmap&rev=4703</a><br>
<br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>><mailto<br>
:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>>><br>
<a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>><mailto<br>
:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>>><br>
<a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
<br>
<br>
--<br>
Felix Hartman - Openmtbmap.org & VeloMap.org<br>
<br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>><br>
<a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
<br>
<br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
_______________________________________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>
<a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Felix Hartman - Openmtbmap.org & VeloMap.org<br></div><br></div></div></div></div></div></div>