<div dir="ltr">Hi Gerd,<div><br></div><div>I already made a previous analysis before to change my generator. Well, it&#39;s possible, but I practically have to rebuild the generator entirely.</div><div>So, I understood that you said that it&#39;s better solution but not a &quot;must&quot; solution to change generator. If so, I will prefer to keep the generator this way for a while.</div><div>However, If you think I can be missing something in my maps due this mixed syntax, then I will plan to change my code.</div><div><br></div><div>Thanks</div><div><br></div><div>Alexandre  </div></div><div class="gmail_extra"><br><div class="gmail_quote">2015-06-02 2:36 GMT-03:00 Gerd Petermann <span dir="ltr">&lt;<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi Alexandre,<br><br>the better solution would be to change your generator so that<br>it writes the data in the expected order (nodes, ways, relations, each with<br>ascending ids). If you do that, you can remove the options --mixed and --overlap<br>and use the default --keep-complete=true.<br><br>A possible compromise:<br>I have to double check that, but I think the keep-complete option only requires that <br>the ids are sorted, it doesn&#39;t care about the order of the elements. <br>On the other hand, the xml parser requires the <br>mixed option when the element types are not sorted,<br>and a check prohibtis the combination of --mixed  and keep-complete=true.<br>If I am right, I can remove this check.<br><br>Ciao,<br>Gerd<br><br><div><hr>Date: Sat, 30 May 2015 09:15:19 -0300<br>From: <a href="mailto:alexandre.loss@gmail.com" target="_blank">alexandre.loss@gmail.com</a><br>To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>Subject: Re: [mkgmap-dev] Splitter problem: losing a track segment<div><div class="h5"><br><br><div dir="ltr">Hi Gerd,<div><br></div><div>Overlap of 10000 fixed my problem. :-)</div><div><br></div><div>Thank you very much!</div><div><br></div><div>Alexandre</div><div><div><div><br><div>2015-05-30 8:20 GMT-03:00 Alexandre Loss <span dir="ltr">&lt;<a href="mailto:alexandre.loss@gmail.com" target="_blank">alexandre.loss@gmail.com</a>&gt;</span>:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Gerd,<div><br></div><div>Thanks for your answer.</div><div>I&#39;ll try your suggestion and give you a feedback about the result.</div><div><br></div><div>Regards,</div><div><br></div><div>Alexandre </div></div><div><div><div><br><div>2015-05-30 5:43 GMT-03:00 Gerd Petermann <span dir="ltr">&lt;<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>&gt;</span>:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">


