198 | | ... make required changes to template to make it work with our installation... |
199 | | |
| 198 | ... make required changes to template to make it work with our installation: |
| 199 | |
| 200 | <cache name="disk" type="disk"> |
| 201 | ... |
| 202 | <base>/path/to/osm-demo/geocache/cache</base> |
| 203 | |
| 204 | ... |
| 205 | <source name="osm" type="wms"> |
| 206 | <http> |
| 207 | <url>http://localhost/cgi-bin/mapserv?</url> |
| 208 | </http> |
| 209 | ... |
| 210 | <MAP>/path/to/osm-demo/mapserver-utils-svn-imposm/osm-google.map</MAP> |
| 211 | ... |
| 212 | |
| 213 | <tileset name="osm"> |
| 214 | <metadata> |
| 215 | <title>OSM MapServer served map</title> |
| 216 | <abstract>see http://trac.osgeo.org/mapserver/wiki/RenderingOsmDataUbuntu</abstract> |
| 217 | </metadata> |
| 218 | <source>osm</source> |
| 219 | <cache>disk</cache> |
| 220 | <format>PNG</format> |
| 221 | <grid>g</grid> |
| 222 | <grid>WGS84</grid> |
| 223 | <metatile>5 5</metatile> |
| 224 | <expires>10000</expires> |
| 225 | <auto_expire>86400</auto_expire> |
| 226 | <metabuffer>10</metabuffer> |
| 227 | </tileset> |
| 228 | }}} |
| 229 | * And restart apache for the changes to take effect: |
| 230 | {{{ |