logo separator

[mkgmap-dev] Splitter problem: losing a track segment

From Alexandre Loss alexandre.loss at gmail.com on Sat May 30 02:04:34 BST 2015

Hi guys,

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.
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:

[image: Imagem inline 2]

So I started to analyze the problem step-by-step till find that the problem
was generated by Splitter (last version).

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:

<?xml version="1.0" encoding="UTF-8"?>
<osm version="0.6" generator="TSuite 6.6.0.4">
<!-- === POLYLINE ROTEAVEL - INICIO: SP-255 DANIELLE
======================== -->
 <node id="576" lat="-21.9388623" lon="-48.3347007" visible="true"
version="1"/>
 <node id="805" lat="-21.8877920" lon="-48.2932640" visible="true"
version="1"/>
 <node id="806" lat="-21.8674906" lon="-48.2767485" visible="true"
version="1"/>
 <node id="804" lat="-21.8661147" lon="-48.2756044" visible="true"
version="1"/>
 <way id="803" visible="true" version="1">
  <nd ref="576"/>
  <nd ref="805"/>
  <nd ref="806"/>
  <nd ref="804"/>
  <tag k="highway" v="trunk"/>
  <tag k="name" v="SP-255 DANIELLE"/>
  <tag k="ref" v="SP-255"/>
  <tag k="addr:city" v="BOA ESPERANÇA DO SUL"/>
  <tag k="addr:state" v="SP"/>
  <tag k="addr:country" v="Brasil"/>
 </way>
<!-- === POLYLINE ROTEAVEL - FIM: SP-255 DANIELLE ========================
-->
</osm>

Then I ran Splitter on this file and the result was the file "93352150.osm"
(attached and compacted), whose content are the lines bellow:

<?xml version='1.0' encoding='UTF-8'?>
<osm version='0.5' generator='splitter' upload='false'>
<bounds minlat='-21.895751953125' minlon='-50.262451171875'
maxlat='-20.401611328125' maxlon='-47.548828125'/>
<node id='805' lat='-21.8877920' lon='-48.2932640'/>
<node id='806' lat='-21.8674906' lon='-48.2767485'/>
<node id='804' lat='-21.8661147' lon='-48.2756044'/>
<way id='803'>
<nd ref='576'/>
<nd ref='805'/>
<nd ref='806'/>
<nd ref='804'/>
<tag k='highway' v='trunk'/>
<tag k='name' v='SP-255 DANIELLE'/>
<tag k='ref' v='SP-255'/>
<tag k='addr:city' v='BOA ESPERANÇA DO SUL'/>
<tag k='addr:state' v='SP'/>
<tag k='addr:country' v='Brasil'/>
</way>
</osm>

Note that in the "93352150.osm" file is missing the node 576 definition
(i.e.: <node id="576" lat="-21.9388623" lon="-48.3347007" visible="true"
version="1"/>).
And this is the cause of the lost segment.

I'm running Splitter in the following way:

java -jar splitter.jar --split-file=93352150-Ribeirao_Preto.list
--max-areas=1024 --mixed=true --keep-complete=false --resolution=15
--output=xml 93352150-Ribeirao_Preto.osm

The above .list file is attached.

If this is not a Splitter error, please, let me know what I'm doing wrong.

Thanks.

Alexandre
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150529/f2b33f96/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 9577 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150529/f2b33f96/attachment-0001.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 93352150-Ribeirao_Preto.osm
Type: application/octet-stream
Size: 916 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150529/f2b33f96/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 93352150.osm.gz
Type: application/x-gzip
Size: 367 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150529/f2b33f96/attachment-0001.gz>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 93352150-Ribeirao_Preto.list
Type: application/octet-stream
Size: 118 bytes
Desc: not available
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150529/f2b33f96/attachment-0003.obj>


More information about the mkgmap-dev mailing list