[DebianGIS-dev] r1193 - packages/gpsdrive/trunk/debian

nd-guest at alioth.debian.org nd-guest at alioth.debian.org
Mon Oct 15 19:31:58 UTC 2007


Author: nd-guest
Date: 2007-10-15 19:31:58 +0000 (Mon, 15 Oct 2007)
New Revision: 1193

Modified:
   packages/gpsdrive/trunk/debian/README.Debian
Log:
* gpsdrive with mapnik howto


Modified: packages/gpsdrive/trunk/debian/README.Debian
===================================================================
--- packages/gpsdrive/trunk/debian/README.Debian	2007-10-15 18:21:27 UTC (rev 1192)
+++ packages/gpsdrive/trunk/debian/README.Debian	2007-10-15 19:31:58 UTC (rev 1193)
@@ -1,7 +1,37 @@
 gpsdrive for Debian
 -------------------
 
+Using gpsdrive with mapnik
+---------------------------
+* Install osm2pgsql and postgresql-8.2-postgis if not already done.
+    aptitude install osm2pgsql postgresql-8.2-postgis
+* Download a OpenStreetmap planet file from http://planet.openstreetmap.org/,
+    wget http://planet.openstreetmap.org/planet-latest.osm.bz2
+* Set up postgresql:
+    sudo -u postgres createuser -Upostgres -S -D -R `whoami`
+    sudo -u postgres createdb -Upostgres -EUNICODE gis
+    echo GRANT ALL ON SCHEMA PUBLIC TO `whoami` | sudo -u postgres psql -Upostgres gis
+    sudo -u postgres createlang -Upostgres plpgsql gis
+    sudo -u postgres psql gis < /usr/share/postgresql-8.2-postgis/lwpostgis.sql
+    echo GRANT ALL ON geometry_columns TO `whoami` | sudo -u postgres psql -Upostgres gis
+    echo GRANT ALL ON spatial_ref_sys  TO `whoami` | sudo -u postgres psql -Upostgres gis
+* Import planet.osm (this may take a long time).
+    osm2pgsql -v planet-latest.osm.bz2
+* Gpsdrive should now be usable with mapnik. Simply enable the mapnik checkbox in the 
+  gpsdrive sidebar menu.
+* For world boundaries (e.g. not just street data) please do the following:
+    wget http://artem.dev.openstreetmap.org/files/world_boundaries.tar.bz2
+    sudo tar xjvf  world_boundaries.tar.bz2 -C /usr/share/gpsdrive/mapnik
+
+If you use a different database setup or path for the world boundaries you may 
+need to edit ~/.gpsdrive/osm.xml to reflect your changes.
+Replace `whoami` in above commands with your username if you create the database 
+with a different account.
+
+ -- Andreas Putzo <andreas at putzo.net> Wed Oct 15 20:06:28 CEST 2007
+
 All scripts installed by gpsdrive has been renamed to a version without language extension,
     e.g. /usr/bin/gpsfetchmap.pl has been renamed to /usr/bin/gpsfetchmap.
     
  -- Andreas Putzo <andreas at putzo.net> Wed Jul 18 16:18:55 CEST 2007
+




More information about the Pkg-grass-devel mailing list