Opened 6 years ago

Closed 6 years ago

#4815 closed defect (fixed)

reverse.php crashes in bulgaria.osm data (fix included)

Reported by: alon.gingold@… Owned by: geocoding@…
Priority: critical Milestone:
Component: nominatim Version: 1.0
Keywords: Cc:

Description

I've imported bulgaria.osm into a Nominatim VM, and reverse.php with zoom=18 & addressdetails=1 returns a blank page for coordinates in Bulgaria (it works fine on other imports of other countries). After tracing it, I found the problem: inside the Nominatim "functions.sql", there is a type called "addressline". This type has a field called osm_id. This field is defined as INTEGER, but there are locations in Bulgaria (and I'm guessing elsewhere) that the OSM_ID is higher then the maximum INTEGER number.. I changed it to BIGINT, recreated the type and the get_addressdata function which depends on it, and everything is OK. I can see the problem in https://trac.openstreetmap.org/browser/subversion/applications/utils/nominatim/sql/functions.sql

Change History (1)

comment:1 Changed 6 years ago by Sarah Hoffmann

Resolution: fixed
Status: newclosed

This has been already fixed in the latest version on github. You will need to update your VM to the latest development version of Nominatim.

Note: See TracTickets for help on using tickets.