More explicit documentation.

stable
Frederic Daniel Luc Lehobey 2009-12-20 23:03:49 +01:00
rodzic 5e7028e0bb
commit 0a4e3b220c
1 zmienionych plików z 15 dodań i 11 usunięć

26
INSTALL
Wyświetl plik

@ -1,8 +1,10 @@
OCitySmap installation instructions OCitySMap installation instructions
=================================== ===================================
These instructions refer to Debian/Ubuntu packages. For other These instructions refer to software dependencies by using
distributions, minor adaptations might be needed. Debian/Ubuntu package names. Minor adaptations might be needed for
other distributions or for the precise Debian or Ubuntu release you
are using (here respectively Lenny and Intrepid or Jaunty).
1. Installation of PostgreSQL and PostGIS 1. Installation of PostgreSQL and PostGIS
@ -24,7 +26,7 @@ distributions, minor adaptations might be needed.
psql -h localhost -U maposmatic maposmatic psql -h localhost -U maposmatic maposmatic
If it doesn't work, fix your configuration If it doesn't work, fix your configuration.
4. Enable PostGIS on the database 4. Enable PostGIS on the database
@ -89,8 +91,11 @@ distributions, minor adaptations might be needed.
d. Install d. Install
Just copy the osm2pgsql binary somewhere in your PATH Just copy the osm2pgsql binary somewhere in your PATH or link to
it like:
ln -s /path/to/osm2pgsql/osm2pgsql /usr/local/bin/osm2pgsql
6. Import the Google spatial referential system 6. Import the Google spatial referential system
The osm2pgsql tool creates data in the PostGIS database relative The osm2pgsql tool creates data in the PostGIS database relative
@ -106,9 +111,7 @@ distributions, minor adaptations might be needed.
7. Download the OSM data 7. Download the OSM data
For the moment OCitySMap only supports France (contributors are We give the example for France.
welcome to adapt the few parts of OCitySMap that are
country-specific).
wget http://download.geofabrik.de/osm/europe/france.osm.bz2 wget http://download.geofabrik.de/osm/europe/france.osm.bz2
@ -119,12 +122,13 @@ distributions, minor adaptations might be needed.
-H localhost france.osm.bz2 -H localhost france.osm.bz2
If you have a lot of RAM, remove '-s', it will make the import If you have a lot of RAM, remove '-s', it will make the import
faster. faster. If you miss RAM (and have a lot of time available) you can
also use the '-C' option together with '-s'. (See osm2pgsql -h).
9. Install Mapnik 9. Install Mapnik
We used Mapnik 0.6.1, which is not yet available in Debian/Ubuntu, We used Mapnik 0.6.1, which is not yet available in stable
so we compiled it from source. Debian/Ubuntu, so we compiled it from source.
a. Install the dependencies a. Install the dependencies