Skip to content

Commit

Permalink
[Server] Update WMTS tests for round extent in GetCapabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
rldhont committed Nov 21, 2019
1 parent 723c51b commit 1b08bbe
Show file tree
Hide file tree
Showing 4 changed files with 96 additions and 93 deletions.
3 changes: 3 additions & 0 deletions tests/src/python/test_qgsserver_wmts.py
Expand Up @@ -43,6 +43,9 @@ class TestQgsServerWMTS(QgsServerTestBase):

"""QGIS Server WMTS Tests"""

# Set to True to re-generate reference files for this class
regenerate_reference = False

def wmts_request_compare(self, request, version='', extra_query_string='', reference_base_name=None):
#project = self.testdata_path + "test_project_wfs.qgs"
project = self.projectGroupsPath
Expand Down
62 changes: 31 additions & 31 deletions tests/testdata/qgis_server/wmts_getcapabilities.txt
@@ -1,4 +1,4 @@
Content-Length: 45698
Content-Length: 46050
Content-Type: text/xml; charset=utf-8

<Capabilities xmlns:gml="http://www.opengis.net/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns="http://www.opengis.net/wmts/1.0" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd" version="1.0.0" xmlns:xlink="http://www.w3.org/1999/xlink">
Expand Down Expand Up @@ -63,12 +63,12 @@ Content-Type: text/xml; charset=utf-8
<ows:Title>QGIS Server Hello World</ows:Title>
<ows:Abstract>QGIS Server Hello World</ows:Abstract>
<ows:WGS84BoundingBox>
<LowerCorner>-174.766573 -69.957838</LowerCorner>
<UpperCorner>177.930819 84.307876</UpperCorner>
<LowerCorner>-174.766573 -69.957839</LowerCorner>
<UpperCorner>177.930819 84.307877</UpperCorner>
</ows:WGS84BoundingBox>
<ows:BoundingBox crs="EPSG:3857">
<LowerCorner>-19454925.898459 -11055006.822989</LowerCorner>
<UpperCorner>19807168.136881 19143772.793601</UpperCorner>
<LowerCorner>-19454925.899 -11055006.823</LowerCorner>
<UpperCorner>19807168.137 19143772.794</UpperCorner>
</ows:BoundingBox>
<Style isDefault="true">
<ows:Identifier>default</ows:Identifier>
Expand Down Expand Up @@ -381,8 +381,8 @@ Content-Type: text/xml; charset=utf-8
<UpperCorner>179.412741 83.621086</UpperCorner>
</ows:WGS84BoundingBox>
<ows:BoundingBox crs="EPSG:3857">
<LowerCorner>-19619892.68012 -10327100.342322</LowerCorner>
<UpperCorner>19972134.918542 18415866.312934</UpperCorner>
<LowerCorner>-19619892.681 -10327100.343</LowerCorner>
<UpperCorner>19972134.919 18415866.313</UpperCorner>
</ows:BoundingBox>
<Style isDefault="true">
<ows:Identifier>default</ows:Identifier>
Expand Down Expand Up @@ -695,12 +695,12 @@ Content-Type: text/xml; charset=utf-8
<Layer>
<ows:Identifier>Hello</ows:Identifier>
<ows:WGS84BoundingBox>
<LowerCorner>-132.467818 -1.006739</LowerCorner>
<LowerCorner>-132.467819 -1.006739</LowerCorner>
<UpperCorner>101.888717 69.520496</UpperCorner>
</ows:WGS84BoundingBox>
<ows:BoundingBox crs="EPSG:3857">
<LowerCorner>-14746250.075131 -112075.428077</LowerCorner>
<UpperCorner>11342200.077197 10914413.714128</UpperCorner>
<LowerCorner>-14746250.076 -112075.429</LowerCorner>
<UpperCorner>11342200.078 10914413.715</UpperCorner>
</ows:BoundingBox>
<Style isDefault="true">
<ows:Identifier>default</ows:Identifier>
Expand Down Expand Up @@ -1016,7 +1016,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>0</ows:Identifier>
<ScaleDenominator>559082264.028718</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>1</MatrixWidth>
Expand All @@ -1025,7 +1025,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>1</ows:Identifier>
<ScaleDenominator>279541132.014359</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>2</MatrixWidth>
Expand All @@ -1034,7 +1034,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>2</ows:Identifier>
<ScaleDenominator>139770566.007179</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>4</MatrixWidth>
Expand All @@ -1043,7 +1043,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>3</ows:Identifier>
<ScaleDenominator>69885283.00359</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>8</MatrixWidth>
Expand All @@ -1052,7 +1052,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>4</ows:Identifier>
<ScaleDenominator>34942641.501795</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>16</MatrixWidth>
Expand All @@ -1061,7 +1061,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>5</ows:Identifier>
<ScaleDenominator>17471320.750897</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>32</MatrixWidth>
Expand All @@ -1070,7 +1070,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>6</ows:Identifier>
<ScaleDenominator>8735660.375449</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>64</MatrixWidth>
Expand All @@ -1079,7 +1079,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>7</ows:Identifier>
<ScaleDenominator>4367830.187724</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>128</MatrixWidth>
Expand All @@ -1088,7 +1088,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>8</ows:Identifier>
<ScaleDenominator>2183915.093862</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>256</MatrixWidth>
Expand All @@ -1097,7 +1097,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>9</ows:Identifier>
<ScaleDenominator>1091957.546931</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>512</MatrixWidth>
Expand All @@ -1106,7 +1106,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>10</ows:Identifier>
<ScaleDenominator>545978.773466</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>1024</MatrixWidth>
Expand All @@ -1115,7 +1115,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>11</ows:Identifier>
<ScaleDenominator>272989.386733</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>2048</MatrixWidth>
Expand All @@ -1124,7 +1124,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>12</ows:Identifier>
<ScaleDenominator>136494.693366</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>4096</MatrixWidth>
Expand All @@ -1133,7 +1133,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>13</ows:Identifier>
<ScaleDenominator>68247.346683</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>8192</MatrixWidth>
Expand All @@ -1142,7 +1142,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>14</ows:Identifier>
<ScaleDenominator>34123.673342</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>16384</MatrixWidth>
Expand All @@ -1151,7 +1151,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>15</ows:Identifier>
<ScaleDenominator>17061.836671</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>32768</MatrixWidth>
Expand All @@ -1160,7 +1160,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>16</ows:Identifier>
<ScaleDenominator>8530.918335</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>65536</MatrixWidth>
Expand All @@ -1169,7 +1169,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>17</ows:Identifier>
<ScaleDenominator>4265.459168</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>131072</MatrixWidth>
Expand All @@ -1178,7 +1178,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>18</ows:Identifier>
<ScaleDenominator>2132.729584</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>262144</MatrixWidth>
Expand All @@ -1187,7 +1187,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>19</ows:Identifier>
<ScaleDenominator>1066.364792</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>524288</MatrixWidth>
Expand All @@ -1196,7 +1196,7 @@ Content-Type: text/xml; charset=utf-8
<TileMatrix>
<ows:Identifier>20</ows:Identifier>
<ScaleDenominator>533.182396</ScaleDenominator>
<TopLeftCorner>-20037508.342789 20037508.342789</TopLeftCorner>
<TopLeftCorner>-20037508.343 20037508.343</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>1048576</MatrixWidth>
Expand Down

0 comments on commit 1b08bbe

Please sign in to comment.