H Brian, On Sun, Jan 3, 2010 at 2:14 PM, Brian Quinion < [email protected]> 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
_______________________________________________ Geocoding mailing list [email protected] http://lists.openstreetmap.org/listinfo/geocoding

