Skip to content
This repository has been archived by the owner on Jul 24, 2021. It is now read-only.

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

Closed
openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment
Closed

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

openstreetmap-trac opened this issue Jul 23, 2021 · 1 comment

Comments

@openstreetmap-trac
Copy link

Reporter: alon.gingold[at]gmail.com
[Submitted to the original trac issue database at 5.10pm, Saturday, 23rd March 2013]

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

@openstreetmap-trac
Copy link
Author

Author: lonvia
[Added to the original trac issue at 5.57pm, Sunday, 24th March 2013]

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant