[Geocoding] update nominatim data
Sarah Hoffmann
lonvia at denofr.de
Sat Feb 1 16:25:17 UTC 2014
Hi,
On Tue, Jan 28, 2014 at 10:36:52AM +0100, mirko perillo wrote:
> Hi,
>
> I want to update data in my nominatim installation (2.1)
>
> So I followed the instructions of nominatim wiki
>
> 1. I create settings/local.php file and I put in it
>
> <?php
> @define('CONST_Replication_Url',
> 'http://download.geofabrik.de/europe/italy-updates');
> @define('CONST_Replication_MaxInterval', '40000'); // Process
> each update separately, osmosis cannot merge multiple updates
> @define('CONST_Replication_Update_Interval', '86400'); // How
> often upstream publishes diffs
> @define('CONST_Replication_Recheck_Interval', '900'); // How long
> to sleep if no update found yet
>
> 2. I move original settings/configuration.txt and settings/state.txt
> and I run
>
> ./utils/setup.php --osmosis-init
>
> (script ended OK and new configuration and state file are created)
>
> 3. I run
>
> ./utils/setup.php --create-functions --enable-diff-updates
>
> (script ended OK)
>
> 4. I run
>
> ./utils/update.php --import-osmosis-all --no-npi
>
> but on screen I see only this message (and nothing more)
>
> WARNING: resetting cache memory to 49
That warning is worrying because osm2pgsql won't get enough cache
memory. Try adding the parameter --osm2pgsql-cache 500
> I checked data and they seems not updated
>
> Can somebody help me ?
You should check the date in settings/state.txt. The updates for the
Geofabrik excerpts are published only once a day. So it might be that
there simply is no data available so far.
Sarah
More information about the Geocoding
mailing list