<div dir="ltr"><div><div><div>As for your example - yes I guess only changing first occurence to 0x* - further occurences to none makes most sense. In general I think such a rule should not be used. <br><br></div>So good practice would be either:<br>highway=service & service=driveway {set<br>
mkgmap:set_semi_connected_<wbr>type=none}<br>
highway=service [0x07 road_class=0 road_speed=2 resolution 22 continue]<br>
highway=service & oneway=yes [0x10106 resolution 24]<br><br></div>or <br>highway=service & service=driveway {set<br>
mkgmap:set_semi_connected_<wbr>type=0x10806} [0x07 road_class=0 road_speed=2 resolution 22 continue]<br>
highway=service [0x07 road_class=0 road_speed=2 resolution 22 continue]<br>
highway=service & oneway=yes [0x10106 resolution 24]</div><div><br></div><div>or <br></div><div>highway=service & service=driveway {set<br>
mkgmap:set_semi_connected_<wbr>type=0x10806} <br></div><div>
highway=service [0x07 road_class=0 road_speed=2 resolution 22 continue]</div><div>highway=service & service=driveway {set<br>
mkgmap:set_semi_connected_<wbr>type=0x10806} <br></div><div>highway=service & oneway=yes [0x10106 resolution 24]</div><div><br></div><div>but not your example and also not:</div><div>highway=service & service=driveway {set<br>
mkgmap:set_semi_connected_<wbr>type=0x10806} [0x07 road_class=0 road_speed=2 resolution 22 continue with_actions]<br>
highway=service [0x07 road_class=0 road_speed=2 resolution 22 continue]<br>
highway=service & oneway=yes [0x10106 resolution 24]</div><div><br></div><div><div>
<br>
</div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 21 September 2017 at 11:10, 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">Somthing seems to be wrong with the patch:<br><br>java.lang.NullPointerException<br> at uk.me.parabola.mkgmap.<wbr>osmstyle.StyledConverter.<wbr>findUnconnectedRoads(<wbr>StyledConverter.java:1970)<br> at uk.me.parabola.mkgmap.<wbr>osmstyle.StyledConverter.end(<wbr>StyledConverter.java:605)<br> at uk.me.parabola.mkgmap.reader.<wbr>osm.ElementSaver.convert(<wbr>ElementSaver.java:243)<br> at uk.me.parabola.mkgmap.reader.<wbr>osm.OsmMapDataSource.load(<wbr>OsmMapDataSource.java:157)<br> at uk.me.parabola.mkgmap.main.<wbr>MapMaker.loadFromFile(<wbr>MapMaker.java:154)<br> at uk.me.parabola.mkgmap.main.<wbr>MapMaker.makeMap(MapMaker.<wbr>java:52)<br> at uk.me.parabola.mkgmap.main.<wbr>Main$1.call(Main.java:263)<br> at uk.me.parabola.mkgmap.main.<wbr>Main$1.call(Main.java:259)<br> at java.util.concurrent.<wbr>FutureTask.run(Unknown Source)<br> at java.util.concurrent.<wbr>ThreadPoolExecutor.runWorker(<wbr>Unknown Source)<br> at java.util.concurrent.<wbr>ThreadPoolExecutor$Worker.run(<wbr>Unknown Source)<br> at java.lang.Thread.run(Unknown Source)<br>Could Not Find C:\OpenMTBMap\maps\ovm_6431*.<wbr>img<br></div><div class="gmail_extra"><div><div class="h5"><br><div class="gmail_quote">On 19 September 2017 at 15: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">Attached is v2 of the patch. It implements the removal of overlay lines when<br>
mkgmap:set_unconnected_type=no<wbr>ne or mkgmap:set_semi_connected_type<wbr>=none was<br>
found.<br>
<br>
I am still not sure what should be done if the tag has a value that gives<br>
another type instead of none.<br>
Assume your style uses<br>
highway=service & service=driveway {set<br>
mkgmap:set_semi_connected_type<wbr>=0x10806}<br>
highway=service [0x07 road_class=0 road_speed=2 resolution 22 continue]<br>
highway=service & oneway=yes [0x10106 resolution 24]<br>
<br>
What would you expect for a semi connected way?<br>
We have 2 lines, the first is changed from 0x07 to 0x10806. It would not<br>
make much sense to change also the 2nd from 0x10106 to 0x10806.<br>
So, for now only the value none has an effect for the overlay line(s).<br>
<br>
semi_con-v2.patch<br>
<<a href="http://gis.19327.n8.nabble.com/file/t318326/semi_con-v2.patch" rel="noreferrer" target="_blank">http://gis.19327.n8.nabble.co<wbr>m/file/t318326/semi_con-v2.pat<wbr>ch</a>><br>
<br>
Gerd<br>
<br>
<br>
Felix Hartmann-2 wrote<br>
<span class="m_5472627775370645391im m_5472627775370645391HOEnZb">> That sounds good<br>
><br>
> On Sep 19, 2017 11:23 AM, "Gerd Petermann" <<br>
<br>
> gpetermann_muenchen@<br>
<br>
> ><br>
</span><span class="m_5472627775370645391im m_5472627775370645391HOEnZb">> wrote:<br>
><br>
>> Hi Felix,<br>
>><br>
>> Felix Hartmann-2 wrote<br>
>> > Well I would like it to apply to non routable lines too - if continue<br>
>> > with_actions is used - basically just treat routable and non routable<br>
>> > lines<br>
>> > the same (the initial check should only look at routable lines though I<br>
>> > guess).<br>
>><br>
>> OK, I think I can change the code so that it stores the information<br>
>> whether<br>
>> or not a road<br>
>> is connected (or "semi-connected") once for each OSM way that is at least<br>
>> added once as a road.<br>
>> In a further step mkgmap would check each line for the existence of the<br>
>> mkgmap:set_unconnected_type tag and check if the corresponding OSM way is<br>
>> connected or not.<br>
<br>
<br>
<br>
<br>
<br>
</span><div class="m_5472627775370645391HOEnZb"><div class="m_5472627775370645391h5">--<br>
Sent from: <a href="http://gis.19327.n8.nabble.com/Mkgmap-Development-f5324443.html" rel="noreferrer" target="_blank">http://gis.19327.n8.nabble.com<wbr>/Mkgmap-Development-f5324443.<wbr>html</a><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>
</div></div></blockquote></div><br><br clear="all"><br></div></div><span class="">-- <br><div class="m_5472627775370645391gmail_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>
</span></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>