logo separator

[mkgmap-dev] how to deal with "Attention: Tile contains both drive-on-left (303) and drive-on-right roads" ?

From Alexis Huxley alexishuxley at gmail.com on Thu Aug 1 12:18:05 BST 2019

Hi Gerd,

Ticker wrote:

> > I forgot to answer one of your previous questions fully: 
> >>        SEVERE (RestrictionRelation): /u/ahux/tmp-
> >> dir/as/38610173.osm.pbf: Turn restriction (no_straight_on)
> >> http://www.openstreetmap.org/relation/9335098 (at 
> >> http://www.openstreetmap.org/?mlat=-6.405884&mlon=106.829270&zoom=17)
> >> via node is not a routing node

Gerd wrote:

> Whenever this message appears it means that there is a severe error in
> mkgmap. 
> @Ticker: If you have sample data that allows to reproduce the problem please
> post a link.

Geofabrik's daily 'asia-latest.osm.pbf' has this problem. I just re-downloaded
from http://download.geofabrik.de/asia-latest.osm.pbf to verify the problem 
is still there, which it is. In case it helps, the checksum of the 
asia-latest.osm.pbf I just tested is:

	$ md5sum download-cache-dir/asia-latest.osm.pbf 
	bae4ea71f6b48366cb21c2cdf5ceda20  download-cache-dir/asia-latest.osm.pbf

Besides the numerous 'Tile contains both drive-on-left and drive-on-right'
messages, which is what I originally posted about, and  which Ticker has 
already explained are not really errors, these are the other errors:

	$ grep SEVERE *.log | grep -v 'Tile contains both drive-on-left'
	SEVERE (RestrictionRelation): 59890171.osm.pbf: Turn restriction (only_straight_on) http://www.openstreetmap.org/relation/9335096 (at http://www.openstreetmap.org/?mlat=-6.442483&mlon=106.830079&zoom=17) via node is not a routing node
	SEVERE (MapFailedException): 59890543.osm.pbf: (thrown in RoadDef.writeRgnOffsets()) Overflow of the NET1. The tile (59890543.osm.pbf) must be split so that there are fewer roads in it
	SEVERE (MapFailedException): 59890570.osm.pbf: (thrown in RoadDef.writeRgnOffsets()) Overflow of the NET1. The tile (59890570.osm.pbf) must be split so that there are fewer roads in it

For the 'Overflow' ones, Ticker already advised me how to split the tiles
up a bit more.

Regading the 'Turn restriction', I've copied the specific tile 59890171.osm.pbf 
to https://datashare.rzg.mpg.de/s/RHEzSLYhNNkPbfb?path=%2Ftmp. 

My splitter and mkgmap command line arguments are:

	java -Xmx380000M -jar splitter.jar --mapid=59890001 --search-limit=1000000 /u/ahux/tmp-dir/as/asia-latest.osm.pbf
	java -Xmx380000M -jar mkgmap.jar --code-page=1252 --latin1 --route --remove-short-arcs --add-pois-to-areas --index --location-autofill=is_in,nearest --tdbfile --mapname=59890001 --family-id=5989 --family-name="OSM_AS" --overview-mapname=as --series-name="OSM Asia (2019 08)" --description="OSM_AS" --bounds=/u/ahux/tmp-dir/as/bounds-latest.zip --precomp-sea=/u/ahux/tmp-dir/as/sea-latest.zip --style-file=/u/ahux/tmp-dir/as/mkgmap/distrib/mkgmap-r4287/examples/styles/default -c template.args

and I'm using:

	$ ls -l ../../download-cache-dir/*.zip
	-rw-r--r-- 2 ahux rzs 1090392991 Aug  1 10:36 ../../download-cache-dir/bounds-latest.zip
	-rw-r--r-- 1 ahux rzs    3401612 Aug  1 11:45 ../../download-cache-dir/mkgmap-r4287.zip
	-rw-r--r-- 2 ahux rzs  224903148 Aug  1 10:36 ../../download-cache-dir/sea-latest.zip
	-rw-r--r-- 1 ahux rzs    1569564 Aug  1 11:45 ../../download-cache-dir/splitter-r592.zip

Hope that helps you to help us! :-) Thanks!


More information about the mkgmap-dev mailing list