logo separator

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

From Gerd Petermann gpetermann_muenchen at hotmail.com on Sat May 30 09:43:30 BST 2015

Hi Alexandre,

I don't have much time to analyse your data today.
I think splitter assumes that the tile boundaries 
are 
"multiples of 0x200 map units wide and high"
when you use resolution=15.

Since you use keep-complete=false you have to watch
the overlap value.
You can use a larger overlap value like 10000 to fix this problem.

Gerd


Date: Fri, 29 May 2015 22:04:34 -0300
From: alexandre.loss at gmail.com
To: mkgmap-dev at lists.mkgmap.org.uk
Subject: [mkgmap-dev] Splitter problem: losing a track segment

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:



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


_______________________________________________
mkgmap-dev mailing list
mkgmap-dev at lists.mkgmap.org.uk
http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mkgmap.org.uk/pipermail/mkgmap-dev/attachments/20150530/cfc2f5e8/attachment.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/20150530/cfc2f5e8/attachment.png>


More information about the mkgmap-dev mailing list