SHARE
TWEET

ts-mapcache-config.xml

a guest Jan 14th, 2014 274 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?xml version="1.0" encoding="UTF-8"?>
  2.  
  3. <mapcache>
  4.    <grid name="my-grid">
  5.       <metadata>
  6.          <title>My grid</title>
  7.       </metadata>
  8.       <srs>EPSG:27700</srs>
  9.       <size>512 512</size>
  10.       <extent>259997 100002 399997 160002</extent>
  11.       <!-- array of resolutions for the tileset, in decreasing order -->
  12.       <resolutions>110 55 27.5 13.75 6.875 3.4375 1.71875 0.859375 0.4296875</resolutions>
  13.    </grid>
  14.  
  15.    <format name="PNG" type="PNG">
  16.       <compression>fast</compression>
  17.    </format>
  18.  
  19.    <format name="JPEG" type="JPEG">
  20.       <quality>75</quality>
  21.    </format>
  22.  
  23.    <format name="mixed" type="MIXED">
  24.       <transparent>PNG</transparent>
  25.       <opaque>JPEG</opaque>
  26.    </format>
  27.  
  28.    <cache name="disk" type="disk">
  29.       <base>/path/to/mapcache</base>
  30.       <symlink_blank/>
  31.    </cache>
  32.  
  33.    ################
  34.    # Raster layers
  35.    ################
  36.  
  37.    <source name="Aerial" type="wms">
  38.       <http><url>http://localhost/cgi-bin/mapserv</url></http>
  39.       <getmap>
  40.          <params>
  41.             <format>image/jpeg</format>
  42.             <layers>Aerial</layers>
  43.             <map>/path/to/Aerial.map</map>
  44.          </params>
  45.       </getmap>
  46.    </source>
  47.  
  48.    #########################
  49.    # Tileset definitions
  50.    #########################
  51.  
  52.    <tileset name="Aerial">
  53.       <source>Aerial</source>
  54.       <cache>disk</cache>
  55.       <grid>my-grid</grid>
  56.       <format>JPEG</format>
  57.       <metatile>3 3</metatile>
  58.       <metabuffer>10</metabuffer>
  59.       <!-- expires 31557600  expires -->
  60.    </tileset>
  61.  
  62.    <default_format>mixed</default_format>
  63.  
  64.    <service type="wms" enabled="true">
  65.       <full_wms>assemble</full_wms>
  66.       <format>PNG</format>
  67.       <maxsize>4096</maxsize>
  68.    </service>
  69.    <service type="wmts" enabled="true"/>
  70.    <service type="tms" enabled="true"/>
  71.    <service type="kml" enabled="true"/>
  72.    <service type="gmaps" enabled="true"/>
  73.    <service type="ve" enabled="true"/>
  74.    <service type="mapguide" enabled="true"/>
  75.    <service type="demo" enabled="true"/>
  76.  
  77.    <errors>report</errors>
  78.    <lock_dir>/tmp</lock_dir>
  79.    <threaded_fetching>true</threaded_fetching>
  80. </mapcache>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top