Changes between Version 18 and Version 19 of RenderingOsmDataUbuntu


Ignore:
Timestamp:
Sep 9, 2011, 11:05:20 AM (13 years ago)
Author:
aboudreault
Comment:

Updated doc for MapCache

Legend:

Unmodified
Added
Removed
Modified
  • RenderingOsmDataUbuntu

    v18 v19  
    1313 * Map configured in EPSG:900913 projection, with data loaded for the state of Alabama only, and using a Google-like style
    1414 * MapFile generated using "mapserver-utils": http://code.google.com/p/mapserver-utils/
    15  * Tile caching using Mod-Geocache (to be renamed MapCache):  http://mod-geocache.googlecode.com/
     15 * Tile caching using MapCache:  http://mod-geocache.googlecode.com/ (change doc url)
    1616
    1717== Create work directory ==
     
    173173}}}
    174174
    175 == Setup Mod-Geocache ==
    176  * Relevant docs: http://mod-geocache.googlecode.com/svn/trunk/INSTALL
     175== Setup MapCache ==
     176 * Relevant docs: http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapcache/INSTALL
    177177 * Required packages:
    178178{{{
    179   sudo apt-get install autoconf
    180   sudo apt-get install apache2-dev
    181   sudo apt-get install libcairo2-dev
     179  sudo apt-get install autoconf apache2-dev libcairo2-dev libcurl4-openssl-dev
    182180}}}
    183181 * Checkout and build source:
    184182{{{
    185   svn checkout http://mod-geocache.googlecode.com/svn/trunk/ mod-geocache-svn-ro
    186   cd mod-geocache-svn-ro/
     183  svn checkout https://svn.osgeo.org/mapserver/trunk/mapserver/mapcache mapcache-svn
     184  cd mapcache-svn
    187185  autoconf
    188186  ./configure
     
    192190  sudo apache2ctl restart 
    193191}}}
    194  * Create our own geocache-osm.xml based on docs in sample geocache.xml (http://mod-geocache.googlecode.com/svn/trunk/geocache.xml) or in pretty print at http://code.google.com/p/mod-geocache/source/browse/trunk/geocache.xml
    195 {{{
    196   mkdir ~/osm-demo/geocache
    197   cp ~/osm-demo/mod-geocache-svn-ro/geocache.xml ~/osm-demo/geocache/geocache-osm.xml
    198   vi ~/osm-demo/geocache/geocache-osm.xml
     192 * Create our own mapcache-osm.xml based on docs in sample mapcache.xml (http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapcache/mapcache.xml)
     193{{{
     194  mkdir ~/osm-demo/mapcache
     195  cp ~/osm-demo/mapcache-svn/mapcache.xml ~/osm-demo/mapcache/mapcache-osm.xml
     196  vi ~/osm-demo/mapcache/mapcache-osm.xml
    199197... make required changes to template to make it work with our installation:
    200198
    201199  <cache name="disk" type="disk">
    202200...
    203        <base>/path/to/osm-demo/geocache/cache</base>
     201       <base>/opt/osm-demo/mapcache/cache</base>
    204202
    205203...
     
    233231 * Create 'cache' directory writable by Apache (www-data) user
    234232{{{
    235   mkdir ~/osm-demo/geocache/cache
    236   sudo chown www-data ~/osm-demo/geocache/cache/
     233  mkdir ~/osm-demo/mapcache/cache
     234  sudo chown www-data ~/osm-demo/mapcache/cache/
    237235}}}
    238236 * Add directives to Apache config:
     
    241239... add the following lines to the end of the default VirtualHost (update the '/path/to/' directory name):
    242240
    243   <IfModule geocache_module>
    244     GeoCacheAlias /geocache "/path/to/osm-demo/geocache/geocache-osm.xml"
     241  <IfModule mapcache_module>
     242    MapCacheAlias /mapcache "/path/to/osm-demo/mapcache/mapcache-osm.xml"
    245243  </IfModule>
    246244
     
    252250
    253251 * Ready to test server, see URL docs at http://code.google.com/p/mod-geocache/wiki/RequestingTilesFromService#TMS_service
    254  * TMS service available at http://yourserver.tld/geocache/tms/1.0.0/
    255    * Sample tile:  http://yourserver.tld/geocache/tms/1.0.0/osm@g/3/2/5.png
     252 * TMS service available at http://yourserver.tld/mapcache/tms/1.0.0/
     253   * Sample tile:  http://yourserver.tld/mapcache/tms/1.0.0/osm@g/3/2/5.png
    256254 * Test using the sample OpenLayers app to test TMS: http://openlayers.org/dev/examples/tms.html
    257    * URL of TMS (Should end in /): http://yourserver.tld/geocache/tms/
     255   * URL of TMS (Should end in /): http://yourserver.tld/mapcache/tms/
    258256   * layer_name: osm@g
    259257   * Format: PNG