71 | | venv/bin/pip install https://github.com/olt/shapely_speedups/tarball/master |
72 | | }}} |
73 | | * IMPORTANT: We will use a custom branch of imposm created by tbonfort that creates additional generalized tables for use with mapserver-utils: |
74 | | {{{ |
75 | | hg clone https://bitbucket.org/tbonfort/imposm-tbonfort |
76 | | vi imposm-tbonfort/imposm/defaultmapping.py |
77 | | ... change proj to epsg:900913 (it is set to epsg:4326 by default) |
78 | | }}} |
79 | | * Install impost inside our python venv: |
80 | | {{{ |
81 | | cd imposm-tbonfort/ |
82 | | ~/osm-demo/venv/bin/python setup.py install |
83 | | }}} |
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: |
85 | | {{{ |
86 | | # Do not run this command unless you plan to use the release version of imposm |
87 | | #venv/bin/pip install imposm |
88 | | }}} |
89 | | |
90 | | * TODO: Verify if released version of imposm includes all required tables and views, and when it does update these instructions to avoid using the custom branch. |
| 72 | pip install https://github.com/olt/shapely_speedups/tarball/master |
| 73 | }}} |
| 74 | * Install imposm: |
| 75 | Note that up until recently imposm did not create the generalized tables used by the mapserver-utils mapfile. Since version 2.3.0 this is not the case anymore, so there is no need |
| 76 | to install a forked version of imposm as was the case in the first versions of this document |
| 77 | {{{ |
| 78 | pip install imposm |
| 79 | }}} |