Changes between Version 18 and Version 19 of RenderingOsmDataUbuntu
- Timestamp:
- Sep 9, 2011, 11:05:20 AM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
RenderingOsmDataUbuntu
v18 v19 13 13 * Map configured in EPSG:900913 projection, with data loaded for the state of Alabama only, and using a Google-like style 14 14 * MapFile generated using "mapserver-utils": http://code.google.com/p/mapserver-utils/ 15 * Tile caching using M od-Geocache (to be renamed MapCache): http://mod-geocache.googlecode.com/15 * Tile caching using MapCache: http://mod-geocache.googlecode.com/ (change doc url) 16 16 17 17 == Create work directory == … … 173 173 }}} 174 174 175 == Setup M od-Geocache ==176 * Relevant docs: http:// mod-geocache.googlecode.com/svn/trunk/INSTALL175 == Setup MapCache == 176 * Relevant docs: http://trac.osgeo.org/mapserver/browser/trunk/mapserver/mapcache/INSTALL 177 177 * Required packages: 178 178 {{{ 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 182 180 }}} 183 181 * Checkout and build source: 184 182 {{{ 185 svn checkout http ://mod-geocache.googlecode.com/svn/trunk/ mod-geocache-svn-ro186 cd m od-geocache-svn-ro/183 svn checkout https://svn.osgeo.org/mapserver/trunk/mapserver/mapcache mapcache-svn 184 cd mapcache-svn 187 185 autoconf 188 186 ./configure … … 192 190 sudo apache2ctl restart 193 191 }}} 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.xml195 {{{ 196 mkdir ~/osm-demo/ geocache197 cp ~/osm-demo/m od-geocache-svn-ro/geocache.xml ~/osm-demo/geocache/geocache-osm.xml198 vi ~/osm-demo/ geocache/geocache-osm.xml192 * 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 199 197 ... make required changes to template to make it work with our installation: 200 198 201 199 <cache name="disk" type="disk"> 202 200 ... 203 <base>/ path/to/osm-demo/geocache/cache</base>201 <base>/opt/osm-demo/mapcache/cache</base> 204 202 205 203 ... … … 233 231 * Create 'cache' directory writable by Apache (www-data) user 234 232 {{{ 235 mkdir ~/osm-demo/ geocache/cache236 sudo chown www-data ~/osm-demo/ geocache/cache/233 mkdir ~/osm-demo/mapcache/cache 234 sudo chown www-data ~/osm-demo/mapcache/cache/ 237 235 }}} 238 236 * Add directives to Apache config: … … 241 239 ... add the following lines to the end of the default VirtualHost (update the '/path/to/' directory name): 242 240 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" 245 243 </IfModule> 246 244 … … 252 250 253 251 * 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.png252 * 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 256 254 * 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/ 258 256 * layer_name: osm@g 259 257 * Format: PNG