Changes between Version 2 and Version 3 of RenderingOsmDataUbuntu


Ignore:
Timestamp:
Aug 9, 2011, 12:48:51 PM (13 years ago)
Author:
dmorissette
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • RenderingOsmDataUbuntu

    v2 v3  
    1111 * OSM data to be downloaded from http://download.geofabrik.de/osm/
    1212 * 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
    1314 * MapFile generated using "mapserver-utils": http://code.google.com/p/mapserver-utils/
    1415 * Tile caching using Mod-Geocache (to be renamed MapCache):  http://mod-geocache.googlecode.com/
     
    6465  sudo apt-get install python-virtualenv
    6566  virtualenv venv
    66   venv/bin/pip install imposm
    6767}}}
    6868 * Install shapely speedups:
     
    7171  venv/bin/pip install https://github.com/olt/shapely_speedups/tarball/master
    7272}}}
     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)
    7383
     84}}}
    7485== Create database ==
    7586
     
    7788 * Commands:
    7889{{{
    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
    8191  vi ./create-db.sh # cross check if all path are set
    8292... edit the following lines:
     
    91101  exit
    92102}}}
     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
    93108
    94109== Load data using imposm ==
    95110
     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}}}