NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

Hi guys,

I set up my own tile server following this really good tutorial (http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/).

Then I realized that I also wanted to perform geocoding on my database. How can I do that? Adding the gazetteer option when importing data with osm2pgsql? I'd like to keep my configuration (set up by the kakrueger ppa).

Waiting for your help. Thanks!

Lucas

asked 12 Jun '13, 08:22

Kalu06's gravatar image

Kalu06
1407815
accept rate: 0%


Finally I removed everything I installed from the first tutorial and, then, I followed this one (http://wiki.openstreetmap.org/wiki/Nominatim/Installation) to install Nominatim directly instead.

Now I'm running into some problems (I'm importing a really small PBF file for test purpose):

Reanalysing database...
NOTICE:   no notnull values, invalid stats
ANALYZE
Jun 12, 2013 2:41:08 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Osmosis Version 0.40.1
Jun 12, 2013 2:41:08 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Preparing pipeline.
Jun 12, 2013 2:41:08 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Launching pipeline execution.
Jun 12, 2013 2:41:08 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline executing, waiting for completion.
Jun 12, 2013 2:41:08 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Pipeline complete.
Jun 12, 2013 2:41:08 PM org.openstreetmap.osmosis.core.Osmosis run
INFO: Total execution time: 373 milliseconds.
PHP Warning:  file_get_contents(http://www.openstreetmap.org/api/0.6/node/2340848120/1): failed to open stream: Network is unreachable in /home/lucas/src/Nominatim/utils/setup.php on line 524
PHP Notice:  Undefined offset: 1 in /home/lucas/src/Nominatim/utils/setup.php on line 526
PHP Warning:  file_get_contents(http://planet.openstreetmap.org/replication/minute/?C=M;O=D): failed to open stream: Network is unreachable in /home/lucas/src/Nominatim/utils/setup.php on line 531
PHP Notice:  Undefined variable: aRepMatch in /home/lucas/src/Nominatim/utils/setup.php on line 543
PHP Warning:  file_get_contents(http://planet.openstreetmap.org/replication/minute/?C=M;O=D): failed to open stream: Network is unreachable in /home/lucas/src/Nominatim/utils/setup.php on line 544
PHP Notice:  Undefined variable: aRepMatch in /home/lucas/src/Nominatim/utils/setup.php on line 554
PHP Warning:  file_get_contents(http://planet.openstreetmap.org/replication/minute/?C=M;O=D): failed to open stream: Network is unreachable in /home/lucas/src/Nominatim/utils/setup.php on line 555
PHP Notice:  Undefined variable: aRepMatch in /home/lucas/src/Nominatim/utils/setup.php on line 565
Getting state file: http://planet.openstreetmap.org/replication/minute/.state.txt
PHP Warning:  file_get_contents(http://planet.openstreetmap.org/replication/minute/.state.txt): failed to open stream: Network is unreachable in /home/lucas/src/Nominatim/utils/setup.php on line 567
ERROR: unable to obtain state file
unable to obtain state file

Here is the log I get at the end of the import. I tried to modify the open_basedir in the php.ini file but didn't work.

Any idea?

Thanks

permanent link

answered 12 Jun '13, 13:44

Kalu06's gravatar image

Kalu06
1407815
accept rate: 0%

the ".state.txt" in my case was solved by putting this file manually into settings folder of nominatim. if i remember right. it seems like a typo of '.' in filename. because file there is 'state.txt'. i just copied it myself into settings folder and run again the script.

permanent link
This answer is marked "community wiki".

answered 29 Oct '14, 12:02

dima's gravatar image

dima
111
accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×263
×204
×133
×2

question asked: 12 Jun '13, 08:22

question was seen: 8,120 times

last updated: 29 Oct '14, 12:02

NOTICE: help.openstreetmap.org is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum