logo separator

[mkgmap-dev] Different routing results using osm vs osm.pbf

From Marko Mäkelä marko.makela at iki.fi on Tue Oct 19 20:28:21 BST 2010

On Tue, Oct 19, 2010 at 04:58:26PM +0200, Carlos Dávila wrote:
>Today geofabrik is offering corrupt excerpts, so I can't
>make further tests by now.

Today geofabrik is only offering *.osm.pbf files, no *.osm.bz2 files.

Do you have any suggestion how to implement the following with the PBF 

bzip2 -dc "$OSM_BZ2"|
perl -e \
'my $del=0;
     $del=1 if (/<relation.* version="1".* user="usm78-gis"/);
     s/(<node id="28954644".*lat=)"60\.51564"/$1"59.326172"/;
     s/(<node id="29193143".*lon=)"24\.12826"/$1"19.072266"/;
     print unless $del;
     $del=0 if m|</relation>|;
tee "$OSM"|
$JAVACMD $JAVACMD_OPTIONS -jar splitter.jar --split-file=areas.list

Above, I remove some multipolygons in Russia (mostly broken ones) and 
move two coastline endpoints for generate-sea. That is done before 
splitting the map extract. I guess I could do this within the tiles, but 
it would get a little tricky.

I guess I might want to preserve the *.osm format, or I would want 
mkgmap to produce multiple map sets from one parsing run. It seems that 
running mkgmap --style=routes on finland.osm.pbf is several times slower 
than running it on finland.osm.


More information about the mkgmap-dev mailing list