[mkgmap-dev] Different routing results using osm vs osm.pbf
From Felix Hartmann extremecarver at gmail.com on Tue Oct 19 20:33:16 BST 2010
On 19.10.2010 21:28, Marko Mäkelä wrote: > 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 > format: > > bzip2 -dc "$OSM_BZ2"| > perl -e \ > 'my $del=0; > while(<>){ > $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. > > Should the pbf format only be used as input for the splitter? Or is the splitter not needed anymore as we move onto osm.pbf??
- Previous message: [mkgmap-dev] Different routing results using osm vs osm.pbf
- Next message: [mkgmap-dev] Different routing results using osm vs osm.pbf
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the mkgmap-dev mailing list