File: geocache.yaml

package info (click to toggle)
mapcache 1.14.1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 2,844 kB
  • sloc: ansic: 33,609; xml: 889; sh: 183; makefile: 61; python: 48
file content (202 lines) | stat: -rw-r--r-- 3,679 bytes parent folder | download | duplicates (8)
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
---

grids:
  - name: grid1
    extent: [0, 3, 4, 4]
    resolutions: [0, 2]
    size: [256, 256]
    metadata:
      title: foo grid title
      fail: sdffd
    units: m
    srs: EPSG:4325
    srsaliases:
      - EPSG:2345
      - foo
    
caches:
  - name: disk
    type: disk
    base_dir: /tmp
    symlink_blank: true
    
  - name: tmpl
    type: disk
    template: /tmp/templ-test/{tileset}-{grid}-{dim}/{z}/{y}/{x}.{ext}
  
  - name: memcache
    type: memcache
    servers:
      - host: localhost
        port: 11211
      - host: localhost
        port: 11211
  
  - name: sqlite
    type: sqlite3
    dbname_template: /tmp/{tileset}-{grid}.sqlite
    hit_stats: false
  
  - name: ne
    type: mbtiles
    dbname_template: /Users/tbonfort/Documents/MapBox/tiles/natural-earth-1.mbtiles
    hit_stats: false
  
  - name: wb
    type: mbtiles
    dbname_template: /Users/tbonfort/Documents/MapBox/tiles/world-borders-dark.mbtiles
    hit_stats: false

sources:
  - name: vmap0
    type: wms
    http:
      url: http://vmap0.tiles.osgeo.org/wms/vmap0
      headers:
        - User-Agent: mod-mapcache/trunk
          Referer: http://foosite
    getmap:
      params:
        - LAYERS: basic
          FORMAT: image/png
    getfeatureinfo:
      params:
        - QUERY_LAYERS: basic
      
      info_formats: text/html
  
  - name: osm
    type: wms
    http:
      url: http://localhost/cgi-bin/mapserv
    getmap:
      params:
        - LAYERS: default
          FORMAT: image/png
          MAP: /Users/tbonfort/dev/mapserver-utils/osm-outlined,google.map

formats: 
  - name: jpg
    type: jpg
    quality: 85

  - name: png
    type: png
    colors: 256
    compression: best
  
  - name: mixed
    type: mixed
    opaque: jpg
    transparent: png

tilesets:
  - name: test
    source: vmap0
    grids:
      - WGS84
      - ref: g
        extent: [10, 10, 20, 20]
    wgs84_extent: [-180, -90, 180, 90]
    format: png
    cache: disk
    metatile:
      size: [5, 5]
      buffer: 10
    expires:
      delay: 3600
      auto: false
    dimensions:
      - type: values
        name: dim1
        default: val1
        values: [ val1, val2, val3 ]
    watermark: /home/tbonfort/dev/mod-mapcache/static/watermark.png
  
  - name: osm
    source: osm
    grids:
      - g
    wgs84_extent: [-180, -90, 180, 90]
    format: png
    cache: sqlite
    metatile:
      size: [5, 5]
      buffer: 10
    expires:
      delay: 3600
      auto: false
      
  - name: ne
    source: osm
    grids:
      - g
    wgs84_extent: [-180, -90, 180, 90]
    format: png
    cache: ne
    metatile:
      size: [5, 5]
      buffer: 10
    expires:
      delay: 3600
      auto: false
      
  - name: wb
    source: osm
    grids:
      - g
    wgs84_extent: [-180, -90, 180, 90]
    format: png
    cache: wb
    metatile:
      size: [5, 5]
      buffer: 10
    expires:
      delay: 3600
      auto: false
      
services:
  - type: demo
    enabled: true
    
  - type: ve
    enabled: true
    
  - type: tms
    enabled: true
    
  - type: gmaps
    enabled: true
    
  - type: kml
    enabled: true
    
  - type: wmts
    enabled: true
    
  - type: wms
    enabled: true
    forwarding_rules:
      - name: foo rule
        append_pathinfo: true
        http:
          url: http://localhost/forwarded-by-mod-mapcache/
        params:
          - name: SERVICE
            type: values
            values:
              - WMS
              - WFS
              - SOS
    full_getmap:
      strategy: assemble
      resample_mode: bilinear
      format: JPEG

config:
  error_reporting: message
  lock_dir: /tmp
  default_format: PNG8
...
# vim: ai ts=2 sts=2 et sw=2