[Geocoding] Nominatim: Upper bound of FOR loop cannot be null
Sarah Hoffmann
lonvia at denofr.de
Thu Aug 16 07:23:56 BST 2012
Hi Florian,
On Thu, Aug 16, 2012 at 07:25:29AM +0200, Florian Schaetz wrote:
> I re-cloned and recompiled Nominatim, but now, when trying to use the germany.osm.bz2 file, I get an error (after many, many hours):
>
> Nominatim SVN version 1.9-git-8ebc673
>
> Starting indexing rank (0 to 4) using 1 threads
> Starting rank 0
> Done 0 in 0 @ 0.00000 per second - FINISHED
>
> ...etc.
>
> Starting rank 4
> Index_placex: UPDATE failed: ERROR: upper bounds of FOR loop cannot be null
> CONTEXT: PL/pgSQL function "get_osm_rel_members" line 6 at FOR with integer loop variable
> PL/pgSQL function "placex_update" line 314 at FOR over SELECT rows
> ERROR: Error executing external command: /home/system/Nominatim/nominatom/nominatim -I -d nominatim -t 1 -R 4
> ERROR executing external command: /home/system/Nominatim/nominatom/nominatim -I -d nominatim -t 1 -R 4
>
> Would be really glad if someone had an idead what I can do to fix that...
This error normally indicates that something went wrong with the osm2pgsql
import part. The table planet_osm_rels is missing the entries about your
boundary relation.
Could you please confirm that you indeed used the osm2pgsql version
provided in the osm2pgsql subdirectory? If you updated your Nominatim
you might still have an old entry in your settings/local.php that
points to a different, older version of osm2pgsql.
Sarah
More information about the Geocoding
mailing list