<div dir="ltr"><div><div><div><div><div>So here are my findings - only use case c) works (which means the same behaviour as before - so the patch does not break anything as far as I found out while playing around).<br><br>in lines file:<br>a)</div><div>( highway=service | highway=track | highway=path | highway=footway ) & service=driveway {set mkgmap:set_semi_connected_<wbr>type=none; set mkgmap:set_unconnected_type=<wbr>none}<br>service=driveway & (mkgmap:set_semi_connected_<wbr>type=none | mkgmap:set_unconnected_type=<wbr>none) {delete highway; delete service; delete access; delete name;}<br></div>highway=path & service=driveway [0x13 road_class=0 road_speed=0 resolution 24 ]</div><div><br></div><div>Will end up with all service=driveway & highway=path lines deleted, no only those that are unconnected or semi_connected.</div></div><div><br></div><div>b)</div><div><div>( highway=service | highway=track | highway=path | highway=footway )
& service=driveway {set mkgmap:set_semi_connected_<wbr>type=none; set
mkgmap:set_unconnected_type=<wbr>none}<br># service=driveway &
(mkgmap:set_semi_connected_<wbr>type=none | mkgmap:set_unconnected_type=<wbr>none)
{delete highway; delete service; delete access; delete name;}<br></div>highway=path & service=driveway [0x13 road_class=0 road_speed=0 resolution 24 ]</div><div><br></div><div>Will not do anything.<br></div><div><br></div><br>c)<br>highway=path & service=driveway {set mkgmap:set_unconnected_type=<wbr>none; set mkgmap:set_unconnected_type=<wbr>none } [0x01 road_class=0 road_speed=0 resolution 24 ]<br></div>works.<br></div><div><br><br></div>It would be great if either a) or b) approach could be taken also. Or if would be possible to simply write a line like:<br><div><div>( highway=service | highway=track | highway=path | highway=footway )
& service=driveway {set mkgmap:set_semi_connected_<wbr>type=delete; set
mkgmap:set_unconnected_type=<wbr>delete}</div><div>So you could delete those lines without placing many many of set mkgmap:set_semi_connected_<wbr>type=none in each line in your styles file where you need it.<br></div><div><br></div><div>Another thing about the type which I consider a bit buggy is the following</div><div>mkgmap:set_semi_connected_<wbr>type=0x27 or mkgmap:set_unconnected_type=<wbr>0x1f</div><div>will throw the error no routable type should be used, while AFAIK the only routable types are</div><div>0x01-0x16 plus with special consideration 0x1a-0x1c. 0x2? is never routable. So it should not be treated like none. This is not really important though.</div><div>Felix<br></div><div><br></div><div><div><div><div><br></div></div></div></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 September 2017 at 10:56, Felix Hartmann <span dir="ltr"><<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">I will properly test it in around 14 days - I cannot access my computer to compile mkgmap right now. I will try to give it a quick test in the coming days - thanks.</div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 5 September 2017 at 07:53, Gerd Petermann <span dir="ltr"><<a href="mailto:GPetermann_muenchen@hotmail.com" target="_blank">GPetermann_muenchen@hotmail.<wbr>com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Felix,<br>
<br>
attached is a patch that implements a new special tag mkgmap:set_semi_connected which works like<br>
mkgmap:set_unconnected_type when a road is only connected to other roads in a single node.<br>
Please check if it does what you want. I hope it still works as before for the --report-dead-ends option<br>
and the mkgmap:set_unconnected tag.<br>
<br>
If others also want to test:<br>
A binary is here:<br>
<a href="http://files.mkgmap.org.uk/download/357/mkgmap.jar" rel="noreferrer" target="_blank">http://files.mkgmap.org.uk/dow<wbr>nload/357/mkgmap.jar</a><br>
<br>
I also thought about other names for the tag, e.g.<br>
mkgmap:set_deadend_type<br>
Maybe better ?<br>
<span><br>
Gerd<br>
______________________________<wbr>__________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgm<wbr>ap.org.uk</a>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>><br>
</span>Gesendet: Montag, 4. September 2017 10:30:03<br>
<span>An: Development list for mkgmap<br>
Betreff: Re: [mkgmap-dev] mkgmap:set_unconnected_type differentiate between connected on both sides or on one side only<br>
<br>
</span><span>either that - or create mkgmap:set_unconnected2=0x?? both is fine. (and I think semicolon is better than colon regarding other OSM nomination).<br>
<br>
Felix<br>
<br>
</span><span>On 4 September 2017 at 09:24, Gerd Petermann <<a href="mailto:GPetermann_muenchen@hotmail.com" target="_blank">GPetermann_muenchen@hotmail.c<wbr>om</a><mailto:<a href="mailto:GPetermann_muenchen@hotmail.com" target="_blank">GPetermann_muenchen@<wbr>hotmail.com</a>>> wrote:<br>
Hi Felix,<br>
<br>
</span><span>do you have a suggestion for the tag value?<br>
Up to now we have<br>
mkgmap:set_unconnected_type=no<wbr>ne<br>
or<br>
mkgmap:set_unconnected_type=0x<wbr>???<br>
<br>
Maybe we use a colon or semicolon to list two values ?<br>
mkgmap:set_unconnected_type=0x<wbr>07:0x10007<br>
1st value is used if road leads to other way, 2nd if not<br>
<br>
Gerd<br>
<br>
______________________________<wbr>__________<br>
</span><span>Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgm<wbr>ap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-<wbr>bounces@lists.mkgmap.org.uk</a>>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a><mailt<wbr>o:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>>><br>
</span><span>Gesendet: Sonntag, 3. September 2017 18:51:38<br>
An: Development list for mkgmap<br>
Betreff: Re: [mkgmap-dev] mkgmap:set_unconnected_type differentiate between connected on both sides or on one side only<br>
<br>
thanks - if it's not too complicated it would be handy to remove "clutter"<br>
<br>
</span><span>On 3 September 2017 at 09:42, Gerd Petermann <<a href="mailto:GPetermann_muenchen@hotmail.com" target="_blank">GPetermann_muenchen@hotmail.c<wbr>om</a><mailto:<a href="mailto:GPetermann_muenchen@hotmail.com" target="_blank">GPetermann_muenchen@<wbr>hotmail.com</a>><mailto:<a href="mailto:GPetermann_muenchen@hotmail.com" target="_blank">GPetermann<wbr>_muenchen@hotmail.com</a><mailto:<a href="mailto:GPetermann_muenchen@hotmail.com" target="_blank">G<wbr>Petermann_muenchen@hotmail.com</a><wbr>>>> wrote:<br>
Hi Felix,<br>
<br>
sounds reasonable. I'll have a look at the code, it is already quite complex because of the --report-dead-ends option.<br>
<br>
Gerd<br>
______________________________<wbr>__________<br>
</span>Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@lists.mkgm<wbr>ap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-<wbr>bounces@lists.mkgmap.org.uk</a>><<wbr>mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-dev-bounces@list<wbr>s.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk" target="_blank">mkgmap-<wbr>dev-bounces@lists.mkgmap.org.<wbr>uk</a>>>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a><mailt<wbr>o:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a>><<wbr>mailto:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.com</a><wbr><mailto:<a href="mailto:extremecarver@gmail.com" target="_blank">extremecarver@gmail.<wbr>com</a>>>><br>
<span>Gesendet: Samstag, 2. September 2017 15:41:50<br>
An: Development list for mkgmap<br>
Betreff: [mkgmap-dev] mkgmap:set_unconnected_type differentiate between connected on both sides or on one side only<br>
<br>
Would it be possible to have the mkgmap:set_unconnected_type=..<wbr>. differentiate between conncected on both sides for lines and only connected on one side?<br>
<br>
For example I would like to delete all service=driveway shorther than 100m length if they are connected only on one side to another routable line - if they are in between I would like to keep them. (in some countries - e.g. Switzerland and France) often highway=service&service=drivew<wbr>ay leads not only to a house but also connects e.g. to a highway=track or highway=path.<br>
<br>
--<br>
Felix Hartman - Openmtbmap.org & VeloMap.org<br>
Schusterbergweg 32/8<br>
6020 Innsbruck<br>
Austria - Österreich<br>
______________________________<wbr>_________________<br>
mkgmap-dev mailing list<br>
</span><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><wbr><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgma<wbr>p.org.uk</a>><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@<wbr>lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkg<wbr>map-dev@lists.mkgmap.org.uk</a>>><br>
<div class="m_-8649857639543303061HOEnZb"><div class="m_-8649857639543303061h5"><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/mailm<wbr>an/listinfo/mkgmap-dev</a><br>
<br>
<br>
<br>
--<br>
Felix Hartman - Openmtbmap.org & VeloMap.org<br>
Schusterbergweg 32/8<br>
6020 Innsbruck<br>
Austria - Österreich<br>
______________________________<wbr>_________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><wbr><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgma<wbr>p.org.uk</a>><br>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/mailm<wbr>an/listinfo/mkgmap-dev</a><br>
<br>
<br>
<br>
--<br>
Felix Hartman - Openmtbmap.org & VeloMap.org<br>
Schusterbergweg 32/8<br>
6020 Innsbruck<br>
Austria - Österreich<br>
</div></div><br>______________________________<wbr>_________________<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="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/mailm<wbr>an/listinfo/mkgmap-dev</a><br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="m_-8649857639543303061gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><div>Felix Hartman - Openmtbmap.org & VeloMap.org<br></div>Schusterbergweg 32/8<br></div><div>6020 Innsbruck<br></div></div>Austria - Österreich</div></div></div></div>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div><div>Felix Hartman - Openmtbmap.org & VeloMap.org<br></div>Schusterbergweg 32/8<br></div><div>6020 Innsbruck<br></div></div>Austria - Österreich</div></div></div></div>
</div>