UserGuidelines/GIS/Data: geowebcache.xml

File geowebcache.xml, 9.5 KB (added by Fran Boon, 10 years ago)

Configuration for GADM

Line 
1<?xml version="1.0" encoding="utf-8"?>
2<gwcConfiguration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3 xsi:noNamespaceSchemaLocation="http://geowebcache.org/schema/1.2.6/geowebcache.xsd"
4 xmlns="http://geowebcache.org/schema/1.2.6">
5<version>1.2.6</version>
6<backendTimeout>120</backendTimeout>
7<cacheBypassAllowed>true</cacheBypassAllowed>
8<layers>
9 <wmsLayer>
10 <name>sahana:gadm1_lev0_base</name>
11 <mimeFormats>
12 <string>image/jpeg</string>
13 </mimeFormats>
14 <!-- Format modifiers change certain settings for a
15 specific format -->
16 <formatModifiers>
17 <formatModifier>
18 <!-- Mandatory, the format requested by client -->
19 <responseFormat>image/jpeg</responseFormat>
20 <!-- Optional, the format GWC will use to get metatiles from backend,
21 This allows you to avoid lossy compression, such as JPEG, to be
22 applied twice. Use image/png; mode=24bit for MapServer -->
23 <requestFormat>image/png</requestFormat>
24 <!-- Optional, override transparent parameter in WMS request-->
25 <transparent>false</transparent>
26 <!-- Optional, override or set backgroud color for WMS request-->
27 <bgColor>0xCCCCFF</bgColor>
28 <!-- Optional, override or set palette parameter for WMS request -->
29 <!-- palette>webSafePalette</palette -->
30 <!-- Optional, adjust the compression ratio used when saving
31 the tiles. For minimum compression use 1.0 -->
32 <compressionQuality>1.0</compressionQuality>
33 </formatModifier>
34 </formatModifiers>
35 <grids>
36 <entry>
37 <srs>
38 <number>900913</number>
39 </srs>
40 <grid>
41 <srs>
42 <number>900913</number>
43 </srs>
44 <dataBounds>
45 <coords>
46 <double>-2.003750834E7</double>
47 <double>-2.003750834E7</double>
48 <double>2.003750834E7</double>
49 <double>2.003750834E7</double>
50 </coords>
51 </dataBounds>
52 <gridBounds>
53 <coords>
54 <double>-2.003750834E7</double>
55 <double>-2.003750834E7</double>
56 <double>2.003750834E7</double>
57 <double>2.003750834E7</double>
58 </coords>
59 </gridBounds>
60 </grid>
61 </entry>
62 <entry>
63 <srs>
64 <number>4326</number>
65 </srs>
66 <grid>
67 <srs>
68 <number>4326</number>
69 </srs>
70 <dataBounds>
71 <coords>
72 <double>-180.0</double>
73 <double>-90.0</double>
74 <double>180.0</double>
75 <double>90.0</double>
76 </coords>
77 </dataBounds>
78 <gridBounds>
79 <coords>
80 <double>-180.0</double>
81 <double>-90.0</double>
82 <double>180.0</double>
83 <double>90.0</double>
84 </coords>
85 </gridBounds>
86 <!--
87 This grid only allows zoom levels 0 through 20
88 -->
89 <zoomStart>0</zoomStart>
90 <zoomStop>20</zoomStop>
91 </grid>
92 </entry>
93 </grids>
94 <wmsUrl><string>http://localhost:8080/geoserver/sahana/wms</string></wmsUrl>
95 <wmsLayers>sahana:gadm1_lev0_base</wmsLayers>
96 </wmsLayer>
97 <wmsLayer>
98 <name>sahana:gadm1_base</name>
99 <mimeFormats>
100 <string>image/jpeg</string>
101 </mimeFormats>
102 <!-- Format modifiers change certain settings for a
103 specific format -->
104 <formatModifiers>
105 <formatModifier>
106 <!-- Mandatory, the format requested by client -->
107 <responseFormat>image/jpeg</responseFormat>
108 <!-- Optional, the format GWC will use to get metatiles from backend,
109 This allows you to avoid lossy compression, such as JPEG, to be
110 applied twice. Use image/png; mode=24bit for MapServer -->
111 <requestFormat>image/png</requestFormat>
112 <!-- Optional, override transparent parameter in WMS request-->
113 <transparent>false</transparent>
114 <!-- Optional, override or set backgroud color for WMS request-->
115 <bgColor>0xCCCCFF</bgColor>
116 <!-- Optional, override or set palette parameter for WMS request -->
117 <!-- palette>webSafePalette</palette -->
118 <!-- Optional, adjust the compression ratio used when saving
119 the tiles. For minimum compression use 1.0 -->
120 <compressionQuality>1.0</compressionQuality>
121 </formatModifier>
122 </formatModifiers>
123 <grids>
124 <entry>
125 <srs>
126 <number>900913</number>
127 </srs>
128 <grid>
129 <srs>
130 <number>900913</number>
131 </srs>
132 <dataBounds>
133 <coords>
134 <double>-2.003750834E7</double>
135 <double>-2.003750834E7</double>
136 <double>2.003750834E7</double>
137 <double>2.003750834E7</double>
138 </coords>
139 </dataBounds>
140 <gridBounds>
141 <coords>
142 <double>-2.003750834E7</double>
143 <double>-2.003750834E7</double>
144 <double>2.003750834E7</double>
145 <double>2.003750834E7</double>
146 </coords>
147 </gridBounds>
148 </grid>
149 </entry>
150 <entry>
151 <srs>
152 <number>4326</number>
153 </srs>
154 <grid>
155 <srs>
156 <number>4326</number>
157 </srs>
158 <dataBounds>
159 <coords>
160 <double>-180.0</double>
161 <double>-90.0</double>
162 <double>180.0</double>
163 <double>90.0</double>
164 </coords>
165 </dataBounds>
166 <gridBounds>
167 <coords>
168 <double>-180.0</double>
169 <double>-90.0</double>
170 <double>180.0</double>
171 <double>90.0</double>
172 </coords>
173 </gridBounds>
174 <!--
175 This grid only allows zoom levels 0 through 20
176 -->
177 <zoomStart>0</zoomStart>
178 <zoomStop>20</zoomStop>
179 </grid>
180 </entry>
181 </grids>
182 <wmsUrl><string>http://localhost:8080/geoserver/sahana/wms</string></wmsUrl>
183 <wmsLayers>sahana:gadm1_lev0_base,sahana:gadm1_lev0,sahana:gadm1_lev1,sahana:gadm1_lev2</wmsLayers>
184 </wmsLayer>
185 <wmsLayer>
186 <name>sahana:gadm1_overlays</name>
187 <mimeFormats>
188 <string>image/png</string>
189 </mimeFormats>
190 <grids>
191 <entry>
192 <srs>
193 <number>900913</number>
194 </srs>
195 <grid>
196 <srs>
197 <number>900913</number>
198 </srs>
199 <dataBounds>
200 <coords>
201 <double>-2.003750834E7</double>
202 <double>-2.003750834E7</double>
203 <double>2.003750834E7</double>
204 <double>2.003750834E7</double>
205 </coords>
206 </dataBounds>
207 <gridBounds>
208 <coords>
209 <double>-2.003750834E7</double>
210 <double>-2.003750834E7</double>
211 <double>2.003750834E7</double>
212 <double>2.003750834E7</double>
213 </coords>
214 </gridBounds>
215 </grid>
216 </entry>
217 <entry>
218 <srs>
219 <number>4326</number>
220 </srs>
221 <grid>
222 <srs>
223 <number>4326</number>
224 </srs>
225 <dataBounds>
226 <coords>
227 <double>-180.0</double>
228 <double>-90.0</double>
229 <double>180.0</double>
230 <double>90.0</double>
231 </coords>
232 </dataBounds>
233 <gridBounds>
234 <coords>
235 <double>-180.0</double>
236 <double>-90.0</double>
237 <double>180.0</double>
238 <double>90.0</double>
239 </coords>
240 </gridBounds>
241 <!--
242 This grid only allows zoom levels 0 through 20
243 -->
244 <zoomStart>0</zoomStart>
245 <zoomStop>20</zoomStop>
246 </grid>
247 </entry>
248 </grids>
249 <wmsUrl><string>http://localhost:8080/geoserver/sahana/wms</string></wmsUrl>
250 <wmsLayers>sahana:gadm1_lev0,sahana:gadm1_lev1,sahana:gadm1_lev2</wmsLayers>
251 </wmsLayer>
252 </layers>
253</gwcConfiguration>