Hi All,<div>I think this has been asked before, but I have not managed to find the answer, sorry!</div><div><br></div><div>I am trying to maintain an up-to date database of the UK for mapnik rendering. I have had it working fine previously using daily diffs, but am trying to get minutely updates going using osmosis using the recipe in <a href="http://wiki.openstreetmap.org/wiki/Minutely_Mapnik">Minutely Mapnik</a>.</div>
<div><br></div><div>The thing I changed from that recipe was to add a bounding box to osm2pgsql to (I hope) strip out the changes outside of my area.</div><div>To get things up to date quickly, I set maxInterval to zero in configuration.txt.</div>
<div>It took a while (couple of days) - little virtual machine, but now it has finished my database seems to be huge - 11GB compared to the one (on a different computer) of the UK which is 5GB. 'vacuum' did not make any difference.</div>
<div><br></div><div>Is there a trick I am missing to do the bounding box extraction correctly?</div><div>The simple script I used to do the processing is below.</div><div><br></div><div>Thanks</div><div><br></div><div>Graham.</div>
<div><br></div><div><meta http-equiv="content-type" content="text/html; charset=utf-8"><div>#!/bin/sh</div><div>WORKDIR_OSM=/usr/local/OSM/db_workdir</div><div>cd $WORKDIR_OSM</div><div>osmosis --read-replication-interval workingDirectory=$WORKDIR_OSM --simplify-change --write-xml-change changes.osc.gz</div>
<div>osm2pgsql --append -d gis -m -s -S ~/default.style --bbox -11,49.5,2,61 changes.osc.gz </div></div><div><br>-- <br>Graham Jones<div>Hartlepool, UK.</div><br>
</div>