<?xml version="1.0" encoding="UTF-8"?>

<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">
  <ows:ServiceIdentification>
    <ows:Title>GeoServer Web Map Tile Service</ows:Title>
    <ows:Abstract>Predefined map tiles generated from vector data, raster data, and imagery.</ows:Abstract>
    <ows:ServiceType>OGC WMTS</ows:ServiceType>
    <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
    <ows:Fees>NONE</ows:Fees>
    <ows:AccessConstraints>NONE</ows:AccessConstraints>
  </ows:ServiceIdentification>
  <ows:ServiceProvider>
    <ows:ProviderName>GeoServer</ows:ProviderName>
    <ows:ProviderSite xlink:href="https://geoserver.org"/>
    <ows:ServiceContact>
      <ows:ContactInfo>
        <ows:Address/>
      </ows:ContactInfo>
    </ows:ServiceContact>
  </ows:ServiceProvider>
  <ows:OperationsMetadata>
    <ows:Operation name="GetCapabilities">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts?">
            <ows:Constraint name="GetEncoding">
              <ows:AllowedValues>
                <ows:Value>KVP</ows:Value>
              </ows:AllowedValues>
            </ows:Constraint>
          </ows:Get>
        </ows:HTTP>
      </ows:DCP>
    </ows:Operation>
    <ows:Operation name="GetTile">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts?">
            <ows:Constraint name="GetEncoding">
              <ows:AllowedValues>
                <ows:Value>KVP</ows:Value>
              </ows:AllowedValues>
            </ows:Constraint>
          </ows:Get>
        </ows:HTTP>
      </ows:DCP>
    </ows:Operation>
    <ows:Operation name="GetFeatureInfo">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts?">
            <ows:Constraint name="GetEncoding">
              <ows:AllowedValues>
                <ows:Value>KVP</ows:Value>
              </ows:AllowedValues>
            </ows:Constraint>
          </ows:Get>
        </ows:HTTP>
      </ows:DCP>
    </ows:Operation>
  </ows:OperationsMetadata>
  <Contents>
    <Layer>
      <ows:Title>sea_draining_catchments</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.26417752068355 -47.415910498930934</ows:LowerCorner>
        <ows:UpperCorner>179.46653686204047 -34.27128790856238</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>input_layers:sea_draining_catchments</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>generic</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=input_layers%3Asea_draining_catchments" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>22</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>390</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>706</MinTileRow>
            <MaxTileRow>781</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1413</MinTileRow>
            <MaxTileRow>1563</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2827</MinTileRow>
            <MaxTileRow>3126</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5655</MinTileRow>
            <MaxTileRow>6253</MaxTileRow>
            <MinTileCol>15758</MinTileCol>
            <MaxTileCol>16359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11311</MinTileRow>
            <MaxTileRow>12507</MaxTileRow>
            <MinTileCol>31517</MinTileCol>
            <MaxTileCol>32719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22622</MinTileRow>
            <MaxTileRow>25015</MaxTileRow>
            <MinTileCol>63035</MinTileCol>
            <MaxTileCol>65438</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45245</MinTileRow>
            <MaxTileRow>50031</MaxTileRow>
            <MinTileCol>126070</MinTileCol>
            <MaxTileCol>130877</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90491</MinTileRow>
            <MaxTileRow>100063</MaxTileRow>
            <MinTileCol>252141</MinTileCol>
            <MaxTileCol>261755</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180983</MinTileRow>
            <MaxTileRow>200126</MaxTileRow>
            <MinTileCol>504283</MinTileCol>
            <MaxTileCol>523511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361966</MinTileRow>
            <MaxTileRow>400252</MaxTileRow>
            <MinTileCol>1008567</MinTileCol>
            <MaxTileCol>1047022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>723932</MinTileRow>
            <MaxTileRow>800505</MaxTileRow>
            <MinTileCol>2017135</MinTileCol>
            <MaxTileCol>2094044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1447865</MinTileRow>
            <MaxTileRow>1601011</MaxTileRow>
            <MinTileCol>4034270</MinTileCol>
            <MaxTileCol>4188088</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1231</MinTileRow>
            <MaxTileRow>1331</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2463</MinTileRow>
            <MaxTileRow>2662</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4927</MinTileRow>
            <MaxTileRow>5324</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9854</MinTileRow>
            <MaxTileRow>10649</MaxTileRow>
            <MinTileCol>15758</MinTileCol>
            <MaxTileCol>16359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19708</MinTileRow>
            <MaxTileRow>21298</MaxTileRow>
            <MinTileCol>31517</MinTileCol>
            <MaxTileCol>32719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39416</MinTileRow>
            <MaxTileRow>42596</MaxTileRow>
            <MinTileCol>63035</MinTileCol>
            <MaxTileCol>65438</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78832</MinTileRow>
            <MaxTileRow>85193</MaxTileRow>
            <MinTileCol>126070</MinTileCol>
            <MaxTileCol>130877</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157664</MinTileRow>
            <MaxTileRow>170386</MaxTileRow>
            <MinTileCol>252141</MinTileCol>
            <MaxTileCol>261755</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315328</MinTileRow>
            <MaxTileRow>340773</MaxTileRow>
            <MinTileCol>504283</MinTileCol>
            <MaxTileCol>523511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630657</MinTileRow>
            <MaxTileRow>681547</MaxTileRow>
            <MinTileCol>1008567</MinTileCol>
            <MaxTileCol>1047022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1261315</MinTileRow>
            <MaxTileRow>1363095</MaxTileRow>
            <MinTileCol>2017135</MinTileCol>
            <MaxTileCol>2094044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2522630</MinTileRow>
            <MaxTileRow>2726190</MaxTileRow>
            <MinTileCol>4034270</MinTileCol>
            <MaxTileCol>4188088</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5045260</MinTileRow>
            <MaxTileRow>5452380</MaxTileRow>
            <MinTileCol>8068540</MinTileCol>
            <MaxTileCol>8376177</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10090521</MinTileRow>
            <MaxTileRow>10904761</MaxTileRow>
            <MinTileCol>16137080</MinTileCol>
            <MaxTileCol>16752354</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20181042</MinTileRow>
            <MaxTileRow>21809522</MaxTileRow>
            <MinTileCol>32274160</MinTileCol>
            <MaxTileCol>33504709</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40362085</MinTileRow>
            <MaxTileRow>43619045</MaxTileRow>
            <MinTileCol>64548321</MinTileCol>
            <MaxTileCol>67009419</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80724171</MinTileRow>
            <MaxTileRow>87238090</MaxTileRow>
            <MinTileCol>129096642</MinTileCol>
            <MaxTileCol>134018838</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161448343</MinTileRow>
            <MaxTileRow>174476180</MaxTileRow>
            <MinTileCol>258193284</MinTileCol>
            <MaxTileCol>268037677</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322896687</MinTileRow>
            <MaxTileRow>348952360</MaxTileRow>
            <MinTileCol>516386568</MinTileCol>
            <MaxTileCol>536075354</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645793375</MinTileRow>
            <MaxTileRow>697904721</MaxTileRow>
            <MinTileCol>1032773137</MinTileCol>
            <MaxTileCol>1072150708</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:sea_draining_catchments/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:sea_draining_catchments/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:sea_draining_catchments/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:sea_draining_catchments/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:sea_draining_catchments/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:sea_draining_catchments/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:sea_draining_catchments/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:sea_draining_catchments/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:sea_draining_catchments/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:sea_draining_catchments/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:sea_draining_catchments/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>building_flood_status</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3148103824333 -43.86953896161287</ows:LowerCorner>
        <ows:UpperCorner>172.38864992495655 -43.8347274904387</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-buildings:building_flood_status</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-buildings%3Abuilding_flood_status" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104765</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666499</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104765</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332998</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209530</MinTileCol>
            <MaxTileCol>8211250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665996</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419060</MinTileCol>
            <MaxTileCol>16422501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331993</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838120</MinTileCol>
            <MaxTileCol>32845002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663987</MinTileRow>
            <MaxTileRow>42672986</MaxTileRow>
            <MinTileCol>65676240</MinTileCol>
            <MaxTileCol>65690005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327975</MinTileRow>
            <MaxTileRow>85345973</MaxTileRow>
            <MinTileCol>131352481</MinTileCol>
            <MaxTileCol>131380011</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655951</MinTileRow>
            <MaxTileRow>170691946</MaxTileRow>
            <MinTileCol>262704963</MinTileCol>
            <MaxTileCol>262760022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311902</MinTileRow>
            <MaxTileRow>341383893</MaxTileRow>
            <MinTileCol>525409926</MinTileCol>
            <MaxTileCol>525520044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623805</MinTileRow>
            <MaxTileRow>682767787</MaxTileRow>
            <MinTileCol>1050819853</MinTileCol>
            <MaxTileCol>1051040088</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>nz_building_outlines</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.31518929478517 -43.86041570930774</ows:LowerCorner>
        <ows:UpperCorner>172.37552168311822 -43.83490605521601</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-buildings:nz_building_outlines</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-buildings%3Anz_building_outlines" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12184</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32074</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24368</MaxTileRow>
            <MinTileCol>64137</MinTileCol>
            <MaxTileCol>64148</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48737</MaxTileRow>
            <MinTileCol>128274</MinTileCol>
            <MaxTileCol>128296</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97474</MaxTileRow>
            <MinTileCol>256548</MinTileCol>
            <MaxTileCol>256592</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194911</MinTileRow>
            <MaxTileRow>194948</MaxTileRow>
            <MinTileCol>513096</MinTileCol>
            <MaxTileCol>513184</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389822</MinTileRow>
            <MaxTileRow>389896</MaxTileRow>
            <MinTileCol>1026192</MinTileCol>
            <MaxTileCol>1026368</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779644</MinTileRow>
            <MaxTileRow>779793</MaxTileRow>
            <MinTileCol>2052384</MinTileCol>
            <MaxTileCol>2052736</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559289</MinTileRow>
            <MaxTileRow>1559586</MaxTileRow>
            <MinTileCol>4104769</MinTileCol>
            <MaxTileCol>4105472</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5208</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10417</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20835</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32074</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41670</MaxTileRow>
            <MinTileCol>64137</MinTileCol>
            <MaxTileCol>64148</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83341</MaxTileRow>
            <MinTileCol>128274</MinTileCol>
            <MaxTileCol>128296</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166682</MaxTileRow>
            <MinTileCol>256548</MinTileCol>
            <MaxTileCol>256592</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333364</MaxTileRow>
            <MinTileCol>513096</MinTileCol>
            <MaxTileCol>513184</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666625</MinTileRow>
            <MaxTileRow>666728</MaxTileRow>
            <MinTileCol>1026192</MinTileCol>
            <MaxTileCol>1026368</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333251</MinTileRow>
            <MaxTileRow>1333457</MaxTileRow>
            <MinTileCol>2052384</MinTileCol>
            <MaxTileCol>2052736</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666502</MinTileRow>
            <MaxTileRow>2666914</MaxTileRow>
            <MinTileCol>4104769</MinTileCol>
            <MaxTileCol>4105472</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5333004</MinTileRow>
            <MaxTileRow>5333828</MaxTileRow>
            <MinTileCol>8209538</MinTileCol>
            <MaxTileCol>8210944</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10666008</MinTileRow>
            <MaxTileRow>10667656</MaxTileRow>
            <MinTileCol>16419077</MinTileCol>
            <MaxTileCol>16421889</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21332017</MinTileRow>
            <MaxTileRow>21335313</MaxTileRow>
            <MinTileCol>32838155</MinTileCol>
            <MaxTileCol>32843779</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42664034</MinTileRow>
            <MaxTileRow>42670627</MaxTileRow>
            <MinTileCol>65676311</MinTileCol>
            <MaxTileCol>65687558</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85328068</MinTileRow>
            <MaxTileRow>85341255</MaxTileRow>
            <MinTileCol>131352622</MinTileCol>
            <MaxTileCol>131375116</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170656136</MinTileRow>
            <MaxTileRow>170682511</MaxTileRow>
            <MinTileCol>262705245</MinTileCol>
            <MaxTileCol>262750232</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341312272</MinTileRow>
            <MaxTileRow>341365022</MaxTileRow>
            <MinTileCol>525410491</MinTileCol>
            <MaxTileCol>525500465</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682624544</MinTileRow>
            <MaxTileRow>682730045</MaxTileRow>
            <MinTileCol>1050820983</MinTileCol>
            <MaxTileCol>1051000931</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>region_geometry_clipped</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-180.0 -47.41964793037733</ows:LowerCorner>
        <ows:UpperCorner>180.0 -33.77340277566287</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>input_layers:region_geometry_clipped</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>generic</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=input_layers%3Aregion_geometry_clipped" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>22</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>390</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>781</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1408</MinTileRow>
            <MaxTileRow>1563</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2816</MinTileRow>
            <MaxTileRow>3127</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5633</MinTileRow>
            <MaxTileRow>6254</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11266</MinTileRow>
            <MaxTileRow>12508</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22532</MinTileRow>
            <MaxTileRow>25016</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45064</MinTileRow>
            <MaxTileRow>50032</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90129</MinTileRow>
            <MaxTileRow>100065</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180258</MinTileRow>
            <MaxTileRow>200131</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360516</MinTileRow>
            <MaxTileRow>400263</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721032</MinTileRow>
            <MaxTileRow>800527</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1442064</MinTileRow>
            <MaxTileRow>1601054</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4194303</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>4</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1228</MinTileRow>
            <MaxTileRow>1331</MaxTileRow>
            <MinTileCol>8</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2456</MinTileRow>
            <MaxTileRow>2662</MaxTileRow>
            <MinTileCol>16</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4913</MinTileRow>
            <MaxTileRow>5324</MaxTileRow>
            <MinTileCol>32</MinTileCol>
            <MaxTileCol>8190</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9826</MinTileRow>
            <MaxTileRow>10649</MaxTileRow>
            <MinTileCol>65</MinTileCol>
            <MaxTileCol>16381</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19653</MinTileRow>
            <MaxTileRow>21298</MaxTileRow>
            <MinTileCol>130</MinTileCol>
            <MaxTileCol>32762</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39306</MinTileRow>
            <MaxTileRow>42597</MaxTileRow>
            <MinTileCol>261</MinTileCol>
            <MaxTileCol>65524</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78613</MinTileRow>
            <MaxTileRow>85195</MaxTileRow>
            <MinTileCol>523</MinTileCol>
            <MaxTileCol>131048</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157226</MinTileRow>
            <MaxTileRow>170390</MaxTileRow>
            <MinTileCol>1047</MinTileCol>
            <MaxTileCol>262096</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314453</MinTileRow>
            <MaxTileRow>340781</MaxTileRow>
            <MinTileCol>2095</MinTileCol>
            <MaxTileCol>524193</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>628907</MinTileRow>
            <MaxTileRow>681563</MaxTileRow>
            <MinTileCol>4190</MinTileCol>
            <MaxTileCol>1048387</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1257815</MinTileRow>
            <MaxTileRow>1363127</MaxTileRow>
            <MinTileCol>8381</MinTileCol>
            <MaxTileCol>2096774</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2515631</MinTileRow>
            <MaxTileRow>2726254</MaxTileRow>
            <MinTileCol>16763</MinTileCol>
            <MaxTileCol>4193548</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5031262</MinTileRow>
            <MaxTileRow>5452509</MaxTileRow>
            <MinTileCol>33527</MinTileCol>
            <MaxTileCol>8387097</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10062525</MinTileRow>
            <MaxTileRow>10905018</MaxTileRow>
            <MinTileCol>67055</MinTileCol>
            <MaxTileCol>16774194</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20125051</MinTileRow>
            <MaxTileRow>21810037</MaxTileRow>
            <MinTileCol>134111</MinTileCol>
            <MaxTileCol>33548389</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40250103</MinTileRow>
            <MaxTileRow>43620074</MaxTileRow>
            <MinTileCol>268222</MinTileCol>
            <MaxTileCol>67096778</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80500207</MinTileRow>
            <MaxTileRow>87240149</MaxTileRow>
            <MinTileCol>536444</MinTileCol>
            <MaxTileCol>134193557</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161000414</MinTileRow>
            <MaxTileRow>174480298</MaxTileRow>
            <MinTileCol>1072889</MinTileCol>
            <MaxTileCol>268387114</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322000829</MinTileRow>
            <MaxTileRow>348960597</MaxTileRow>
            <MinTileCol>2145779</MinTileCol>
            <MaxTileCol>536774228</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644001659</MinTileRow>
            <MaxTileRow>697921195</MaxTileRow>
            <MinTileCol>4291558</MinTileCol>
            <MaxTileCol>1073548456</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>100y_3c_thresholded_0-1_3857</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3147871616959 -43.86954392313133</ows:LowerCorner>
        <ows:UpperCorner>172.38866892073 -43.8346956274462</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:100y_3c_thresholded_0-1_3857</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3A100y_3c_thresholded_0-1_3857" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666498</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332997</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209529</MinTileCol>
            <MaxTileCol>8211251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665994</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419059</MinTileCol>
            <MaxTileCol>16422502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331989</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838118</MinTileCol>
            <MaxTileCol>32845004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663979</MinTileRow>
            <MaxTileRow>42672987</MaxTileRow>
            <MinTileCol>65676236</MinTileCol>
            <MaxTileCol>65690009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327959</MinTileRow>
            <MaxTileRow>85345975</MaxTileRow>
            <MinTileCol>131352472</MinTileCol>
            <MaxTileCol>131380018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655918</MinTileRow>
            <MaxTileRow>170691951</MaxTileRow>
            <MinTileCol>262704945</MinTileCol>
            <MaxTileCol>262760036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311837</MinTileRow>
            <MaxTileRow>341383903</MaxTileRow>
            <MinTileCol>525409891</MinTileCol>
            <MaxTileCol>525520072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623674</MinTileRow>
            <MaxTileRow>682767807</MaxTileRow>
            <MinTileCol>1050819783</MinTileCol>
            <MaxTileCol>1051040144</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>roads</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.28435701636423 -43.87111426914291</ows:LowerCorner>
        <ows:UpperCorner>172.37260786343467 -43.82885749493583</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:roads</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Aroads" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32065</MinTileCol>
            <MaxTileCol>32073</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24362</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64131</MinTileCol>
            <MaxTileCol>64147</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48725</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128262</MinTileCol>
            <MaxTileCol>128294</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97451</MinTileRow>
            <MaxTileRow>97481</MaxTileRow>
            <MinTileCol>256525</MinTileCol>
            <MaxTileCol>256589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194902</MinTileRow>
            <MaxTileRow>194963</MaxTileRow>
            <MinTileCol>513051</MinTileCol>
            <MaxTileCol>513179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389804</MinTileRow>
            <MaxTileRow>389927</MaxTileRow>
            <MinTileCol>1026102</MinTileCol>
            <MaxTileCol>1026359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779609</MinTileRow>
            <MaxTileRow>779855</MaxTileRow>
            <MinTileCol>2052205</MinTileCol>
            <MaxTileCol>2052719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559219</MinTileRow>
            <MaxTileRow>1559711</MaxTileRow>
            <MinTileCol>4104410</MinTileCol>
            <MaxTileCol>4105438</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>650</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1301</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2603</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5207</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10415</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20831</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32065</MinTileCol>
            <MaxTileCol>32073</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41662</MinTileRow>
            <MaxTileRow>41673</MaxTileRow>
            <MinTileCol>64131</MinTileCol>
            <MaxTileCol>64147</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83325</MinTileRow>
            <MaxTileRow>83346</MaxTileRow>
            <MinTileCol>128262</MinTileCol>
            <MaxTileCol>128294</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166650</MinTileRow>
            <MaxTileRow>166692</MaxTileRow>
            <MinTileCol>256525</MinTileCol>
            <MaxTileCol>256589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333300</MinTileRow>
            <MaxTileRow>333385</MaxTileRow>
            <MinTileCol>513051</MinTileCol>
            <MaxTileCol>513179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666601</MinTileRow>
            <MaxTileRow>666771</MaxTileRow>
            <MinTileCol>1026102</MinTileCol>
            <MaxTileCol>1026359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333202</MinTileRow>
            <MaxTileRow>1333543</MaxTileRow>
            <MinTileCol>2052205</MinTileCol>
            <MaxTileCol>2052719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666404</MinTileRow>
            <MaxTileRow>2667087</MaxTileRow>
            <MinTileCol>4104410</MinTileCol>
            <MaxTileCol>4105438</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332808</MinTileRow>
            <MaxTileRow>5334174</MaxTileRow>
            <MinTileCol>8208820</MinTileCol>
            <MaxTileCol>8210876</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665617</MinTileRow>
            <MaxTileRow>10668348</MaxTileRow>
            <MinTileCol>16417640</MinTileCol>
            <MaxTileCol>16421753</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331235</MinTileRow>
            <MaxTileRow>21336697</MaxTileRow>
            <MinTileCol>32835281</MinTileCol>
            <MaxTileCol>32843507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42662470</MinTileRow>
            <MaxTileRow>42673394</MaxTileRow>
            <MinTileCol>65670563</MinTileCol>
            <MaxTileCol>65687015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85324941</MinTileRow>
            <MaxTileRow>85346788</MaxTileRow>
            <MinTileCol>131341127</MinTileCol>
            <MaxTileCol>131374030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170649883</MinTileRow>
            <MaxTileRow>170693576</MaxTileRow>
            <MinTileCol>262682255</MinTileCol>
            <MaxTileCol>262748060</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341299767</MinTileRow>
            <MaxTileRow>341387152</MaxTileRow>
            <MinTileCol>525364511</MinTileCol>
            <MaxTileCol>525496120</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682599535</MinTileRow>
            <MaxTileRow>682774304</MaxTileRow>
            <MinTileCol>1050729022</MinTileCol>
            <MaxTileCol>1050992240</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>nz_building_outlines</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.31518929478517 -43.86041570930774</ows:LowerCorner>
        <ows:UpperCorner>172.37552168311822 -43.83490605521601</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>input_layers:nz_building_outlines</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=input_layers%3Anz_building_outlines" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12184</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32074</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24368</MaxTileRow>
            <MinTileCol>64137</MinTileCol>
            <MaxTileCol>64148</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48737</MaxTileRow>
            <MinTileCol>128274</MinTileCol>
            <MaxTileCol>128296</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97474</MaxTileRow>
            <MinTileCol>256548</MinTileCol>
            <MaxTileCol>256592</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194911</MinTileRow>
            <MaxTileRow>194948</MaxTileRow>
            <MinTileCol>513096</MinTileCol>
            <MaxTileCol>513184</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389822</MinTileRow>
            <MaxTileRow>389896</MaxTileRow>
            <MinTileCol>1026192</MinTileCol>
            <MaxTileCol>1026368</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779644</MinTileRow>
            <MaxTileRow>779793</MaxTileRow>
            <MinTileCol>2052384</MinTileCol>
            <MaxTileCol>2052736</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559289</MinTileRow>
            <MaxTileRow>1559586</MaxTileRow>
            <MinTileCol>4104769</MinTileCol>
            <MaxTileCol>4105472</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5208</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10417</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20835</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32074</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41670</MaxTileRow>
            <MinTileCol>64137</MinTileCol>
            <MaxTileCol>64148</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83341</MaxTileRow>
            <MinTileCol>128274</MinTileCol>
            <MaxTileCol>128296</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166682</MaxTileRow>
            <MinTileCol>256548</MinTileCol>
            <MaxTileCol>256592</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333364</MaxTileRow>
            <MinTileCol>513096</MinTileCol>
            <MaxTileCol>513184</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666625</MinTileRow>
            <MaxTileRow>666728</MaxTileRow>
            <MinTileCol>1026192</MinTileCol>
            <MaxTileCol>1026368</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333251</MinTileRow>
            <MaxTileRow>1333457</MaxTileRow>
            <MinTileCol>2052384</MinTileCol>
            <MaxTileCol>2052736</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666502</MinTileRow>
            <MaxTileRow>2666914</MaxTileRow>
            <MinTileCol>4104769</MinTileCol>
            <MaxTileCol>4105472</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5333004</MinTileRow>
            <MaxTileRow>5333828</MaxTileRow>
            <MinTileCol>8209538</MinTileCol>
            <MaxTileCol>8210944</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10666008</MinTileRow>
            <MaxTileRow>10667656</MaxTileRow>
            <MinTileCol>16419077</MinTileCol>
            <MaxTileCol>16421889</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21332017</MinTileRow>
            <MaxTileRow>21335313</MaxTileRow>
            <MinTileCol>32838155</MinTileCol>
            <MaxTileCol>32843779</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42664034</MinTileRow>
            <MaxTileRow>42670627</MaxTileRow>
            <MinTileCol>65676311</MinTileCol>
            <MaxTileCol>65687558</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85328068</MinTileRow>
            <MaxTileRow>85341255</MaxTileRow>
            <MinTileCol>131352622</MinTileCol>
            <MaxTileCol>131375116</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170656136</MinTileRow>
            <MaxTileRow>170682511</MaxTileRow>
            <MinTileCol>262705245</MinTileCol>
            <MaxTileCol>262750232</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341312272</MinTileRow>
            <MaxTileRow>341365022</MaxTileRow>
            <MinTileCol>525410491</MinTileCol>
            <MaxTileCol>525500465</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682624544</MinTileRow>
            <MaxTileRow>682730045</MaxTileRow>
            <MinTileCol>1050820983</MinTileCol>
            <MaxTileCol>1051000931</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>points_of_interest</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.34000458768995 -43.85350874736608</ows:LowerCorner>
        <ows:UpperCorner>172.375090501809 -43.85014719326042</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:points_of_interest</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>point</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Apoints_of_interest" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1522</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3045</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6091</MinTileRow>
            <MaxTileRow>6091</MaxTileRow>
            <MinTileCol>16035</MinTileCol>
            <MaxTileCol>16036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12183</MinTileRow>
            <MaxTileRow>12183</MaxTileRow>
            <MinTileCol>32070</MinTileCol>
            <MaxTileCol>32073</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24366</MinTileRow>
            <MaxTileRow>24367</MaxTileRow>
            <MinTileCol>64141</MinTileCol>
            <MaxTileCol>64147</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48733</MinTileRow>
            <MaxTileRow>48734</MaxTileRow>
            <MinTileCol>128283</MinTileCol>
            <MaxTileCol>128295</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97466</MinTileRow>
            <MaxTileRow>97469</MaxTileRow>
            <MinTileCol>256566</MinTileCol>
            <MaxTileCol>256591</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194933</MinTileRow>
            <MaxTileRow>194938</MaxTileRow>
            <MinTileCol>513132</MinTileCol>
            <MaxTileCol>513183</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389866</MinTileRow>
            <MaxTileRow>389876</MaxTileRow>
            <MinTileCol>1026264</MinTileCol>
            <MaxTileCol>1026366</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779733</MinTileRow>
            <MaxTileRow>779753</MaxTileRow>
            <MinTileCol>2052529</MinTileCol>
            <MaxTileCol>2052733</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559467</MinTileRow>
            <MaxTileRow>1559506</MaxTileRow>
            <MinTileCol>4105058</MinTileCol>
            <MaxTileCol>4105467</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5208</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10417</MaxTileRow>
            <MinTileCol>16035</MinTileCol>
            <MaxTileCol>16036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20833</MinTileRow>
            <MaxTileRow>20834</MaxTileRow>
            <MinTileCol>32070</MinTileCol>
            <MaxTileCol>32073</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41667</MinTileRow>
            <MaxTileRow>41668</MaxTileRow>
            <MinTileCol>64141</MinTileCol>
            <MaxTileCol>64147</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83335</MinTileRow>
            <MaxTileRow>83337</MaxTileRow>
            <MinTileCol>128283</MinTileCol>
            <MaxTileCol>128295</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166671</MinTileRow>
            <MaxTileRow>166675</MaxTileRow>
            <MinTileCol>256566</MinTileCol>
            <MaxTileCol>256591</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333343</MinTileRow>
            <MaxTileRow>333350</MaxTileRow>
            <MinTileCol>513132</MinTileCol>
            <MaxTileCol>513183</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666687</MinTileRow>
            <MaxTileRow>666700</MaxTileRow>
            <MinTileCol>1026264</MinTileCol>
            <MaxTileCol>1026366</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333374</MinTileRow>
            <MaxTileRow>1333401</MaxTileRow>
            <MinTileCol>2052529</MinTileCol>
            <MaxTileCol>2052733</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666748</MinTileRow>
            <MaxTileRow>2666802</MaxTileRow>
            <MinTileCol>4105058</MinTileCol>
            <MaxTileCol>4105467</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5333496</MinTileRow>
            <MaxTileRow>5333605</MaxTileRow>
            <MinTileCol>8210117</MinTileCol>
            <MaxTileCol>8210934</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10666993</MinTileRow>
            <MaxTileRow>10667210</MaxTileRow>
            <MinTileCol>16420234</MinTileCol>
            <MaxTileCol>16421869</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21333986</MinTileRow>
            <MaxTileRow>21334421</MaxTileRow>
            <MinTileCol>32840468</MinTileCol>
            <MaxTileCol>32843738</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42667973</MinTileRow>
            <MaxTileRow>42668842</MaxTileRow>
            <MinTileCol>65680937</MinTileCol>
            <MaxTileCol>65687477</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85335946</MinTileRow>
            <MaxTileRow>85337684</MaxTileRow>
            <MinTileCol>131361874</MinTileCol>
            <MaxTileCol>131374955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170671892</MinTileRow>
            <MaxTileRow>170675368</MaxTileRow>
            <MinTileCol>262723749</MinTileCol>
            <MaxTileCol>262749911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341343785</MinTileRow>
            <MaxTileRow>341350737</MaxTileRow>
            <MinTileCol>525447498</MinTileCol>
            <MaxTileCol>525499822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682687571</MinTileRow>
            <MaxTileRow>682701475</MaxTileRow>
            <MinTileCol>1050894997</MinTileCol>
            <MaxTileCol>1050999645</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:points_of_interest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:points_of_interest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:points_of_interest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:points_of_interest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:points_of_interest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:points_of_interest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:points_of_interest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:points_of_interest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:points_of_interest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:points_of_interest/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:points_of_interest/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>100y_3c_thresholded_0-1_3857_32b</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3147871616959 -43.86954392313133</ows:LowerCorner>
        <ows:UpperCorner>172.38866892073 -43.8346956274462</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:100y_3c_thresholded_0-1_3857_32b</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3A100y_3c_thresholded_0-1_3857_32b" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666498</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332997</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209529</MinTileCol>
            <MaxTileCol>8211251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665994</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419059</MinTileCol>
            <MaxTileCol>16422502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331989</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838118</MinTileCol>
            <MaxTileCol>32845004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663979</MinTileRow>
            <MaxTileRow>42672987</MaxTileRow>
            <MinTileCol>65676236</MinTileCol>
            <MaxTileCol>65690009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327959</MinTileRow>
            <MaxTileRow>85345975</MaxTileRow>
            <MinTileCol>131352472</MinTileCol>
            <MaxTileCol>131380018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655918</MinTileRow>
            <MaxTileRow>170691951</MaxTileRow>
            <MinTileCol>262704945</MinTileCol>
            <MaxTileCol>262760036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311837</MinTileRow>
            <MaxTileRow>341383903</MaxTileRow>
            <MinTileCol>525409891</MinTileCol>
            <MaxTileCol>525520072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623674</MinTileRow>
            <MaxTileRow>682767807</MaxTileRow>
            <MinTileCol>1050819783</MinTileCol>
            <MaxTileCol>1051040144</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>region_geometry</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-180.0 -47.839734278747386</ows:LowerCorner>
        <ows:UpperCorner>180.0 -33.559983564693404</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>input_layers:region_geometry</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>generic</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=input_layers%3Aregion_geometry" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>21</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>43</MinTileRow>
            <MaxTileRow>49</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>87</MinTileRow>
            <MaxTileRow>98</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>175</MinTileRow>
            <MaxTileRow>196</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>351</MinTileRow>
            <MaxTileRow>392</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>702</MinTileRow>
            <MaxTileRow>784</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1405</MinTileRow>
            <MaxTileRow>1568</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2811</MinTileRow>
            <MaxTileRow>3136</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5623</MinTileRow>
            <MaxTileRow>6273</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11246</MinTileRow>
            <MaxTileRow>12546</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22493</MinTileRow>
            <MaxTileRow>25092</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>44986</MinTileRow>
            <MaxTileRow>50185</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>89973</MinTileRow>
            <MaxTileRow>100371</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>179947</MinTileRow>
            <MaxTileRow>200743</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>359894</MinTileRow>
            <MaxTileRow>401487</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>719789</MinTileRow>
            <MaxTileRow>802974</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1439578</MinTileRow>
            <MaxTileRow>1605949</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4194303</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>306</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>613</MinTileRow>
            <MaxTileRow>667</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1226</MinTileRow>
            <MaxTileRow>1334</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2453</MinTileRow>
            <MaxTileRow>2669</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4907</MinTileRow>
            <MaxTileRow>5338</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9815</MinTileRow>
            <MaxTileRow>10677</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19630</MinTileRow>
            <MaxTileRow>21355</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39260</MinTileRow>
            <MaxTileRow>42711</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>65534</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78520</MinTileRow>
            <MaxTileRow>85422</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>131069</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157040</MinTileRow>
            <MaxTileRow>170844</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>262139</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314080</MinTileRow>
            <MaxTileRow>341689</MaxTileRow>
            <MinTileCol>495</MinTileCol>
            <MaxTileCol>524279</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>628160</MinTileRow>
            <MaxTileRow>683379</MaxTileRow>
            <MinTileCol>990</MinTileCol>
            <MaxTileCol>1048558</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1256321</MinTileRow>
            <MaxTileRow>1366758</MaxTileRow>
            <MinTileCol>1981</MinTileCol>
            <MaxTileCol>2097116</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2512643</MinTileRow>
            <MaxTileRow>2733517</MaxTileRow>
            <MinTileCol>3963</MinTileCol>
            <MaxTileCol>4194232</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5025287</MinTileRow>
            <MaxTileRow>5467034</MaxTileRow>
            <MinTileCol>7927</MinTileCol>
            <MaxTileCol>8388464</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10050575</MinTileRow>
            <MaxTileRow>10934069</MaxTileRow>
            <MinTileCol>15854</MinTileCol>
            <MaxTileCol>16776928</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20101150</MinTileRow>
            <MaxTileRow>21868138</MaxTileRow>
            <MinTileCol>31709</MinTileCol>
            <MaxTileCol>33553856</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40202301</MinTileRow>
            <MaxTileRow>43736276</MaxTileRow>
            <MinTileCol>63419</MinTileCol>
            <MaxTileCol>67107712</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80404603</MinTileRow>
            <MaxTileRow>87472552</MaxTileRow>
            <MinTileCol>126838</MinTileCol>
            <MaxTileCol>134215424</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>160809207</MinTileRow>
            <MaxTileRow>174945104</MaxTileRow>
            <MinTileCol>253677</MinTileCol>
            <MaxTileCol>268430848</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>321618415</MinTileRow>
            <MaxTileRow>349890208</MaxTileRow>
            <MinTileCol>507354</MinTileCol>
            <MaxTileCol>536861696</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>643236831</MinTileRow>
            <MaxTileRow>699780417</MaxTileRow>
            <MinTileCol>1014708</MinTileCol>
            <MaxTileCol>1073723392</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>100y_0c_thresholded_0-1_3857</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3147871616959 -43.86954392313133</ows:LowerCorner>
        <ows:UpperCorner>172.38866892073 -43.8346956274462</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:100y_0c_thresholded_0-1_3857</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3A100y_0c_thresholded_0-1_3857" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666498</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332997</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209529</MinTileCol>
            <MaxTileCol>8211251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665994</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419059</MinTileCol>
            <MaxTileCol>16422502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331989</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838118</MinTileCol>
            <MaxTileCol>32845004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663979</MinTileRow>
            <MaxTileRow>42672987</MaxTileRow>
            <MinTileCol>65676236</MinTileCol>
            <MaxTileCol>65690009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327959</MinTileRow>
            <MaxTileRow>85345975</MaxTileRow>
            <MinTileCol>131352472</MinTileCol>
            <MaxTileCol>131380018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655918</MinTileRow>
            <MaxTileRow>170691951</MaxTileRow>
            <MinTileCol>262704945</MinTileCol>
            <MaxTileCol>262760036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311837</MinTileRow>
            <MaxTileRow>341383903</MaxTileRow>
            <MinTileCol>525409891</MinTileCol>
            <MaxTileCol>525520072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623674</MinTileRow>
            <MaxTileRow>682767807</MaxTileRow>
            <MinTileCol>1050819783</MinTileCol>
            <MaxTileCol>1051040144</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>100y_3c_diff_0c</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3147871616959 -43.86954392313133</ows:LowerCorner>
        <ows:UpperCorner>172.38866892073 -43.8346956274462</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:100y_3c_diff_0c</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3A100y_3c_diff_0c" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666498</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332997</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209529</MinTileCol>
            <MaxTileCol>8211251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665994</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419059</MinTileCol>
            <MaxTileCol>16422502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331989</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838118</MinTileCol>
            <MaxTileCol>32845004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663979</MinTileRow>
            <MaxTileRow>42672987</MaxTileRow>
            <MinTileCol>65676236</MinTileCol>
            <MaxTileCol>65690009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327959</MinTileRow>
            <MaxTileRow>85345975</MaxTileRow>
            <MinTileCol>131352472</MinTileCol>
            <MaxTileCol>131380018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655918</MinTileRow>
            <MaxTileRow>170691951</MaxTileRow>
            <MinTileCol>262704945</MinTileCol>
            <MaxTileCol>262760036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311837</MinTileRow>
            <MaxTileRow>341383903</MaxTileRow>
            <MinTileCol>525409891</MinTileCol>
            <MaxTileCol>525520072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623674</MinTileRow>
            <MaxTileRow>682767807</MaxTileRow>
            <MinTileCol>1050819783</MinTileCol>
            <MaxTileCol>1051040144</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>100y_0c_thresholded_0-1_3857_32b</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3147871616959 -43.86954392313133</ows:LowerCorner>
        <ows:UpperCorner>172.38866892073 -43.8346956274462</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:100y_0c_thresholded_0-1_3857_32b</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3A100y_0c_thresholded_0-1_3857_32b" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666498</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332997</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209529</MinTileCol>
            <MaxTileCol>8211251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665994</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419059</MinTileCol>
            <MaxTileCol>16422502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331989</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838118</MinTileCol>
            <MaxTileCol>32845004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663979</MinTileRow>
            <MaxTileRow>42672987</MaxTileRow>
            <MinTileCol>65676236</MinTileCol>
            <MaxTileCol>65690009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327959</MinTileRow>
            <MaxTileRow>85345975</MaxTileRow>
            <MinTileCol>131352472</MinTileCol>
            <MaxTileCol>131380018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655918</MinTileRow>
            <MaxTileRow>170691951</MaxTileRow>
            <MinTileCol>262704945</MinTileCol>
            <MaxTileCol>262760036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311837</MinTileRow>
            <MaxTileRow>341383903</MaxTileRow>
            <MinTileCol>525409891</MinTileCol>
            <MaxTileCol>525520072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623674</MinTileRow>
            <MaxTileRow>682767807</MaxTileRow>
            <MinTileCol>1050819783</MinTileCol>
            <MaxTileCol>1051040144</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>nz_property_titles</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.30543812873037 -43.86897286126908</ows:LowerCorner>
        <ows:UpperCorner>172.66539783598085 -43.72131959587166</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>input_layers:nz_property_titles</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>generic</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=input_layers%3Anz_property_titles" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>760</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2006</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1521</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4012</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3042</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8025</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6085</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16033</MinTileCol>
            <MaxTileCol>16050</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12171</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32067</MinTileCol>
            <MaxTileCol>32100</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24343</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64135</MinTileCol>
            <MaxTileCol>64200</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48686</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128270</MinTileCol>
            <MaxTileCol>128401</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97372</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256540</MinTileCol>
            <MaxTileCol>256803</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194745</MinTileRow>
            <MaxTileRow>194960</MaxTileRow>
            <MinTileCol>513081</MinTileCol>
            <MaxTileCol>513606</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389491</MinTileRow>
            <MaxTileRow>389921</MaxTileRow>
            <MinTileCol>1026163</MinTileCol>
            <MaxTileCol>1027212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>778983</MinTileRow>
            <MaxTileRow>779843</MaxTileRow>
            <MinTileCol>2052327</MinTileCol>
            <MaxTileCol>2054424</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1557966</MinTileRow>
            <MaxTileRow>1559686</MaxTileRow>
            <MinTileCol>4104655</MinTileCol>
            <MaxTileCol>4108849</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>650</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1301</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2006</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2602</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4012</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5204</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8025</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10408</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16033</MinTileCol>
            <MaxTileCol>16050</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20817</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32067</MinTileCol>
            <MaxTileCol>32100</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41635</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64135</MinTileCol>
            <MaxTileCol>64200</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83270</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128270</MinTileCol>
            <MaxTileCol>128401</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166541</MinTileRow>
            <MaxTileRow>166690</MaxTileRow>
            <MinTileCol>256540</MinTileCol>
            <MaxTileCol>256803</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333083</MinTileRow>
            <MaxTileRow>333381</MaxTileRow>
            <MinTileCol>513081</MinTileCol>
            <MaxTileCol>513606</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666167</MinTileRow>
            <MaxTileRow>666763</MaxTileRow>
            <MinTileCol>1026163</MinTileCol>
            <MaxTileCol>1027212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1332334</MinTileRow>
            <MaxTileRow>1333526</MaxTileRow>
            <MinTileCol>2052327</MinTileCol>
            <MaxTileCol>2054424</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2664669</MinTileRow>
            <MaxTileRow>2667052</MaxTileRow>
            <MinTileCol>4104655</MinTileCol>
            <MaxTileCol>4108849</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5329338</MinTileRow>
            <MaxTileRow>5334105</MaxTileRow>
            <MinTileCol>8209311</MinTileCol>
            <MaxTileCol>8217699</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10658677</MinTileRow>
            <MaxTileRow>10668210</MaxTileRow>
            <MinTileCol>16418623</MinTileCol>
            <MaxTileCol>16435398</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21317354</MinTileRow>
            <MaxTileRow>21336420</MaxTileRow>
            <MinTileCol>32837246</MinTileCol>
            <MaxTileCol>32870797</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42634708</MinTileRow>
            <MaxTileRow>42672840</MaxTileRow>
            <MinTileCol>65674493</MinTileCol>
            <MaxTileCol>65741595</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85269416</MinTileRow>
            <MaxTileRow>85345680</MaxTileRow>
            <MinTileCol>131348987</MinTileCol>
            <MaxTileCol>131483190</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170538832</MinTileRow>
            <MaxTileRow>170691361</MaxTileRow>
            <MinTileCol>262697974</MinTileCol>
            <MaxTileCol>262966380</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341077664</MinTileRow>
            <MaxTileRow>341382722</MaxTileRow>
            <MinTileCol>525395949</MinTileCol>
            <MaxTileCol>525932760</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682155328</MinTileRow>
            <MaxTileRow>682765445</MaxTileRow>
            <MinTileCol>1050791899</MinTileCol>
            <MaxTileCol>1051865520</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_property_titles/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_property_titles/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_property_titles/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_property_titles/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_property_titles/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_property_titles/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_property_titles/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_property_titles/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_property_titles/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_property_titles/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_property_titles/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>nz_coastlines</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.26219886696836 -47.42028294020141</ows:LowerCorner>
        <ows:UpperCorner>179.46917755680835 -34.268011139836055</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>input_layers:nz_coastlines</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>line</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=input_layers%3Anz_coastlines" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>22</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>390</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>706</MinTileRow>
            <MaxTileRow>781</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1413</MinTileRow>
            <MaxTileRow>1563</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2827</MinTileRow>
            <MaxTileRow>3127</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5655</MinTileRow>
            <MaxTileRow>6254</MaxTileRow>
            <MinTileCol>15758</MinTileCol>
            <MaxTileCol>16359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11311</MinTileRow>
            <MaxTileRow>12508</MaxTileRow>
            <MinTileCol>31517</MinTileCol>
            <MaxTileCol>32719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22622</MinTileRow>
            <MaxTileRow>25016</MaxTileRow>
            <MinTileCol>63035</MinTileCol>
            <MaxTileCol>65439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45244</MinTileRow>
            <MaxTileRow>50033</MaxTileRow>
            <MinTileCol>126070</MinTileCol>
            <MaxTileCol>130878</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90489</MinTileRow>
            <MaxTileRow>100066</MaxTileRow>
            <MinTileCol>252140</MinTileCol>
            <MaxTileCol>261757</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180978</MinTileRow>
            <MaxTileRow>200132</MaxTileRow>
            <MinTileCol>504280</MinTileCol>
            <MaxTileCol>523514</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361956</MinTileRow>
            <MaxTileRow>400265</MaxTileRow>
            <MinTileCol>1008561</MinTileCol>
            <MaxTileCol>1047029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>723913</MinTileRow>
            <MaxTileRow>800531</MaxTileRow>
            <MinTileCol>2017123</MinTileCol>
            <MaxTileCol>2094059</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1447827</MinTileRow>
            <MaxTileRow>1601062</MaxTileRow>
            <MinTileCol>4034247</MinTileCol>
            <MaxTileCol>4188119</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1231</MinTileRow>
            <MaxTileRow>1331</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2463</MinTileRow>
            <MaxTileRow>2662</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4926</MinTileRow>
            <MaxTileRow>5324</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9853</MinTileRow>
            <MaxTileRow>10649</MaxTileRow>
            <MinTileCol>15758</MinTileCol>
            <MaxTileCol>16359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19707</MinTileRow>
            <MaxTileRow>21298</MaxTileRow>
            <MinTileCol>31517</MinTileCol>
            <MaxTileCol>32719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39415</MinTileRow>
            <MaxTileRow>42597</MaxTileRow>
            <MinTileCol>63035</MinTileCol>
            <MaxTileCol>65439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78830</MinTileRow>
            <MaxTileRow>85195</MaxTileRow>
            <MinTileCol>126070</MinTileCol>
            <MaxTileCol>130878</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157661</MinTileRow>
            <MaxTileRow>170391</MaxTileRow>
            <MinTileCol>252140</MinTileCol>
            <MaxTileCol>261757</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315323</MinTileRow>
            <MaxTileRow>340783</MaxTileRow>
            <MinTileCol>504280</MinTileCol>
            <MaxTileCol>523514</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630646</MinTileRow>
            <MaxTileRow>681566</MaxTileRow>
            <MinTileCol>1008561</MinTileCol>
            <MaxTileCol>1047029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1261292</MinTileRow>
            <MaxTileRow>1363132</MaxTileRow>
            <MinTileCol>2017123</MinTileCol>
            <MaxTileCol>2094059</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2522584</MinTileRow>
            <MaxTileRow>2726265</MaxTileRow>
            <MinTileCol>4034247</MinTileCol>
            <MaxTileCol>4188119</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5045168</MinTileRow>
            <MaxTileRow>5452531</MaxTileRow>
            <MinTileCol>8068494</MinTileCol>
            <MaxTileCol>8376238</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10090336</MinTileRow>
            <MaxTileRow>10905062</MaxTileRow>
            <MinTileCol>16136988</MinTileCol>
            <MaxTileCol>16752477</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20180673</MinTileRow>
            <MaxTileRow>21810124</MaxTileRow>
            <MinTileCol>32273976</MinTileCol>
            <MaxTileCol>33504955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40361346</MinTileRow>
            <MaxTileRow>43620249</MaxTileRow>
            <MinTileCol>64547952</MinTileCol>
            <MaxTileCol>67009911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80722693</MinTileRow>
            <MaxTileRow>87240499</MaxTileRow>
            <MinTileCol>129095904</MinTileCol>
            <MaxTileCol>134019823</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161445387</MinTileRow>
            <MaxTileRow>174480998</MaxTileRow>
            <MinTileCol>258191809</MinTileCol>
            <MaxTileCol>268039646</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322890774</MinTileRow>
            <MaxTileRow>348961997</MaxTileRow>
            <MinTileCol>516383618</MinTileCol>
            <MaxTileCol>536079292</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645781548</MinTileRow>
            <MaxTileRow>697923994</MaxTileRow>
            <MinTileCol>1032767236</MinTileCol>
            <MaxTileCol>1072158584</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_coastlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_coastlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_coastlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_coastlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_coastlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_coastlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_coastlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_coastlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_coastlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_coastlines/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_coastlines/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>nz_roads</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.26050363374108 -43.87107799910425</ows:LowerCorner>
        <ows:UpperCorner>172.37288874035602 -43.79712266262235</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>input_layers:nz_roads</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>line</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=input_layers%3Anz_roads" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>500</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1001</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2003</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4007</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3044</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8015</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6089</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16031</MinTileCol>
            <MaxTileCol>16036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12178</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32063</MinTileCol>
            <MaxTileCol>32073</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24357</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64127</MinTileCol>
            <MaxTileCol>64147</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48714</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128254</MinTileCol>
            <MaxTileCol>128295</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97428</MinTileRow>
            <MaxTileRow>97481</MaxTileRow>
            <MinTileCol>256508</MinTileCol>
            <MaxTileCol>256590</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194856</MinTileRow>
            <MaxTileRow>194963</MaxTileRow>
            <MinTileCol>513016</MinTileCol>
            <MaxTileCol>513180</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389712</MinTileRow>
            <MaxTileRow>389927</MaxTileRow>
            <MinTileCol>1026033</MinTileCol>
            <MaxTileCol>1026360</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779424</MinTileRow>
            <MaxTileRow>779855</MaxTileRow>
            <MinTileCol>2052066</MinTileCol>
            <MaxTileCol>2052720</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1558849</MinTileRow>
            <MaxTileRow>1559711</MaxTileRow>
            <MinTileCol>4104132</MinTileCol>
            <MaxTileCol>4105441</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>500</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>650</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1001</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1301</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2003</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2603</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4007</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5206</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8015</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10413</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16031</MinTileCol>
            <MaxTileCol>16036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20827</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32063</MinTileCol>
            <MaxTileCol>32073</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41654</MinTileRow>
            <MaxTileRow>41673</MaxTileRow>
            <MinTileCol>64127</MinTileCol>
            <MaxTileCol>64147</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83309</MinTileRow>
            <MaxTileRow>83346</MaxTileRow>
            <MinTileCol>128254</MinTileCol>
            <MaxTileCol>128295</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166618</MinTileRow>
            <MaxTileRow>166692</MaxTileRow>
            <MinTileCol>256508</MinTileCol>
            <MaxTileCol>256590</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333236</MinTileRow>
            <MaxTileRow>333385</MaxTileRow>
            <MinTileCol>513016</MinTileCol>
            <MaxTileCol>513180</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666473</MinTileRow>
            <MaxTileRow>666771</MaxTileRow>
            <MinTileCol>1026033</MinTileCol>
            <MaxTileCol>1026360</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1332946</MinTileRow>
            <MaxTileRow>1333543</MaxTileRow>
            <MinTileCol>2052066</MinTileCol>
            <MaxTileCol>2052720</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2665892</MinTileRow>
            <MaxTileRow>2667086</MaxTileRow>
            <MinTileCol>4104132</MinTileCol>
            <MaxTileCol>4105441</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5331784</MinTileRow>
            <MaxTileRow>5334173</MaxTileRow>
            <MinTileCol>8208264</MinTileCol>
            <MaxTileCol>8210883</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10663568</MinTileRow>
            <MaxTileRow>10668346</MaxTileRow>
            <MinTileCol>16416529</MinTileCol>
            <MaxTileCol>16421766</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21327136</MinTileRow>
            <MaxTileRow>21336692</MaxTileRow>
            <MinTileCol>32833058</MinTileCol>
            <MaxTileCol>32843533</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42654272</MinTileRow>
            <MaxTileRow>42673384</MaxTileRow>
            <MinTileCol>65666117</MinTileCol>
            <MaxTileCol>65687067</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85308545</MinTileRow>
            <MaxTileRow>85346769</MaxTileRow>
            <MinTileCol>131332234</MinTileCol>
            <MaxTileCol>131374134</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170617091</MinTileRow>
            <MaxTileRow>170693538</MaxTileRow>
            <MinTileCol>262664469</MinTileCol>
            <MaxTileCol>262748269</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341234182</MinTileRow>
            <MaxTileRow>341387077</MaxTileRow>
            <MinTileCol>525328938</MinTileCol>
            <MaxTileCol>525496539</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682468365</MinTileRow>
            <MaxTileRow>682774154</MaxTileRow>
            <MinTileCol>1050657877</MinTileCol>
            <MaxTileCol>1050993078</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_roads/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_roads/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <TileMatrixSet>
      <ows:Identifier>EPSG:4326</ows:Identifier>
      <ows:SupportedCRS>urn:ogc:def:crs:EPSG::4326</ows:SupportedCRS>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:0</ows:Identifier>
        <ScaleDenominator>2.795411320143589E8</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2</MatrixWidth>
        <MatrixHeight>1</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:1</ows:Identifier>
        <ScaleDenominator>1.3977056600717944E8</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4</MatrixWidth>
        <MatrixHeight>2</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:2</ows:Identifier>
        <ScaleDenominator>6.988528300358972E7</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>8</MatrixWidth>
        <MatrixHeight>4</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:3</ows:Identifier>
        <ScaleDenominator>3.494264150179486E7</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>16</MatrixWidth>
        <MatrixHeight>8</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:4</ows:Identifier>
        <ScaleDenominator>1.747132075089743E7</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>32</MatrixWidth>
        <MatrixHeight>16</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:5</ows:Identifier>
        <ScaleDenominator>8735660.375448715</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>64</MatrixWidth>
        <MatrixHeight>32</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:6</ows:Identifier>
        <ScaleDenominator>4367830.1877243575</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>128</MatrixWidth>
        <MatrixHeight>64</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:7</ows:Identifier>
        <ScaleDenominator>2183915.0938621787</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>256</MatrixWidth>
        <MatrixHeight>128</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:8</ows:Identifier>
        <ScaleDenominator>1091957.5469310894</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>512</MatrixWidth>
        <MatrixHeight>256</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:9</ows:Identifier>
        <ScaleDenominator>545978.7734655447</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1024</MatrixWidth>
        <MatrixHeight>512</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:10</ows:Identifier>
        <ScaleDenominator>272989.38673277234</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2048</MatrixWidth>
        <MatrixHeight>1024</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:11</ows:Identifier>
        <ScaleDenominator>136494.69336638617</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4096</MatrixWidth>
        <MatrixHeight>2048</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:12</ows:Identifier>
        <ScaleDenominator>68247.34668319309</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>8192</MatrixWidth>
        <MatrixHeight>4096</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:13</ows:Identifier>
        <ScaleDenominator>34123.67334159654</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>16384</MatrixWidth>
        <MatrixHeight>8192</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:14</ows:Identifier>
        <ScaleDenominator>17061.83667079827</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>32768</MatrixWidth>
        <MatrixHeight>16384</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:15</ows:Identifier>
        <ScaleDenominator>8530.918335399136</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>65536</MatrixWidth>
        <MatrixHeight>32768</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:16</ows:Identifier>
        <ScaleDenominator>4265.459167699568</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>131072</MatrixWidth>
        <MatrixHeight>65536</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:17</ows:Identifier>
        <ScaleDenominator>2132.729583849784</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>262144</MatrixWidth>
        <MatrixHeight>131072</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:18</ows:Identifier>
        <ScaleDenominator>1066.364791924892</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>524288</MatrixWidth>
        <MatrixHeight>262144</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:19</ows:Identifier>
        <ScaleDenominator>533.182395962446</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1048576</MatrixWidth>
        <MatrixHeight>524288</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:20</ows:Identifier>
        <ScaleDenominator>266.591197981223</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2097152</MatrixWidth>
        <MatrixHeight>1048576</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:21</ows:Identifier>
        <ScaleDenominator>133.2955989906115</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4194304</MatrixWidth>
        <MatrixHeight>2097152</MatrixHeight>
      </TileMatrix>
    </TileMatrixSet>
    <TileMatrixSet>
      <ows:Identifier>EPSG:900913</ows:Identifier>
      <ows:SupportedCRS>urn:ogc:def:crs:EPSG::900913</ows:SupportedCRS>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:0</ows:Identifier>
        <ScaleDenominator>5.590822639508929E8</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1</MatrixWidth>
        <MatrixHeight>1</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:1</ows:Identifier>
        <ScaleDenominator>2.7954113197544646E8</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2</MatrixWidth>
        <MatrixHeight>2</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:2</ows:Identifier>
        <ScaleDenominator>1.3977056598772323E8</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4</MatrixWidth>
        <MatrixHeight>4</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:3</ows:Identifier>
        <ScaleDenominator>6.988528299386162E7</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>8</MatrixWidth>
        <MatrixHeight>8</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:4</ows:Identifier>
        <ScaleDenominator>3.494264149693081E7</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>16</MatrixWidth>
        <MatrixHeight>16</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:5</ows:Identifier>
        <ScaleDenominator>1.7471320748465404E7</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>32</MatrixWidth>
        <MatrixHeight>32</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:6</ows:Identifier>
        <ScaleDenominator>8735660.374232702</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>64</MatrixWidth>
        <MatrixHeight>64</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:7</ows:Identifier>
        <ScaleDenominator>4367830.187116351</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>128</MatrixWidth>
        <MatrixHeight>128</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:8</ows:Identifier>
        <ScaleDenominator>2183915.0935581755</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>256</MatrixWidth>
        <MatrixHeight>256</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:9</ows:Identifier>
        <ScaleDenominator>1091957.5467790877</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>512</MatrixWidth>
        <MatrixHeight>512</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:10</ows:Identifier>
        <ScaleDenominator>545978.7733895439</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1024</MatrixWidth>
        <MatrixHeight>1024</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:11</ows:Identifier>
        <ScaleDenominator>272989.38669477194</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2048</MatrixWidth>
        <MatrixHeight>2048</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:12</ows:Identifier>
        <ScaleDenominator>136494.69334738597</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4096</MatrixWidth>
        <MatrixHeight>4096</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:13</ows:Identifier>
        <ScaleDenominator>68247.34667369298</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>8192</MatrixWidth>
        <MatrixHeight>8192</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:14</ows:Identifier>
        <ScaleDenominator>34123.67333684649</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>16384</MatrixWidth>
        <MatrixHeight>16384</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:15</ows:Identifier>
        <ScaleDenominator>17061.836668423246</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>32768</MatrixWidth>
        <MatrixHeight>32768</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:16</ows:Identifier>
        <ScaleDenominator>8530.918334211623</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>65536</MatrixWidth>
        <MatrixHeight>65536</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:17</ows:Identifier>
        <ScaleDenominator>4265.4591671058115</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>131072</MatrixWidth>
        <MatrixHeight>131072</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:18</ows:Identifier>
        <ScaleDenominator>2132.7295835529058</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>262144</MatrixWidth>
        <MatrixHeight>262144</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:19</ows:Identifier>
        <ScaleDenominator>1066.3647917764529</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>524288</MatrixWidth>
        <MatrixHeight>524288</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:20</ows:Identifier>
        <ScaleDenominator>533.1823958882264</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1048576</MatrixWidth>
        <MatrixHeight>1048576</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:21</ows:Identifier>
        <ScaleDenominator>266.5911979441132</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2097152</MatrixWidth>
        <MatrixHeight>2097152</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:22</ows:Identifier>
        <ScaleDenominator>133.2955989720566</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4194304</MatrixWidth>
        <MatrixHeight>4194304</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:23</ows:Identifier>
        <ScaleDenominator>66.6477994860283</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>8388608</MatrixWidth>
        <MatrixHeight>8388608</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:24</ows:Identifier>
        <ScaleDenominator>33.32389974301415</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>16777216</MatrixWidth>
        <MatrixHeight>16777216</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:25</ows:Identifier>
        <ScaleDenominator>16.661949871507076</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>33554432</MatrixWidth>
        <MatrixHeight>33554432</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:26</ows:Identifier>
        <ScaleDenominator>8.330974935753538</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>67108864</MatrixWidth>
        <MatrixHeight>67108864</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:27</ows:Identifier>
        <ScaleDenominator>4.165487467876769</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>134217728</MatrixWidth>
        <MatrixHeight>134217728</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:28</ows:Identifier>
        <ScaleDenominator>2.0827437339383845</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>268435456</MatrixWidth>
        <MatrixHeight>268435456</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:29</ows:Identifier>
        <ScaleDenominator>1.0413718669691923</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>536870912</MatrixWidth>
        <MatrixHeight>536870912</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:30</ows:Identifier>
        <ScaleDenominator>0.5206859334845961</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1073741824</MatrixWidth>
        <MatrixHeight>1073741824</MatrixHeight>
      </TileMatrix>
    </TileMatrixSet>
  </Contents>
  <ServiceMetadataURL xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts?SERVICE=wmts&amp;REQUEST=getcapabilities&amp;VERSION=1.0.0"/>
  <ServiceMetadataURL xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/WMTSCapabilities.xml"/>
</Capabilities>