[Geocoding] Nominatim - Reindexing after applying a (daily) diff

Ciprian Talaba cipriantalaba at gmail.com
Sun Jan 3 13:48:14 GMT 2010


H Brian,

On Sun, Jan 3, 2010 at 2:14 PM, Brian Quinion <
openstreetmap at brian.quinion.co.uk> wrote:

> > I have setup my own copy of Nominatim that uses only data for Romania
> > (thanks Brian) which is visible here:
> > http://cipt2001.homeip.net:8765/gazetteer/index.php and now I am trying
> to
> > keep it up to date. I am using daily diffs from the Romanian OSM server
> to
> > update the database using osm2pgsql, and now I am wondering what will be
> the
> > best way to do an update of the indexes. The only solution I have so far
> is
> > to start a new indexing process from scratch, but this is taking some
> time
> > and definitely is not the best strategy.
>
> Have a look at util.update.php. On the main server that script is run
> each night as:
>
> util.update.php --import-daily --import-all --index
>
> It downloads and imports the daily diffs for the main server (shelling
> out to osm2pgsql) and then re-indexes as needed.  On the main server
> it takes around 6 hours to run.  You can probably just change the
> download source and re-use the script as is.
>
>
I tried to use that script as is but I get an error:

Fatal error: Call to undefined function getCmdOpt() in
/home/ctalaba/osm/gazetteer/util.update.php on line 20

I couldn't find where this function is defined, so I will just use part of
the code (the indexing part) as a base for my own script. I will probably
get back on this list with the result, hopefully it will be helpful for
somebody else.

Thanks,
Ciprian
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/geocoding/attachments/20100103/8c6bd167/attachment.html>


More information about the Geocoding mailing list