Changes between Version 9 and Version 10 of RenderingOsmDataUbuntu
- Timestamp:
- Aug 11, 2011, 12:43:41 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RenderingOsmDataUbuntu
v9 v10 56 56 57 57 * Relevant docs: http://imposm.org/docs/imposm/latest/install.html 58 * Commands:58 * Install dependencies and create python virtual env: 59 59 {{{ 60 60 cd ~/osm-demo/ … … 77 77 ... change proj to epsg:900913 (it is set to epsg:4326 bu default) 78 78 }}} 79 * Install impost inside our python venv: 80 {{{ 81 cd imposm-tbonfort/ 82 ~/osm-demo/venv/bin/python setup.py install 83 }}} 79 84 * If we wanted to use the release version of imposm instead then we'd have run the following command, BUT WE DO NOT WANT THAT... this command included here only for reference: 80 85 {{{ … … 90 95 * Commands: 91 96 {{{ 92 ~/osm-demo/venv/bin/python imposm-tbonfort/imposm/psqldb.py> create-db.sh93 vi ./create-db.sh # cross check if all path are set 97 venv/bin/imposm-psqldb > create-db.sh 98 vi ./create-db.sh # cross check if all path are set properly 94 99 ... edit the following lines: 95 100 -------------------8<-------------- 96 psql -d osm -f /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql # <- CH ANGETHIS PATH97 psql -d osm -f /usr/share/postgresql/8.4/contrib/postgis-1.5/spatial_ref_sys.sql # <- CH ANGETHIS PATH101 psql -d osm -f /usr/share/postgresql/8.4/contrib/postgis-1.5/postgis.sql # <- CHECK THIS PATH 102 psql -d osm -f /usr/share/postgresql/8.4/contrib/postgis-1.5/spatial_ref_sys.sql # <- CHECK THIS PATH 98 103 ------------------->8-------------- 99 104 … … 103 108 exit 104 109 }}} 105 * Note: If we were using the released version of imposm then the first command would have been:106 {{{107 venv/bin/imposm-psqldb > create-db.sh108 }}}109 110 110 111 … … 115 116 {{{ 116 117 cd ~/osm-demo/ 117 ~/osm-demo/venv/bin/python imposm-tbonfort/imposm/app.py --read alabama.osm.pbf 118 ~/osm-demo/venv/bin/python imposm-tbonfort/imposm/app.py --write --database osm --host localhost --user osm 118 ~/osm-demo/venv/bin/imposm --read alabama.osm.pbf 119 ~/osm-demo/venv/bin/imposm --write --database osm --host localhost --user osm 120 (... if prompted for db password, the default is osm) 119 121 ~/osm-demo/venv/bin/python imposm-tbonfort/imposm/app.py --optimize -d osm 120 122 }}}