source: josm/trunk/test/data/wmts/bug13975-multiple-tile-matrices-for-one-layer-projection.xml@ 11607

Last change on this file since 11607 was 11257, checked in by wiktorn, 8 years ago

Make DefaultLayer a type that can have layerName and tileMatrixSet

As WMTS specification gives possibility to have many tileMatrixSet's for
one layer and projection, default layer must specify both - layerName
and tileMatrixSet.

Accommodate to that fact layer selection dialogs and internal
computations in WMTS TileSource.

Closes: #13975

File size: 16.1 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd" version="1.0.0">
3<!-- Service Identification --> <ows:ServiceIdentification>
4<ows:Title>Mashhad_BaseMap_1</ows:Title>
5<ows:ServiceType>OGC WMTS</ows:ServiceType>
6<ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
7</ows:ServiceIdentification> <!-- Operations Metadata --> <ows:OperationsMetadata>
8<ows:Operation name="GetCapabilities">
9<ows:DCP>
10<ows:HTTP>
11<ows:Get xlink:href="http://188.253.0.155:6080/arcgis/rest/services/Mashhad_BaseMap_1/MapServer/WMTS/1.0.0/WMTSCapabilities.xml">
12<ows:Constraint name="GetEncoding">
13<ows:AllowedValues>
14<ows:Value>RESTful</ows:Value>
15</ows:AllowedValues>
16</ows:Constraint>
17</ows:Get>
18<!-- add KVP binding in 10.1 -->
19<ows:Get xlink:href="http://188.253.0.155:6080/arcgis/rest/services/Mashhad_BaseMap_1/MapServer/WMTS?">
20<ows:Constraint name="GetEncoding">
21<ows:AllowedValues>
22<ows:Value>KVP</ows:Value>
23</ows:AllowedValues>
24</ows:Constraint>
25</ows:Get>
26</ows:HTTP>
27</ows:DCP>
28</ows:Operation>
29<ows:Operation name="GetTile">
30<ows:DCP>
31<ows:HTTP>
32<ows:Get xlink:href="http://188.253.0.155:6080/arcgis/rest/services/Mashhad_BaseMap_1/MapServer/WMTS/tile/1.0.0/">
33<ows:Constraint name="GetEncoding">
34<ows:AllowedValues>
35<ows:Value>RESTful</ows:Value>
36</ows:AllowedValues>
37</ows:Constraint>
38</ows:Get>
39<ows:Get xlink:href="http://188.253.0.155:6080/arcgis/rest/services/Mashhad_BaseMap_1/MapServer/WMTS?">
40<ows:Constraint name="GetEncoding">
41<ows:AllowedValues>
42<ows:Value>KVP</ows:Value>
43</ows:AllowedValues>
44</ows:Constraint>
45</ows:Get>
46</ows:HTTP>
47</ows:DCP>
48</ows:Operation>
49</ows:OperationsMetadata> <Contents>
50<!--Layer--> <Layer>
51<ows:Title>Mashhad_BaseMap_1</ows:Title> <ows:Identifier>Mashhad_BaseMap_1</ows:Identifier>
52<ows:BoundingBox crs="urn:ogc:def:crs:EPSG::3857">
53<ows:LowerCorner>6588340.738203676 4304495.929392335</ows:LowerCorner>
54<ows:UpperCorner>6678536.942362351 4378339.757654444</ows:UpperCorner>
55</ows:BoundingBox> <ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">
56<ows:LowerCorner>59.184071821156536 36.028153408122506</ows:LowerCorner>
57<ows:UpperCorner>59.99431810880956 36.56279324540633</ows:UpperCorner>
58</ows:WGS84BoundingBox>
59<Style isDefault="true">
60<ows:Title>Default Style</ows:Title>
61<ows:Identifier>default</ows:Identifier>
62</Style>
63<Format>image/jpgpng</Format>
64<TileMatrixSetLink>
65<TileMatrixSet>default028mm</TileMatrixSet>
66</TileMatrixSetLink>
67<TileMatrixSetLink>
68<!--Only show this TileMatrixSet if the tiling scheme is compliant to Google Maps (and that happens with tile width = 256 px)-->
69<TileMatrixSet>GoogleMapsCompatible</TileMatrixSet>
70</TileMatrixSetLink>
71<ResourceURL format="image/jpgpng" resourceType="tile" template="http://188.253.0.155:6080/arcgis/rest/services/Mashhad_BaseMap_1/MapServer/WMTS/tile/1.0.0/Mashhad_BaseMap_1/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}"/>
72</Layer> <!--TileMatrixSet-->
73<TileMatrixSet>
74<ows:Title>TileMatrix using 0.28mm</ows:Title>
75<ows:Abstract>The tile matrix set that has scale values calculated based on the dpi defined by OGC specification (dpi assumes 0.28mm as the physical distance of a pixel).</ows:Abstract> <ows:Identifier>default028mm</ows:Identifier>
76<ows:SupportedCRS>urn:ogc:def:crs:EPSG::3857</ows:SupportedCRS>
77<TileMatrix>
78<ows:Identifier>0</ows:Identifier>
79<ScaleDenominator>5.590822640285016E8</ScaleDenominator>
80<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
81<MatrixWidth>1</MatrixWidth> <MatrixHeight>1</MatrixHeight>
82</TileMatrix>
83<TileMatrix>
84<ows:Identifier>1</ows:Identifier>
85<ScaleDenominator>2.7954113201425034E8</ScaleDenominator>
86<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
87<MatrixWidth>2</MatrixWidth> <MatrixHeight>1</MatrixHeight>
88</TileMatrix>
89<TileMatrix>
90<ows:Identifier>2</ows:Identifier>
91<ScaleDenominator>1.3977056600712562E8</ScaleDenominator>
92<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
93<MatrixWidth>3</MatrixWidth> <MatrixHeight>2</MatrixHeight>
94</TileMatrix>
95<TileMatrix>
96<ows:Identifier>3</ows:Identifier>
97<ScaleDenominator>6.988528300356235E7</ScaleDenominator>
98<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
99<MatrixWidth>6</MatrixWidth> <MatrixHeight>4</MatrixHeight>
100</TileMatrix>
101<TileMatrix>
102<ows:Identifier>4</ows:Identifier>
103<ScaleDenominator>3.494264150178117E7</ScaleDenominator>
104<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
105<MatrixWidth>11</MatrixWidth> <MatrixHeight>7</MatrixHeight>
106</TileMatrix>
107<TileMatrix>
108<ows:Identifier>5</ows:Identifier>
109<ScaleDenominator>1.7471320750890587E7</ScaleDenominator>
110<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
111<MatrixWidth>22</MatrixWidth> <MatrixHeight>13</MatrixHeight>
112</TileMatrix>
113<TileMatrix>
114<ows:Identifier>6</ows:Identifier>
115<ScaleDenominator>8735660.375445293</ScaleDenominator>
116<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
117<MatrixWidth>43</MatrixWidth> <MatrixHeight>26</MatrixHeight>
118</TileMatrix>
119<TileMatrix>
120<ows:Identifier>7</ows:Identifier>
121<ScaleDenominator>4367830.187722647</ScaleDenominator>
122<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
123<MatrixWidth>86</MatrixWidth> <MatrixHeight>51</MatrixHeight>
124</TileMatrix>
125<TileMatrix>
126<ows:Identifier>8</ows:Identifier>
127<ScaleDenominator>2183915.0938617955</ScaleDenominator>
128<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
129<MatrixWidth>171</MatrixWidth> <MatrixHeight>101</MatrixHeight>
130</TileMatrix>
131<TileMatrix>
132<ows:Identifier>9</ows:Identifier>
133<ScaleDenominator>1091957.5469304253</ScaleDenominator>
134<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
135<MatrixWidth>342</MatrixWidth> <MatrixHeight>202</MatrixHeight>
136</TileMatrix>
137<TileMatrix>
138<ows:Identifier>10</ows:Identifier>
139<ScaleDenominator>545978.7734656851</ScaleDenominator>
140<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
141<MatrixWidth>683</MatrixWidth> <MatrixHeight>403</MatrixHeight>
142</TileMatrix>
143<TileMatrix>
144<ows:Identifier>11</ows:Identifier>
145<ScaleDenominator>272989.38673237007</ScaleDenominator>
146<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
147<MatrixWidth>1366</MatrixWidth> <MatrixHeight>805</MatrixHeight>
148</TileMatrix>
149<TileMatrix>
150<ows:Identifier>12</ows:Identifier>
151<ScaleDenominator>136494.69336618503</ScaleDenominator>
152<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
153<MatrixWidth>2731</MatrixWidth> <MatrixHeight>1609</MatrixHeight>
154</TileMatrix>
155<TileMatrix>
156<ows:Identifier>13</ows:Identifier>
157<ScaleDenominator>68247.34668309252</ScaleDenominator>
158<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
159<MatrixWidth>5462</MatrixWidth> <MatrixHeight>3217</MatrixHeight>
160</TileMatrix>
161<TileMatrix>
162<ows:Identifier>14</ows:Identifier>
163<ScaleDenominator>34123.67334154626</ScaleDenominator>
164<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
165<MatrixWidth>10923</MatrixWidth> <MatrixHeight>6433</MatrixHeight>
166</TileMatrix>
167<TileMatrix>
168<ows:Identifier>15</ows:Identifier>
169<ScaleDenominator>17061.836671245605</ScaleDenominator>
170<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
171<MatrixWidth>21845</MatrixWidth> <MatrixHeight>12865</MatrixHeight>
172</TileMatrix>
173<TileMatrix>
174<ows:Identifier>16</ows:Identifier>
175<ScaleDenominator>8530.918335622802</ScaleDenominator>
176<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
177<MatrixWidth>43690</MatrixWidth> <MatrixHeight>25729</MatrixHeight>
178</TileMatrix>
179<TileMatrix>
180<ows:Identifier>17</ows:Identifier>
181<ScaleDenominator>4265.459167338929</ScaleDenominator>
182<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
183<MatrixWidth>87380</MatrixWidth> <MatrixHeight>51458</MatrixHeight>
184</TileMatrix>
185<TileMatrix>
186<ows:Identifier>18</ows:Identifier>
187<ScaleDenominator>2132.729584141936</ScaleDenominator>
188<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
189<MatrixWidth>174759</MatrixWidth> <MatrixHeight>102915</MatrixHeight>
190</TileMatrix>
191<TileMatrix>
192<ows:Identifier>19</ows:Identifier>
193<ScaleDenominator>1066.3647915984968</ScaleDenominator>
194<TopLeftCorner>-2.0037508342787E7 2.0037508342787E7</TopLeftCorner> <TileWidth>256</TileWidth> <TileHeight>256</TileHeight>
195<MatrixWidth>349518</MatrixWidth> <MatrixHeight>205830</MatrixHeight>
196</TileMatrix>
197</TileMatrixSet>
198<TileMatrixSet>
199<ows:Title>GoogleMapsCompatible</ows:Title>
200<ows:Abstract>the wellknown 'GoogleMapsCompatible' tile matrix set defined by OGC WMTS specification</ows:Abstract>
201<ows:Identifier>GoogleMapsCompatible</ows:Identifier>
202<ows:SupportedCRS>urn:ogc:def:crs:EPSG:6.18.3:3857</ows:SupportedCRS>
203<WellKnownScaleSet>urn:ogc:def:wkss:OGC:1.0:GoogleMapsCompatible</WellKnownScaleSet>
204<TileMatrix>
205<ows:Identifier>0</ows:Identifier>
206<ScaleDenominator>559082264.0287178</ScaleDenominator>
207<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
208<TileWidth>256</TileWidth>
209<TileHeight>256</TileHeight>
210<MatrixWidth>1</MatrixWidth>
211<MatrixHeight>1</MatrixHeight>
212</TileMatrix>
213<TileMatrix>
214<ows:Identifier>1</ows:Identifier>
215<ScaleDenominator>279541132.0143589</ScaleDenominator>
216<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
217<TileWidth>256</TileWidth>
218<TileHeight>256</TileHeight>
219<MatrixWidth>2</MatrixWidth>
220<MatrixHeight>2</MatrixHeight>
221</TileMatrix>
222<TileMatrix>
223<ows:Identifier>2</ows:Identifier>
224<ScaleDenominator>139770566.0071794</ScaleDenominator>
225<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
226<TileWidth>256</TileWidth>
227<TileHeight>256</TileHeight>
228<MatrixWidth>4</MatrixWidth>
229<MatrixHeight>4</MatrixHeight>
230</TileMatrix>
231<TileMatrix>
232<ows:Identifier>3</ows:Identifier>
233<ScaleDenominator>69885283.00358972</ScaleDenominator>
234<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
235<TileWidth>256</TileWidth>
236<TileHeight>256</TileHeight>
237<MatrixWidth>8</MatrixWidth>
238<MatrixHeight>8</MatrixHeight>
239</TileMatrix>
240<TileMatrix>
241<ows:Identifier>4</ows:Identifier>
242<ScaleDenominator>34942641.50179486</ScaleDenominator>
243<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
244<TileWidth>256</TileWidth>
245<TileHeight>256</TileHeight>
246<MatrixWidth>16</MatrixWidth>
247<MatrixHeight>16</MatrixHeight>
248</TileMatrix>
249<TileMatrix>
250<ows:Identifier>5</ows:Identifier>
251<ScaleDenominator>17471320.75089743</ScaleDenominator>
252<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
253<TileWidth>256</TileWidth>
254<TileHeight>256</TileHeight>
255<MatrixWidth>32</MatrixWidth>
256<MatrixHeight>32</MatrixHeight>
257</TileMatrix>
258<TileMatrix>
259<ows:Identifier>6</ows:Identifier>
260<ScaleDenominator>8735660.375448715</ScaleDenominator>
261<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
262<TileWidth>256</TileWidth>
263<TileHeight>256</TileHeight>
264<MatrixWidth>64</MatrixWidth>
265<MatrixHeight>64</MatrixHeight>
266</TileMatrix>
267<TileMatrix>
268<ows:Identifier>7</ows:Identifier>
269<ScaleDenominator>4367830.187724357</ScaleDenominator>
270<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
271<TileWidth>256</TileWidth>
272<TileHeight>256</TileHeight>
273<MatrixWidth>128</MatrixWidth>
274<MatrixHeight>128</MatrixHeight>
275</TileMatrix>
276<TileMatrix>
277<ows:Identifier>8</ows:Identifier>
278<ScaleDenominator>2183915.093862179</ScaleDenominator>
279<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
280<TileWidth>256</TileWidth>
281<TileHeight>256</TileHeight>
282<MatrixWidth>256</MatrixWidth>
283<MatrixHeight>256</MatrixHeight>
284</TileMatrix>
285<TileMatrix>
286<ows:Identifier>9</ows:Identifier>
287<ScaleDenominator>1091957.546931089</ScaleDenominator>
288<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
289<TileWidth>256</TileWidth>
290<TileHeight>256</TileHeight>
291<MatrixWidth>512</MatrixWidth>
292<MatrixHeight>512</MatrixHeight>
293</TileMatrix>
294<TileMatrix>
295<ows:Identifier>10</ows:Identifier>
296<ScaleDenominator>545978.7734655447</ScaleDenominator>
297<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
298<TileWidth>256</TileWidth>
299<TileHeight>256</TileHeight>
300<MatrixWidth>1024</MatrixWidth>
301<MatrixHeight>1024</MatrixHeight>
302</TileMatrix>
303<TileMatrix>
304<ows:Identifier>11</ows:Identifier>
305<ScaleDenominator>272989.3867327723</ScaleDenominator>
306<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
307<TileWidth>256</TileWidth>
308<TileHeight>256</TileHeight>
309<MatrixWidth>2048</MatrixWidth>
310<MatrixHeight>2048</MatrixHeight>
311</TileMatrix>
312<TileMatrix>
313<ows:Identifier>12</ows:Identifier>
314<ScaleDenominator>136494.6933663862</ScaleDenominator>
315<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
316<TileWidth>256</TileWidth>
317<TileHeight>256</TileHeight>
318<MatrixWidth>4096</MatrixWidth>
319<MatrixHeight>4096</MatrixHeight>
320</TileMatrix>
321<TileMatrix>
322<ows:Identifier>13</ows:Identifier>
323<ScaleDenominator>68247.34668319309</ScaleDenominator>
324<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
325<TileWidth>256</TileWidth>
326<TileHeight>256</TileHeight>
327<MatrixWidth>8192</MatrixWidth>
328<MatrixHeight>8192</MatrixHeight>
329</TileMatrix>
330<TileMatrix>
331<ows:Identifier>14</ows:Identifier>
332<ScaleDenominator>34123.67334159654</ScaleDenominator>
333<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
334<TileWidth>256</TileWidth>
335<TileHeight>256</TileHeight>
336<MatrixWidth>16384</MatrixWidth>
337<MatrixHeight>16384</MatrixHeight>
338</TileMatrix>
339<TileMatrix>
340<ows:Identifier>15</ows:Identifier>
341<ScaleDenominator>17061.83667079827</ScaleDenominator>
342<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
343<TileWidth>256</TileWidth>
344<TileHeight>256</TileHeight>
345<MatrixWidth>32768</MatrixWidth>
346<MatrixHeight>32768</MatrixHeight>
347</TileMatrix>
348<TileMatrix>
349<ows:Identifier>16</ows:Identifier>
350<ScaleDenominator>8530.918335399136</ScaleDenominator>
351<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
352<TileWidth>256</TileWidth>
353<TileHeight>256</TileHeight>
354<MatrixWidth>65536</MatrixWidth>
355<MatrixHeight>65536</MatrixHeight>
356</TileMatrix>
357<TileMatrix>
358<ows:Identifier>17</ows:Identifier>
359<ScaleDenominator>4265.459167699568</ScaleDenominator>
360<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
361<TileWidth>256</TileWidth>
362<TileHeight>256</TileHeight>
363<MatrixWidth>131072</MatrixWidth>
364<MatrixHeight>131072</MatrixHeight>
365</TileMatrix>
366<TileMatrix>
367<ows:Identifier>18</ows:Identifier>
368<ScaleDenominator>2132.729583849784</ScaleDenominator>
369<TopLeftCorner>-20037508.34278925 20037508.34278925</TopLeftCorner>
370<TileWidth>256</TileWidth>
371<TileHeight>256</TileHeight>
372<MatrixWidth>262144</MatrixWidth>
373<MatrixHeight>262144</MatrixHeight>
374</TileMatrix>
375</TileMatrixSet>
376</Contents>
377<ServiceMetadataURL xlink:href="http://188.253.0.155:6080/arcgis/rest/services/Mashhad_BaseMap_1/MapServer/WMTS/1.0.0/WMTSCapabilities.xml"/> </Capabilities>
Note: See TracBrowser for help on using the repository browser.