-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmapcache.xml
87 lines (73 loc) · 2.31 KB
/
mapcache.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
<?xml version="1.0" encoding="UTF-8"?>
<!-- see the accompanying mapcache.xml.sample for a fully commented configuration file -->
<mapcache>
<log_level>debug</log_level>
<auto_reload>true</auto_reload>
<cache name="disk" type="disk">
<base>/mapserver/tiles</base>
<symlink_blank/>
</cache>
<format name="PNGQ_FAST" type ="PNG">
<compression>fast</compression>
<colors>256</colors>
</format>
<format name="MVT" type="RAW">
<extension>mvt</extension>
<mime_type>application/vnd.mapbox-vector-tile</mime_type>
</format>
<default_format>JPEG</default_format>
<!-- WMS returns Mapbox Vector Tiles (.mvt) - for mvt_demo -->
<source name="mvt-demo-mvt_wms" type="wms">
<http>
<url>http://mapserver.localhost/cgi-bin/mapserv?</url>
</http>
<getmap>
<params>
<LAYERS>wma,sna,lakes,major_roads,places</LAYERS>
<FORMAT>application/vnd.mapbox-vector-tile</FORMAT>
<MAP>/mapserver/mvt-demo/demo.map</MAP>
</params>
</getmap>
</source>
<tileset name="mvt-demo-mvt">
<source>mvt-demo-mvt_wms</source>
<grid>g</grid>
<cache>disk</cache>
<format>MVT</format>
</tileset>
<!-- WMS returns PNG (.png) - for mvt_demo -->
<source name="mvt-demo-png_wms" type="wms">
<http>
<url>http://mapserver.localhost/cgi-bin/mapserv?</url>
</http>
<getmap>
<params>
<LAYERS>wma,sna,lakes,major_roads,places</LAYERS>
<TRANSPARENT>true</TRANSPARENT>
<FORMAT>image/png</FORMAT>
<MAP>/mapserver/mvt-demo/demo.map</MAP>
</params>
</getmap>
</source>
<tileset name="mvt-demo-png">
<source>mvt-demo-png_wms</source>
<grid>g</grid>
<cache>disk</cache>
<format>PNGQ_FAST</format>
<metatile>8 8</metatile>
<metabuffer>20</metabuffer>
</tileset>
<service type="wms" enabled="true"/>
<service type="wmts" enabled="true"/>
<service type="tms" enabled="true"/>
<service type="kml" enabled="true"/>
<service type="gmaps" enabled="true"/>
<service type="ve" enabled="true"/>
<service type="mapguide" enabled="true"/>
<service type="demo" enabled="true"/>
<errors>report</errors>
<locker type="disk">
<directory>/tmp</directory>
<timeout>300</timeout>
</locker>
</mapcache>