logo separator

[mkgmap-dev] Finland with almost-working generate-sea

From Marko Mäkelä marko.makela at iki.fi on Tue Mar 9 19:20:29 GMT 2010

On Tue, Mar 09, 2010 at 06:51:44PM +0100, Clinton Gladstone wrote:
> You should disable date parsing (enableDateParsing=no); this
> considerably speeds up Osmosis.
> 
> See further discussion here:
> 
> http://wiki.openstreetmap.org/wiki/Osmosis/Examples
> 
> I regularly take the entire Geofabrik extract of Europe and extract a
> bounding-box containing all of Germany.

Have you been able to make it utilize all cores? I have a dual-core computer,
and java is eating only one CPU.  Apparently, the bzip2 is already done.
Here is what I tried:

OSM=finland.osm.bz2
OSM_COAST=finland-augmented-coastline.osm.bz2

BB="--bb completeRelations=yes completeWays=yes"
LR="left=19.1162109375 right=31.5966796875"
bzip2 -dc $OSM |
osmosis --rx /dev/stdin --sort --rx enableDateParsing=no $OSM_COAST \
--merge --buffer bufferCapacity=1000 --tee outputCount=4 \
$BB $LR bottom=59.4140625 top=61.50146484375 --wx 63240001.osm.gz \
$BB $LR bottom=61.50146484375 top=62.578125 --wx 63240002.osm.gz \
$BB $LR bottom=62.578125 top=64.8193359375 --wx 63240003.osm.gz \
$BB $LR bottom=64.8193359375 top=70.0927734375 --wx 63240004.osm.gz

The --buffer is making no difference.  After 15 minutes, all *.osm.gz
files are at 10 bytes, and the bzip2 process finished already in about
5 minutes.

According to http://wiki.openstreetmap.org/wiki/Osmosis/Detailed_Usage
disabling the date parsing should not make a big difference.  I agree;
both --merge and extracting natural=coastline have been relatively fast.

Are you extracting the bounding box with completeRelations=yes
completeWays=yes?

	Marko



More information about the mkgmap-dev mailing list