<div dir="ltr">Hi Gerd,<div><br></div><div>I already made a previous analysis before to change my generator. Well, it's possible, but I practically have to rebuild the generator entirely.</div><div>So, I understood that you said that it's better solution but not a "must" 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"><<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>></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'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"><<a href="mailto:alexandre.loss@gmail.com" target="_blank">alexandre.loss@gmail.com</a>></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'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"><<a href="mailto:gpetermann_muenchen@hotmail.com" target="_blank">gpetermann_muenchen@hotmail.com</a>></span>:<br><blockquote style="border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr">Hi Alexandre,<br><br>I don't have much time to analyse your data today.<br>I think splitter assumes that the tile boundaries <br>are <br>"multiples of 0x200 map units wide and high"<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'm facing a problem in one of my maps, that is probably might be happening in other places where I didn'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 "93352150-Ribeirao_Preto.osm" attached, containing only this:<br></div><div><br></div><div><div><font face="monospace, monospace"><?xml version="1.0" encoding="UTF-8"?></font></div><div><font face="monospace, monospace"><osm version="0.6" generator="TSuite 6.6.0.4"></font></div><div><font face="monospace, monospace"><!-- === POLYLINE ROTEAVEL - INICIO: SP-255 DANIELLE ======================== --><br></font></div><div><font face="monospace, monospace"> <font color="#ff0000"><node id="576" lat="-21.9388623" lon="-48.3347007" visible="true" version="1"/></font></font></div><div><font face="monospace, monospace"> <node id="805" lat="-21.8877920" lon="-48.2932640" visible="true" version="1"/></font></div><div><font face="monospace, monospace"> <node id="806" lat="-21.8674906" lon="-48.2767485" visible="true" version="1"/></font></div><div><font face="monospace, monospace"> <node id="804" lat="-21.8661147" lon="-48.2756044" visible="true" version="1"/></font></div><div><font face="monospace, monospace"> <way id="803" visible="true" version="1"></font></div><div><font face="monospace, monospace"> <nd ref="576"/></font></div><div><font face="monospace, monospace"> <nd ref="805"/></font></div><div><font face="monospace, monospace"> <nd ref="806"/></font></div><div><font face="monospace, monospace"> <nd ref="804"/></font></div><div><font face="monospace, monospace"> <tag k="highway" v="trunk"/></font></div><div><font face="monospace, monospace"> <tag k="name" v="SP-255 DANIELLE"/></font></div><div><font face="monospace, monospace"> <tag k="ref" v="SP-255"/></font></div><div><font face="monospace, monospace"> <tag k="addr:city" v="BOA ESPERANÇA DO SUL"/></font></div><div><font face="monospace, monospace"> <tag k="addr:state" v="SP"/></font></div><div><font face="monospace, monospace"> <tag k="addr:country" v="Brasil"/></font></div><div><font face="monospace, monospace"> </way></font></div><div><font face="monospace, monospace"><!-- === POLYLINE ROTEAVEL - FIM: SP-255 DANIELLE ======================== --></font></div><div><font face="monospace, monospace"></osm></font><br></div></div><div><br></div><div>Then I ran Splitter on this file and the result was the file "93352150.osm" (attached and compacted), whose content are the lines bellow:<br></div><div><br></div><div><div><font face="monospace, monospace"><?xml version='1.0' encoding='UTF-8'?></font></div><div><font face="monospace, monospace"><osm version='0.5' generator='splitter' upload='false'></font></div><div><font face="monospace, monospace"><bounds minlat='-21.895751953125' minlon='-50.262451171875' maxlat='-20.401611328125' maxlon='-47.548828125'/></font></div><div><font face="monospace, monospace"><node id='805' lat='-21.8877920' lon='-48.2932640'/></font></div><div><font face="monospace, monospace"><node id='806' lat='-21.8674906' lon='-48.2767485'/></font></div><div><font face="monospace, monospace"><node id='804' lat='-21.8661147' lon='-48.2756044'/></font></div><div><font face="monospace, monospace"><way id='803'></font></div><div><font face="monospace, monospace"><nd ref='576'/></font></div><div><font face="monospace, monospace"><nd ref='805'/></font></div><div><font face="monospace, monospace"><nd ref='806'/></font></div><div><font face="monospace, monospace"><nd ref='804'/></font></div><div><font face="monospace, monospace"><tag k='highway' v='trunk'/></font></div><div><font face="monospace, monospace"><tag k='name' v='SP-255 DANIELLE'/></font></div><div><font face="monospace, monospace"><tag k='ref' v='SP-255'/></font></div><div><font face="monospace, monospace"><tag k='addr:city' v='BOA ESPERANÇA DO SUL'/></font></div><div><font face="monospace, monospace"><tag k='addr:state' v='SP'/></font></div><div><font face="monospace, monospace"><tag k='addr:country' v='Brasil'/></font></div><div><font face="monospace, monospace"></way></font></div><div><font face="monospace, monospace"></osm></font></div></div><div><br></div><div>Note that in the "93352150.osm" file is missing the node 576 definition (i.e.: <font color="#ff0000" face="monospace, monospace"><node id="576" lat="-21.9388623" lon="-48.3347007" visible="true" version="1"/></font>).<br></div><div>And this is the cause of the lost segment.</div><div><br></div><div>I'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'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>