<div><div dir="ltr">Hi Alexandre,<br><br>I don&#39;t have much time to analyse your data today.<br>I think splitter assumes that the tile boundaries <br>are <br>&quot;multiples of 0x200 map units wide and high&quot;<br>when you use resolution=15.<br><br>Since you use keep-complete=false you have to watch<br>the overlap value.<br>You can use a larger overlap value like 10000 to fix this problem.<br><br>Gerd<br><br><br><div><hr>Date: Fri, 29 May 2015 22:04:34 -0300<br>From: <a href="mailto:alexandre.loss@gmail.com" target="_blank">alexandre.loss@gmail.com</a><br>To: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a><br>Subject: [mkgmap-dev] Splitter problem: losing a track segment<div><div><br><br><div dir="ltr">Hi guys,<div><br></div><div>I&#39;m facing a problem in one of my maps, that is probably might be happening in other places where I didn&#39;t see yet.<br></div><div>The problem can be seen in the figure below taken from MapSource. There is a gap in a track on the border of the tiles:<br></div><div><br></div><div><div><img src="cid:ii_14da1fd23aa9cf4e" alt="Imagem inline 2" height="215" width="215"><br></div></div><div><br></div><div>So I started to analyze the problem step-by-step till find that the problem was generated by Splitter (last version).<br></div><div><br></div><div>To simplify your analysis, I edited my .osm file before running Splitter and remove all objects (nodes, lines, poi, etc.) not related to the problem, leaving only the line where the problem happens. The result was the file &quot;93352150-Ribeirao_Preto.osm&quot; attached, containing only this:<br></div><div><br></div><div><div><font face="monospace, monospace">&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;</font></div><div><font face="monospace, monospace">&lt;osm version=&quot;0.6&quot; generator=&quot;TSuite 6.6.0.4&quot;&gt;</font></div><div><font face="monospace, monospace">&lt;!-- === POLYLINE ROTEAVEL - INICIO: SP-255 DANIELLE ======================== --&gt;<br></font></div><div><font face="monospace, monospace"> <font color="#ff0000">&lt;node id=&quot;576&quot; lat=&quot;-21.9388623&quot; lon=&quot;-48.3347007&quot; visible=&quot;true&quot; version=&quot;1&quot;/&gt;</font></font></div><div><font face="monospace, monospace"> &lt;node id=&quot;805&quot; lat=&quot;-21.8877920&quot; lon=&quot;-48.2932640&quot; visible=&quot;true&quot; version=&quot;1&quot;/&gt;</font></div><div><font face="monospace, monospace"> &lt;node id=&quot;806&quot; lat=&quot;-21.8674906&quot; lon=&quot;-48.2767485&quot; visible=&quot;true&quot; version=&quot;1&quot;/&gt;</font></div><div><font face="monospace, monospace"> &lt;node id=&quot;804&quot; lat=&quot;-21.8661147&quot; lon=&quot;-48.2756044&quot; visible=&quot;true&quot; version=&quot;1&quot;/&gt;</font></div><div><font face="monospace, monospace"> &lt;way id=&quot;803&quot; visible=&quot;true&quot; version=&quot;1&quot;&gt;</font></div><div><font face="monospace, monospace">  &lt;nd ref=&quot;576&quot;/&gt;</font></div><div><font face="monospace, monospace">  &lt;nd ref=&quot;805&quot;/&gt;</font></div><div><font face="monospace, monospace">  &lt;nd ref=&quot;806&quot;/&gt;</font></div><div><font face="monospace, monospace">  &lt;nd ref=&quot;804&quot;/&gt;</font></div><div><font face="monospace, monospace">  &lt;tag k=&quot;highway&quot; v=&quot;trunk&quot;/&gt;</font></div><div><font face="monospace, monospace">  &lt;tag k=&quot;name&quot; v=&quot;SP-255 DANIELLE&quot;/&gt;</font></div><div><font face="monospace, monospace">  &lt;tag k=&quot;ref&quot; v=&quot;SP-255&quot;/&gt;</font></div><div><font face="monospace, monospace">  &lt;tag k=&quot;addr:city&quot; v=&quot;BOA ESPERANÇA DO SUL&quot;/&gt;</font></div><div><font face="monospace, monospace">  &lt;tag k=&quot;addr:state&quot; v=&quot;SP&quot;/&gt;</font></div><div><font face="monospace, monospace">  &lt;tag k=&quot;addr:country&quot; v=&quot;Brasil&quot;/&gt;</font></div><div><font face="monospace, monospace"> &lt;/way&gt;</font></div><div><font face="monospace, monospace">&lt;!-- === POLYLINE ROTEAVEL - FIM: SP-255 DANIELLE ======================== --&gt;</font></div><div><font face="monospace, monospace">&lt;/osm&gt;</font><br></div></div><div><br></div><div>Then I ran Splitter on this file and the result was the file &quot;93352150.osm&quot; (attached and compacted), whose content are the lines bellow:<br></div><div><br></div><div><div><font face="monospace, monospace">&lt;?xml version=&#39;1.0&#39; encoding=&#39;UTF-8&#39;?&gt;</font></div><div><font face="monospace, monospace">&lt;osm version=&#39;0.5&#39; generator=&#39;splitter&#39; upload=&#39;false&#39;&gt;</font></div><div><font face="monospace, monospace">&lt;bounds minlat=&#39;-21.895751953125&#39; minlon=&#39;-50.262451171875&#39; maxlat=&#39;-20.401611328125&#39; maxlon=&#39;-47.548828125&#39;/&gt;</font></div><div><font face="monospace, monospace">&lt;node id=&#39;805&#39; lat=&#39;-21.8877920&#39; lon=&#39;-48.2932640&#39;/&gt;</font></div><div><font face="monospace, monospace">&lt;node id=&#39;806&#39; lat=&#39;-21.8674906&#39; lon=&#39;-48.2767485&#39;/&gt;</font></div><div><font face="monospace, monospace">&lt;node id=&#39;804&#39; lat=&#39;-21.8661147&#39; lon=&#39;-48.2756044&#39;/&gt;</font></div><div><font face="monospace, monospace">&lt;way id=&#39;803&#39;&gt;</font></div><div><font face="monospace, monospace">&lt;nd ref=&#39;576&#39;/&gt;</font></div><div><font face="monospace, monospace">&lt;nd ref=&#39;805&#39;/&gt;</font></div><div><font face="monospace, monospace">&lt;nd ref=&#39;806&#39;/&gt;</font></div><div><font face="monospace, monospace">&lt;nd ref=&#39;804&#39;/&gt;</font></div><div><font face="monospace, monospace">&lt;tag k=&#39;highway&#39; v=&#39;trunk&#39;/&gt;</font></div><div><font face="monospace, monospace">&lt;tag k=&#39;name&#39; v=&#39;SP-255 DANIELLE&#39;/&gt;</font></div><div><font face="monospace, monospace">&lt;tag k=&#39;ref&#39; v=&#39;SP-255&#39;/&gt;</font></div><div><font face="monospace, monospace">&lt;tag k=&#39;addr:city&#39; v=&#39;BOA ESPERANÇA DO SUL&#39;/&gt;</font></div><div><font face="monospace, monospace">&lt;tag k=&#39;addr:state&#39; v=&#39;SP&#39;/&gt;</font></div><div><font face="monospace, monospace">&lt;tag k=&#39;addr:country&#39; v=&#39;Brasil&#39;/&gt;</font></div><div><font face="monospace, monospace">&lt;/way&gt;</font></div><div><font face="monospace, monospace">&lt;/osm&gt;</font></div></div><div><br></div><div>Note that in the &quot;93352150.osm&quot; file is missing the node 576 definition (i.e.: <font color="#ff0000" face="monospace, monospace">&lt;node id=&quot;576&quot; lat=&quot;-21.9388623&quot; lon=&quot;-48.3347007&quot; visible=&quot;true&quot; version=&quot;1&quot;/&gt;</font>).<br></div><div>And this is the cause of the lost segment.</div><div><br></div><div>I&#39;m running Splitter in the following way:</div><div><br></div><div><div><font face="monospace, monospace">java -jar splitter.jar </font><span style="font-family:monospace,monospace">--split-file=93352150-Ribeirao_Preto.list</span><span style="font-family:monospace,monospace"> </span><span style="font-family:monospace,monospace">--max-areas=1024 </span><span style="font-family:monospace,monospace">--mixed=true </span><span style="font-family:monospace,monospace">--keep-complete=false </span><span style="font-family:monospace,monospace">--resolution=15 </span><span style="font-family:monospace,monospace">--output=xml 93352150-Ribeirao_Preto.osm</span></div></div><div><br></div><div>The above .list file is attached.</div><div><br></div><div>If this is not a Splitter error, please, let me know what I&#39;m doing wrong.</div><div><br></div><div>Thanks.</div><div><br></div><div>Alexandre</div><div><br></div></div>
<br></div></div>_______________________________________________
mkgmap-dev mailing list
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div>                                               </div></div>
<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="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>
<br>_______________________________________________
mkgmap-dev mailing list
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk" target="_blank">mkgmap-dev@lists.mkgmap.org.uk</a>
<a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div></div></div>                                               </div></div>
<br>_______________________________________________<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" target="_blank">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br></blockquote></div><br></div>