I'll give that a shot - thank you.<br>Quick question - does the first ./utils/setup.php --all also need an xml file only or is pbf ok for it (I assume the latter but thought I'd ask).<br><br>Thanks again, <br>Charles.<br>
<br><div class="gmail_quote">On Thu, Oct 11, 2012 at 2:27 PM, Sarah Hoffmann <span dir="ltr"><<a href="mailto:lonvia@denofr.de" target="_blank">lonvia@denofr.de</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, Oct 11, 2012 at 01:53:01PM -0700, Charles Randall wrote:<br>
> I've setup Nominatim on Centos 5 (64 bit) and went ahead and imported a<br>
> city streetmap file (using ./utils/setup.php --osm-file <file> --all).<br>
> Now I'm trying to install a second osm file.<br>
><br>
> I run :<br>
> ./utils.update.php --import-file <filename><br>
><br>
> I get the following error:<br>
><br>
> /home/palantir/Nominatim/<br>
> osm2pgsql/osm2pgsql -klas -C 2000 -O<br>
> gazetteer -d nominatim /home/palantir/Nominatim/data/osmosischange.osc<br>
> Using projection SRS 4326 (Latlong)<br>
> Allocating memory for dense node cache<br>
> Allocating dense node cache in one big chunk<br>
> Allocating memory for sparse node cache<br>
> Sharing dense sparse<br>
> Node-cache: cache=2000MB, maxblocks=256001*8192, allocation method=11<br>
> Mid: pgsql, scale=10000000 cache=2000<br>
> Setting up table: planet_osm_nodes<br>
> PREPARE insert_node (int8, int4, int4, text[]) AS INSERT INTO<br>
> planet_osm_nodes VALUES ($1,$2,$3,$4);<br>
> PREPARE get_node (int8) AS SELECT lat,lon,tags FROM planet_osm_nodes<br>
> WHERE id = $1 LIMIT 1;<br>
> PREPARE delete_node (int8) AS DELETE FROM planet_osm_nodes WHERE id = $1;<br>
>  failed: ERROR:  relation "planet_osm_nodes" does not exist<br>
> LINE 1: ...rt_node (int8, int4, int4, text[]) AS INSERT INTO planet_osm...<br>
>                                                              ^<br>
><br>
> Error occurred, cleaning up<br>
> osm2pgsql exited with error level 1<br>
><br>
><br>
> I checked postgres and I don't have a planet_osm_nodes table. I assumed<br>
> this would have been setup by the setup.php --all command but that didnt<br>
> work. I've run setup.php with the --create-tables option but no dice.<br>
> Any idea whats up and how I can work around this?<br>
<br>
It looks like you run ./utils/setup.php --import-data on this DB which<br>
unfortunally destroyed the data that you had already imported. So, you<br>
will have to start over again.<br>
<br>
Run ./utils/setup.php --all ... with the first file, then<br>
./utils/update --import-file with any further osm files (these must<br>
be in xml format, not in pbf) and finally ./utils/update --index.<br>
<span class="HOEnZb"><font color="#888888"><br>
Sarah<br>
</font></span></blockquote></div><br>