| 187 | |
| 188 | == OpenStreetMap == |
| 189 | OpenStreetMap data can be stored in a PostGIS database & rendered using Mapnik |
| 190 | === Osm2pgsql === |
| 191 | * http://wiki.openstreetmap.org/wiki/Osm2pgsql |
| 192 | {{{ |
| 193 | apt-get install osm2pgsql |
| 194 | }}} |
| 195 | or |
| 196 | {{{ |
| 197 | apt-get install build-essential libxml2-dev libgeos-dev libpq-dev libbz2-dev proj autoconf subversion |
| 198 | svn export http://svn.openstreetmap.org/applications/utils/export/osm2pgsql/ |
| 199 | cd osm2pgsql |
| 200 | ./autogen.sh |
| 201 | ./configure |
| 202 | sed -i 's/-g -O2/-O2 -march=native -fomit-frame-pointer/' Makefile |
| 203 | make |
| 204 | }}} |
| 205 | |
| 206 | Download area of interest, e.g.: |
| 207 | {{{ |
| 208 | wget http://downloads.cloudmade.com/north_america/haiti/haiti.osm.bz2 |
| 209 | bunzip2 haiti.osm.bz2 |
| 210 | }}} |
| 211 | === Mapnik === |
| 212 | * http://wiki.openstreetmap.org/wiki/Mapnik |
| 213 | === Contours === |
| 214 | * http://wiki.openstreetmap.org/wiki/Contours |