<div dir="ltr"><div><div><div>well maybe not fully - but why is it then not possible to use it as given in example b).<br><br></div>First define a condition and then make sure that all ways that fullfill it won't be routable. I mean b) and c) are very similar in notation - why can not both notations work?<br></div>a) won't work if it is evaluated last - I get that now.<br><br></div>c) is much more complicated in the lines style-file compared to b).<br></div><div class="gmail_extra"><br><div class="gmail_quote">On 17 September 2017 at 16:42, Gerd Petermann <span dir="ltr"><<a href="mailto:GPetermann_muenchen@hotmail.com" target="_blank">GPetermann_muenchen@hotmail.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>
it seems you do not yet understand how the special tag works. Thet ag is evaluated after all elements<br>
were processed by the style rules. It is not possible to do this earlier because mkgmap cannot know which ways<br>
will end up as routable lines before style processing is done.<br>
<span class=""><br>
Gerd<br>
______________________________<wbr>__________<br>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.<wbr>mkgmap.org.uk</a>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a>><br>
</span>Gesendet: Sonntag, 17. September 2017 14:49:12<br>
<span class="">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 class="">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)<br>
( 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>
highway=path & service=driveway [0x13 road_class=0 road_speed=0 resolution 24 ]<br>
<br>
Will end up with all service=driveway & highway=path lines deleted, no only those that are unconnected or semi_connected.<br>
<br>
b)<br>
( 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>
highway=path & service=driveway [0x13 road_class=0 road_speed=0 resolution 24 ]<br>
<br>
Will not do anything.<br>
<br>
<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>
works.<br>
<br>
<br>
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>
( 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}<br>
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>
<br>
Another thing about the type which I consider a bit buggy is the following<br>
mkgmap:set_semi_connected_<wbr>type=0x27 or mkgmap:set_unconnected_type=<wbr>0x1f<br>
will throw the error no routable type should be used, while AFAIK the only routable types are<br>
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.<br>
Felix<br>
<br>
<br>
<br>
</span><span class="">On 5 September 2017 at 10:56, Felix Hartmann <<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a><<wbr>mailto:<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a><wbr>>> wrote:<br>
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.<br>
<br>
</span><span class="">On 5 September 2017 at 07:53, Gerd Petermann <<a href="mailto:GPetermann_muenchen@hotmail.com">GPetermann_muenchen@hotmail.<wbr>com</a><mailto:<a href="mailto:GPetermann_muenchen@hotmail.com">GPetermann_<wbr>muenchen@hotmail.com</a>>> wrote:<br>
Hi Felix,<br>
<br>
</span><span class="">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/<wbr>download/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>
<br>
Gerd<br>
______________________________<wbr>__________<br>
</span><span class="">Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.<wbr>mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-<wbr>dev-bounces@lists.mkgmap.org.<wbr>uk</a>>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a><<wbr>mailto:<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a><wbr>>><br>
</span><span class="">Gesendet: Montag, 4. September 2017 10:30:03<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>
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 class="">On 4 September 2017 at 09:24, Gerd Petermann <<a href="mailto:GPetermann_muenchen@hotmail.com">GPetermann_muenchen@hotmail.<wbr>com</a><mailto:<a href="mailto:GPetermann_muenchen@hotmail.com">GPetermann_<wbr>muenchen@hotmail.com</a>><mailto:<a href="mailto:GPetermann_muenchen@hotmail.com">G<wbr>Petermann_muenchen@hotmail.com</a><wbr><mailto:<a href="mailto:GPetermann_muenchen@hotmail.com">GPetermann_muenchen@<wbr>hotmail.com</a>>>> wrote:<br>
Hi Felix,<br>
<br>
</span><span class="">do you have a suggestion for the tag value?<br>
Up to now we have<br>
mkgmap:set_unconnected_type=<wbr>none<br>
or<br>
mkgmap:set_unconnected_type=<wbr>0x???<br>
<br>
Maybe we use a colon or semicolon to list two values ?<br>
mkgmap:set_unconnected_type=<wbr>0x07:0x10007<br>
1st value is used if road leads to other way, 2nd if not<br>
<br>
Gerd<br>
<br>
______________________________<wbr>__________<br>
</span><span class="">Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.<wbr>mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-<wbr>dev-bounces@lists.mkgmap.org.<wbr>uk</a>><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@<wbr>lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkg<wbr>map-dev-bounces@lists.mkgmap.<wbr>org.uk</a>>>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a><<wbr>mailto:<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a><wbr>><mailto:<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.<wbr>com</a><mailto:<a href="mailto:extremecarver@gmail.com">extremecarver@<wbr>gmail.com</a>>>><br>
</span><span class="">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 class="">On 3 September 2017 at 09:42, Gerd Petermann <<a href="mailto:GPetermann_muenchen@hotmail.com">GPetermann_muenchen@hotmail.<wbr>com</a><mailto:<a href="mailto:GPetermann_muenchen@hotmail.com">GPetermann_<wbr>muenchen@hotmail.com</a>><mailto:<a href="mailto:GPetermann_muenchen@hotmail.com">G<wbr>Petermann_muenchen@hotmail.com</a><wbr><mailto:<a href="mailto:GPetermann_muenchen@hotmail.com">GPetermann_muenchen@<wbr>hotmail.com</a>>><mailto:<a href="mailto:GPetermann_muenchen@hotmail.com">GPeterman<wbr>n_muenchen@hotmail.com</a><mailto:<a href="mailto:GPetermann_muenchen@hotmail.com"><wbr>GPetermann_muenchen@hotmail.<wbr>com</a>><mailto:<a href="mailto:GPetermann_muenchen@hotmail.com">GPetermann_<wbr>muenchen@hotmail.com</a><mailto:<a href="mailto:GPetermann_muenchen@hotmail.com">GP<wbr>etermann_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">mkgmap-dev-bounces@lists.<wbr>mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-<wbr>dev-bounces@lists.mkgmap.org.<wbr>uk</a>><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@<wbr>lists.mkgmap.org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkg<wbr>map-dev-bounces@lists.mkgmap.<wbr>org.uk</a>>><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-<wbr>bounces@lists.mkgmap.org.uk</a><<wbr>mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@<wbr>lists.mkgmap.org.uk</a>><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mk<wbr>gmap-dev-bounces@lists.mkgmap.<wbr>org.uk</a><mailto:<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-<wbr>bounces@lists.mkgmap.org.uk</a>>>><wbr>> im Auftrag von Felix Hartmann <<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a><<wbr>mailto:<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.com</a><wbr>><mailto:<a href="mailto:extremecarver@gmail.com">extremecarver@gmail.<wbr>com</a><mailto:<a href="mailto:extremecarver@gmail.com">extremecarver@<wbr>gmail.com</a>>><mailto:<a href="mailto:extremecarver@gmail.com">extremecarv<wbr>er@gmail.com</a><mailto:<a href="mailto:extremecarver@gmail.com">extremecar<wbr>ver@gmail.com</a>><mailto:<a href="mailto:extremecarver@gmail.com">extremec<wbr>arver@gmail.com</a><mailto:<a href="mailto:extremecarver@gmail.com">extreme<wbr>carver@gmail.com</a>>>>><br>
<span class="">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=<wbr>driveway 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">mkgmap-dev@lists.mkgmap.org.uk</a><wbr><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.<wbr>mkgmap.org.uk</a>><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-<wbr>dev@lists.mkgmap.org.uk</a><<wbr>mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.<wbr>mkgmap.org.uk</a>>><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-<wbr>dev@lists.mkgmap.org.uk</a><<wbr>mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.<wbr>mkgmap.org.uk</a>><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-<wbr>dev@lists.mkgmap.org.uk</a><<wbr>mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.<wbr>mkgmap.org.uk</a>>>><br>
<div class="HOEnZb"><div class="h5"><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noreferrer" target="_blank">http://www.mkgmap.org.uk/<wbr>mailman/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">mkgmap-dev@lists.mkgmap.org.uk</a><wbr><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.<wbr>mkgmap.org.uk</a>><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-<wbr>dev@lists.mkgmap.org.uk</a><<wbr>mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.<wbr>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/<wbr>mailman/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>
<br>
______________________________<wbr>_________________<br>
mkgmap-dev mailing list<br>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><wbr><mailto:<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.<wbr>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/<wbr>mailman/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>
<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">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/<wbr>mailman/listinfo/mkgmap-dev</a><br>
</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>