Changes between Version 2 and Version 3 of RenderingOsmDataUbuntu
- Timestamp:
- Aug 9, 2011, 12:48:51 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RenderingOsmDataUbuntu
v2 v3 11 11 * OSM data to be downloaded from http://download.geofabrik.de/osm/ 12 12 * Use of "imposm" to load the data in PostGIS: http://imposm.org/ 13 * Map configured in EPSG:900913 projection, with data loaded for the state of Alabama only, and using a Google-like style 13 14 * MapFile generated using "mapserver-utils": http://code.google.com/p/mapserver-utils/ 14 15 * Tile caching using Mod-Geocache (to be renamed MapCache): http://mod-geocache.googlecode.com/ … … 64 65 sudo apt-get install python-virtualenv 65 66 virtualenv venv 66 venv/bin/pip install imposm67 67 }}} 68 68 * Install shapely speedups: … … 71 71 venv/bin/pip install https://github.com/olt/shapely_speedups/tarball/master 72 72 }}} 73 * If we wanted to use the release version of imposm then we'd run the following command, BUT WE DO NOT WANT THAT 74 {{{ 75 # Do not run this command unless you plan to use the release verison of imposm 76 #venv/bin/pip install imposm 77 }}} 78 * Instead we'll use a custom branch of imposm created by tbonfort that creates additional generalized tables for use with mapserver-utils: 79 {{{ 80 hg clone https://bitbucket.org/tbonfort/imposm-tbonfort 81 vi imposm-tbonfort/imposm/defaultmapping.py 82 ... change proj to epsg:900913 (it is set to epsg:4326 bu default) 73 83 84 }}} 74 85 == Create database == 75 86 … … 77 88 * Commands: 78 89 {{{ 79 cd ~/osm-demo/ 80 venv/bin/imposm-psqldb > create-db.sh 90 ~/osm-demo/venv2/bin/python imposm-tbonfort/imposm/psqldb.py > create-db.sh 81 91 vi ./create-db.sh # cross check if all path are set 82 92 ... edit the following lines: … … 91 101 exit 92 102 }}} 103 * Note: If we were using the released version of imposm then the first command would have been: 104 {{{ 105 venv/bin/imposm-psqldb > create-db.sh 106 }}} 107 93 108 94 109 == Load data using imposm == 95 110 111 * Commands: 112 {{{ 113 cd ~/osm-demo/ 114 ~/osm-demo/venv/bin/python imposm-tbonfort/imposm/app.py --read alabama.osm.pbf 115 ~/osm-demo/venv/bin/python imposm-tbonfort/imposm/app.py --write --database osm --host localhost --user osm 116 ~/osm-demo/venv/bin/python imposm-tbonfort/imposm/app.py --optimize -d osm 117 }}}