setup Nominatim for postgis 8.4 on karmic
installing of the name lookup system
http://wiki.openstreetmap.org/wiki/Nominatim
Following these instructions : http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/gazetteer/README.txt
Use a different port!:
/etc/postgresql/8.4/main/postgresql.conf
port = 5532
Problem :
Error: No existing local cluster is suitable as a default target. Please see man pg_wrapper(1) how to specify one.Fix: select the port :
export PGCLUSTER=8.4/localhost:5532
set the default webpage :
vi /var/www/osm2pgsql/gazetteer/website/.htlib/init.php
apt-get install php-pear php-db php-mdb2-driver-pgsql
Test :
http://xhema.flossk.org:8089/osm2pgsql/gazetteer/website/index.php
Get the error :
Please disable magic quotes in your php.ini configuration
vi /etc/php5/apache2/php.ini
; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off
Patch the source to remove the / before the search .
vi .htlib/output/search-html.php
Based on previous instructions,
http://osmopenlayers.blogspot.com/2010/03/postgis-84-on-karmic-ubuntu-debian-gnu.html
createdb -T postgistemplate -O www-data gazetteer
get the data :
wget http://download.geofabrik.de/osm/europe/kosovo.osm.bz2
bunzip2 kosovo.osm.bz2
Import it , using the svn version :
./osm2pgsql -lsc -O gazetteer -C 2000 -d gazetteer -P 5532 -U postgres kosovo.osm
vi import_worldboundaries.sql
change twain to 'www-data'
psql gazetteer -U postgres -f import_worldboundaries.sql
psql gazetteer -U postgres -f import_worldboundaries.sql
psql gazetteer -U postgres -f import_country_name.sql
psql gazetteer -U postgres -f gazetteer-tables.sql
psql gazetteer -U postgres -f gazetteer-functions.sql
psql gazetteer -U postgres -f gazetteer-tables.sql
psql gazetteer -U postgres -f gazetteer-functions.sql
psql gazetteer -U postgres -f gazetteer-loaddata.sql o
psql gazetteer -U postgres -f gazetteer-index.sql
psql gazetteer -U postgres -f import_specialwords.sql
it works :
http://xhema.flossk.org:8089/osm2pgsql/gazetteer/website/search?q=agim&viewbox=-5.21%2C52.21%2C47.54%2C32.61setup Nominatim for postgis 8.4 on karmic
OSMOpenLayers: setup Nominatim for postgis 8.4 on karmic
20 Jun 2010 setup Nominatim for postgis 8.4 on karmic. installing of the name lookup system http://wiki.openstreetmap.org/wiki/Nominatim
OSMOpenLayers: osm railsport on ubuntu karmic
5 May 2010 psql -f /usr/share/postgresql/8.4/contrib/btree_gist.sql Test of External SVG · setup Nominatim for postgis 8.4 on karmic
Build your own OpenStreetMap Server - Ubuntu 10.04 Lucid Lynx
It suggests that what you are seeing in Karmic is: postgresql 8.4 is default .... Set up PostGIS on the [Ubuntu 8.04] postresql database. ..... I suppose I would set up a local instance of the amazing Nominatim, by Twain.
OpenStreetMap Discussion of geocoding ()
6 posts - 4 authorshello, i'am tweaking my installation of nominatim, it's still slow. is ..... for instance do you have both postgresql 8.3 and 8.4 installed? in the process to setup Gazetteer / Nominatim on a Ubuntu karmic Server. numeric values in postgis... michal -- -- michal palenik www.freemap.sk http://wiki.freemap.sk
Free Blog search Gazetteer
19 Jun 2010 OSMOpenLayers: setup Nominatim for postgis 8.4 on karmic. Mike - Links - Datum: Sun, 20 Jun 2010 04:39:00 -0700