logo separator

[mkgmap-dev] Duplicate roads added by default style

From Ticker Berkin rwb-mkgmap at jagit.co.uk on Mon May 10 10:51:10 BST 2021

Hi all

Maybe railway=platform shouldn't generate a routable line.

Pure duplication of (parts of) roads with identical Garmin img
attributes could be suppressed. These could come from duplication by
the style or distinct OSM ways. In the case of platform=railway, I'd
have thought it to be better mapping to have a distinct OSM way when a
navigable route uses a platform.

I don't have strong feelings about warnings or not for this case.

Ticker

On Mon, 2021-05-10 at 09:21 +0000, Gerd Petermann wrote:
> Hi Felix,
> 
> sure, I meant roads which RoadMerger would combine. Roadmerger checks
> a lot more attributes.
> Multiple (different) routable ways for one OSM way are quite normal,
> esp. with the --make-opposite-cycleways option.
> 
> I think it's worth to log a warning for each.
> 
> Gerd
> 
> ________________________________________
> Von: mkgmap-dev <mkgmap-dev-bounces at lists.mkgmap.org.uk> im Auftrag
> von Felix Hartmann <extremecarver at gmail.com>
> Gesendet: Montag, 10. Mai 2021 11:16
> An: Development list for mkgmap
> Betreff: Re: [mkgmap-dev] Duplicate roads added by default style
> 
> It makes the style very complicated to try to remove any identical
> copies - I do this by setting loads of temporary keys, that are
> checked later for existing or not existing and based on that add or
> not add other lines.  I guess some actual duplicates will still
> happen.
> 
> On Mon, 10 May 2021 at 17:14, Felix Hartmann <extremecarver at gmail.com
> <mailto:extremecarver at gmail.com>> wrote:
> hmm no, please no warning. This can be very beneficial. As long as
> the type OR road_speed OR road_class OR oneway plus direction is
> different. The above of course makes no sense, as it will set exactly
> the same road twice.
> 
> On Mon, 10 May 2021 at 16:49, Gerd Petermann <
> GPetermann_muenchen at hotmail.com<mailto:
> GPetermann_muenchen at hotmail.com>> wrote:
> Hi all,
> 
> while double checking patch for the RoadMerger I wondered what might
> happen if the style adds two or more identical roads for the same OSM
> way.
> Of course this makes no sense but to my surprise I found out that
> this really happens with the default style.
> A way with e.g. highway=footway and railway=platform is added twice
> ...
> highway=footway {set tmp:stopMopUp=yes} [0x16 road_class=0
> road_speed=0 resolution 23 continue with_actions]
> ...
> railway=platform [0x16 road_class=0 road_speed=0 resolution 23]
> 
> Of course the default style should be fixed to avoid that but I think
> mkgmap can detect this easily and should print a warning when the
> style does that?
> 
> Gerd
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk<mailto:mkgmap-dev at lists.mkgmap.org.uk>
> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev
> 
> 
> --
> Felix Hartman - Openmtbmap.org & VeloMap.org
> 
> 
> 
> --
> Felix Hartman - Openmtbmap.org & VeloMap.org
> 
> _______________________________________________
> mkgmap-dev mailing list
> mkgmap-dev at lists.mkgmap.org.uk
> https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev


More information about the mkgmap-dev mailing list