Hi everybody! I have been trying, for days now, to import a set of osm data into nominatim. These data have been manually generated using the JOSM tool. The import seems to work smoothly, but, at the end I get the following output:
And, in the end, nothing is imported even though it seems. A small sample of the data I am trying to import:
Any suggestions ? Anyone ever encountered this same issue ? asked 26 May '16, 10:12 GabBurnout aseerel4c26 ♦ |
Nominatim doesn't index everything with a name (or ref) tag. It looks for places, streets and similar tag combinations. For some tags it uses a positive list of desired values, for others a negative list. That happens in the file output_gazetteer.cpp. You can either change the logic in the process_tags method to treat all electrical lines like places. Or add a tag place=locality to all your data before importing. http://wiki.openstreetmap.org/wiki/Key:place answered 26 May '16, 11:10 mtmail 1
thanks for you reply. I played a bit around with tags, and finally managed to get something, the import was successful, and also some research operation works. Still, it's not how I want yet. I want to have a node representing an hospital, in a specific city (e.g. Gorinchem) in a specific country. This is the node, in the osm file, that I am using:
I also added information relative to the specific address. Basically, I want to be able to perform a research operation that could return me the hospital present in that city, or in that country. As far as I know the query should be:
What am I missing in that node ? Thanks
(27 May '16, 15:22)
GabBurnout
Did you import the city and country as well? The is_in key is a hint but the place still needs to exist in the Nominatim database to create a hierarchy. The query format looks good http://nominatim.openstreetmap.org/search.php?q=the+nederlands+%5Bhospitals%5D Here's a list of all 'special phrases' that can be added to those square brackets. http://wiki.openstreetmap.org/wiki/Nominatim/Special_Phrases after you ran the http://wiki.openstreetmap.org/wiki/Nominatim/Installation#Add_special_phrases step of the installation.
(31 May '16, 02:21)
mtmail
|
Forgot to mention, I am trying to import the data using Nominatim.
Thanks again
I'd compare what's in your data with what's in some data that you can import successfully. I'd specifically look at what enclosing XML tags are in there.
Thank for your answer,
Have tried to remove all the tags, leaving only the name, but the problem persists.
Did the data that you were able to import from some other source have "only the name" in it? If not, try a (small) Nominatim import of some other data, and look at the tags in that.
I used a group of tags directly from the Faroe-islands downloaded from Geofabrik.
Now something is imported. Finally!
It seems to be a tags-related problem.
Where is a list of supported tags for an osm data that Nominatim does not complain about ? And that can be used for searching operations ?
Thanks again