<?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>GNS Science Web Map Tile Service</ows:Title>
    <ows:Abstract>A compliant implementation of WMTS service.</ows:Abstract>
    <ows:Keywords>
      <ows:Keyword>GNS Science</ows:Keyword>
      <ows:Keyword>New Zealand</ows:Keyword>
      <ows:Keyword>Geology</ows:Keyword>
    </ows:Keywords>
    <ows:ServiceType>OGC WMTS</ows:ServiceType>
    <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
    <ows:Fees>NONE</ows:Fees>
    <ows:AccessConstraints>Copyright GNS Science 2014. These map data are released free under the Creative Commons Attribution 3.0 New Zealand (CC-BY 3.0) Licence - http://creativecommons.org/licenses/by/3.0/nz/</ows:AccessConstraints>
  </ows:ServiceIdentification>
  <ows:ServiceProvider>
    <ows:ProviderName>GeoServer</ows:ProviderName>
    <ows:ProviderSite xlink:href="https://geoserver.org"/>
    <ows:ServiceContact>
      <ows:IndividualName>Applications Team</ows:IndividualName>
      <ows:ContactInfo>
        <ows:Phone>
          <ows:Voice>+64 4 570 4641</ows:Voice>
        </ows:Phone>
        <ows:Address>
          <ows:DeliveryPoint>PO Box 30-368</ows:DeliveryPoint>
          <ows:City>Lower Hutt</ows:City>
          <ows:PostalCode>5040</ows:PostalCode>
          <ows:Country>New Zealand</ows:Country>
          <ows:ElectronicMailAddress>applications@gns.cri.nz</ows:ElectronicMailAddress>
        </ows:Address>
      </ows:ContactInfo>
    </ows:ServiceContact>
  </ows:ServiceProvider>
  <ows:OperationsMetadata>
    <ows:Operation name="GetCapabilities">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="https://data.gns.cri.nz/webmaps/gns/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="https://data.gns.cri.nz/webmaps/gns/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="https://data.gns.cri.nz/webmaps/gns/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>twotw_heretaunga_age_median_125_150</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_median_125_150</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_median_125_150" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_125_150/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_125_150/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>MINERAL.GERM_FEATURE_VIEW</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.45511483546719 -46.99278279257691</ows:LowerCorner>
        <ows:UpperCorner>178.5367634537305 -34.33464405456452</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:MINERAL.GERM_FEATURE_VIEW</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:germ_features_clean</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AMINERAL.GERM_FEATURE_VIEW" width="20" height="20" maxScaleDenominator="5000000.0"/>
      </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>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>389</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>707</MinTileRow>
            <MaxTileRow>779</MaxTileRow>
            <MinTileCol>1970</MinTileCol>
            <MaxTileCol>2039</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1414</MinTileRow>
            <MaxTileRow>1558</MaxTileRow>
            <MinTileCol>3941</MinTileCol>
            <MaxTileCol>4079</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2829</MinTileRow>
            <MaxTileRow>3117</MaxTileRow>
            <MinTileCol>7883</MinTileCol>
            <MaxTileCol>8158</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5658</MinTileRow>
            <MaxTileRow>6234</MaxTileRow>
            <MinTileCol>15767</MinTileCol>
            <MaxTileCol>16317</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11317</MinTileRow>
            <MaxTileRow>12469</MaxTileRow>
            <MinTileCol>31535</MinTileCol>
            <MaxTileCol>32634</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22634</MinTileRow>
            <MaxTileRow>24938</MaxTileRow>
            <MinTileCol>63070</MinTileCol>
            <MaxTileCol>65269</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45268</MinTileRow>
            <MaxTileRow>49877</MaxTileRow>
            <MinTileCol>126140</MinTileCol>
            <MaxTileCol>130539</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90537</MinTileRow>
            <MaxTileRow>99755</MaxTileRow>
            <MinTileCol>252280</MinTileCol>
            <MaxTileCol>261078</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>181075</MinTileRow>
            <MaxTileRow>199510</MaxTileRow>
            <MinTileCol>504561</MinTileCol>
            <MaxTileCol>522157</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>362150</MinTileRow>
            <MaxTileRow>399020</MaxTileRow>
            <MinTileCol>1009123</MinTileCol>
            <MaxTileCol>1044314</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>724301</MinTileRow>
            <MaxTileRow>798040</MaxTileRow>
            <MinTileCol>2018247</MinTileCol>
            <MaxTileCol>2088628</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1448603</MinTileRow>
            <MaxTileRow>1596081</MaxTileRow>
            <MinTileCol>4036494</MinTileCol>
            <MaxTileCol>4177256</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>77</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>308</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>616</MinTileRow>
            <MaxTileRow>663</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1232</MinTileRow>
            <MaxTileRow>1327</MaxTileRow>
            <MinTileCol>1970</MinTileCol>
            <MaxTileCol>2039</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2464</MinTileRow>
            <MaxTileRow>2655</MaxTileRow>
            <MinTileCol>3941</MinTileCol>
            <MaxTileCol>4079</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4928</MinTileRow>
            <MaxTileRow>5310</MaxTileRow>
            <MinTileCol>7883</MinTileCol>
            <MaxTileCol>8158</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9857</MinTileRow>
            <MaxTileRow>10620</MaxTileRow>
            <MinTileCol>15767</MinTileCol>
            <MaxTileCol>16317</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19715</MinTileRow>
            <MaxTileRow>21241</MaxTileRow>
            <MinTileCol>31535</MinTileCol>
            <MaxTileCol>32634</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39430</MinTileRow>
            <MaxTileRow>42483</MaxTileRow>
            <MinTileCol>63070</MinTileCol>
            <MaxTileCol>65269</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78860</MinTileRow>
            <MaxTileRow>84966</MaxTileRow>
            <MinTileCol>126140</MinTileCol>
            <MaxTileCol>130539</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157720</MinTileRow>
            <MaxTileRow>169933</MaxTileRow>
            <MinTileCol>252280</MinTileCol>
            <MaxTileCol>261078</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315440</MinTileRow>
            <MaxTileRow>339866</MaxTileRow>
            <MinTileCol>504561</MinTileCol>
            <MaxTileCol>522157</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630880</MinTileRow>
            <MaxTileRow>679733</MaxTileRow>
            <MinTileCol>1009123</MinTileCol>
            <MaxTileCol>1044314</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1261761</MinTileRow>
            <MaxTileRow>1359467</MaxTileRow>
            <MinTileCol>2018247</MinTileCol>
            <MaxTileCol>2088628</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2523523</MinTileRow>
            <MaxTileRow>2718934</MaxTileRow>
            <MinTileCol>4036494</MinTileCol>
            <MaxTileCol>4177256</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5047047</MinTileRow>
            <MaxTileRow>5437868</MaxTileRow>
            <MinTileCol>8072989</MinTileCol>
            <MaxTileCol>8354512</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10094095</MinTileRow>
            <MaxTileRow>10875736</MaxTileRow>
            <MinTileCol>16145978</MinTileCol>
            <MaxTileCol>16709024</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20188191</MinTileRow>
            <MaxTileRow>21751472</MaxTileRow>
            <MinTileCol>32291957</MinTileCol>
            <MaxTileCol>33418048</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40376383</MinTileRow>
            <MaxTileRow>43502944</MaxTileRow>
            <MinTileCol>64583914</MinTileCol>
            <MaxTileCol>66836096</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80752766</MinTileRow>
            <MaxTileRow>87005888</MaxTileRow>
            <MinTileCol>129167828</MinTileCol>
            <MaxTileCol>133672193</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161505532</MinTileRow>
            <MaxTileRow>174011776</MaxTileRow>
            <MinTileCol>258335657</MinTileCol>
            <MaxTileCol>267344387</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>323011064</MinTileRow>
            <MaxTileRow>348023553</MaxTileRow>
            <MinTileCol>516671315</MinTileCol>
            <MaxTileCol>534688775</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>646022129</MinTileRow>
            <MaxTileRow>696047106</MaxTileRow>
            <MinTileCol>1033342630</MinTileCol>
            <MaxTileCol>1069377551</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GERM_FEATURE_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GERM_FEATURE_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GERM_FEATURE_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GERM_FEATURE_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GERM_FEATURE_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GERM_FEATURE_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GERM_FEATURE_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GERM_FEATURE_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GERM_FEATURE_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GERM_FEATURE_VIEW/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GERM_FEATURE_VIEW/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_mean_100_125</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_mean_100_125</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_mean_100_125" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_100_125/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_100_125/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>DepthTimeTemp_0_1000_mod</ows:Title>
      <ows:Abstract>Temperature at depth 1000 meters subsurface, modeled across North Island only.  Data provided by GNS Geothermal Team.</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.27046125607993 -41.91578960132826</ows:LowerCorner>
        <ows:UpperCorner>178.97157162333815 -34.03862826210299</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:DepthTimeTemp_0_1000_mod</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3ADepthTimeTemp_0_1000_mod" 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>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>375</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>705</MinTileRow>
            <MaxTileRow>750</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1411</MinTileRow>
            <MaxTileRow>1500</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2822</MinTileRow>
            <MaxTileRow>3001</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8168</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5645</MinTileRow>
            <MaxTileRow>6003</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16337</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11290</MinTileRow>
            <MaxTileRow>12007</MaxTileRow>
            <MinTileCol>32064</MinTileCol>
            <MaxTileCol>32674</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22580</MinTileRow>
            <MaxTileRow>24014</MaxTileRow>
            <MinTileCol>64128</MinTileCol>
            <MaxTileCol>65348</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45161</MinTileRow>
            <MaxTileRow>48029</MaxTileRow>
            <MinTileCol>128257</MinTileCol>
            <MaxTileCol>130697</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90322</MinTileRow>
            <MaxTileRow>96058</MaxTileRow>
            <MinTileCol>256515</MinTileCol>
            <MaxTileCol>261395</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180644</MinTileRow>
            <MaxTileRow>192116</MaxTileRow>
            <MinTileCol>513031</MinTileCol>
            <MaxTileCol>522790</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361288</MinTileRow>
            <MaxTileRow>384232</MaxTileRow>
            <MinTileCol>1026062</MinTileCol>
            <MaxTileCol>1045580</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>722577</MinTileRow>
            <MaxTileRow>768465</MaxTileRow>
            <MinTileCol>2052124</MinTileCol>
            <MaxTileCol>2091160</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1445154</MinTileRow>
            <MaxTileRow>1536930</MaxTileRow>
            <MinTileCol>4104248</MinTileCol>
            <MaxTileCol>4182321</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>643</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1230</MinTileRow>
            <MaxTileRow>1287</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2460</MinTileRow>
            <MaxTileRow>2574</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4920</MinTileRow>
            <MaxTileRow>5148</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8168</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9841</MinTileRow>
            <MaxTileRow>10296</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16337</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19682</MinTileRow>
            <MaxTileRow>20593</MaxTileRow>
            <MinTileCol>32064</MinTileCol>
            <MaxTileCol>32674</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39364</MinTileRow>
            <MaxTileRow>41187</MaxTileRow>
            <MinTileCol>64128</MinTileCol>
            <MaxTileCol>65348</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78729</MinTileRow>
            <MaxTileRow>82374</MaxTileRow>
            <MinTileCol>128257</MinTileCol>
            <MaxTileCol>130697</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157459</MinTileRow>
            <MaxTileRow>164749</MaxTileRow>
            <MinTileCol>256515</MinTileCol>
            <MaxTileCol>261395</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314919</MinTileRow>
            <MaxTileRow>329498</MaxTileRow>
            <MinTileCol>513031</MinTileCol>
            <MaxTileCol>522790</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629838</MinTileRow>
            <MaxTileRow>658996</MaxTileRow>
            <MinTileCol>1026062</MinTileCol>
            <MaxTileCol>1045580</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1259677</MinTileRow>
            <MaxTileRow>1317993</MaxTileRow>
            <MinTileCol>2052124</MinTileCol>
            <MaxTileCol>2091160</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2519354</MinTileRow>
            <MaxTileRow>2635987</MaxTileRow>
            <MinTileCol>4104248</MinTileCol>
            <MaxTileCol>4182321</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5038709</MinTileRow>
            <MaxTileRow>5271975</MaxTileRow>
            <MinTileCol>8208496</MinTileCol>
            <MaxTileCol>8364643</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10077418</MinTileRow>
            <MaxTileRow>10543950</MaxTileRow>
            <MinTileCol>16416993</MinTileCol>
            <MaxTileCol>16729287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20154837</MinTileRow>
            <MaxTileRow>21087900</MaxTileRow>
            <MinTileCol>32833986</MinTileCol>
            <MaxTileCol>33458575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40309675</MinTileRow>
            <MaxTileRow>42175800</MaxTileRow>
            <MinTileCol>65667973</MinTileCol>
            <MaxTileCol>66917151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80619350</MinTileRow>
            <MaxTileRow>84351601</MaxTileRow>
            <MinTileCol>131335947</MinTileCol>
            <MaxTileCol>133834302</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161238701</MinTileRow>
            <MaxTileRow>168703202</MaxTileRow>
            <MinTileCol>262671894</MinTileCol>
            <MaxTileCol>267668604</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322477402</MinTileRow>
            <MaxTileRow>337406405</MaxTileRow>
            <MinTileCol>525343788</MinTileCol>
            <MaxTileCol>535337208</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644954805</MinTileRow>
            <MaxTileRow>674812811</MaxTileRow>
            <MinTileCol>1050687576</MinTileCol>
            <MaxTileCol>1070674416</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_1000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_1000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_1000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_1000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_1000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_1000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_1000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_1000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_1000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_1000_mod/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_1000_mod/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_std_30_50</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_std_30_50</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_std_30_50" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_30_50/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_30_50/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>FR.BACKLOG_STATUS</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.76955358395466 -47.660617950949124</ows:LowerCorner>
        <ows:UpperCorner>179.68950819678093 -33.88965490091853</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:FR.BACKLOG_STATUS</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:fred_backlog_status</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=66&amp;height=80&amp;layer=gns%3AFR.BACKLOG_STATUS" width="66" height="80"/>
      </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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2046</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3934</MinTileCol>
            <MaxTileCol>4092</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7868</MinTileCol>
            <MaxTileCol>8184</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6265</MaxTileRow>
            <MinTileCol>15736</MinTileCol>
            <MaxTileCol>16369</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12530</MaxTileRow>
            <MinTileCol>31472</MinTileCol>
            <MaxTileCol>32739</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25060</MaxTileRow>
            <MinTileCol>62945</MinTileCol>
            <MaxTileCol>65479</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50120</MaxTileRow>
            <MinTileCol>125890</MinTileCol>
            <MaxTileCol>130958</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100241</MaxTileRow>
            <MinTileCol>251781</MinTileCol>
            <MaxTileCol>261917</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200482</MaxTileRow>
            <MinTileCol>503563</MinTileCol>
            <MaxTileCol>523835</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360854</MinTileRow>
            <MaxTileRow>400965</MaxTileRow>
            <MinTileCol>1007126</MinTileCol>
            <MaxTileCol>1047671</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721709</MinTileRow>
            <MaxTileRow>801931</MaxTileRow>
            <MinTileCol>2014253</MinTileCol>
            <MaxTileCol>2095343</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443419</MinTileRow>
            <MaxTileRow>1603862</MaxTileRow>
            <MinTileCol>4028507</MinTileCol>
            <MaxTileCol>4190686</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2046</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3934</MinTileCol>
            <MaxTileCol>4092</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7868</MinTileCol>
            <MaxTileCol>8184</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10665</MaxTileRow>
            <MinTileCol>15736</MinTileCol>
            <MaxTileCol>16369</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21331</MaxTileRow>
            <MinTileCol>31472</MinTileCol>
            <MaxTileCol>32739</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42662</MaxTileRow>
            <MinTileCol>62945</MinTileCol>
            <MaxTileCol>65479</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85325</MaxTileRow>
            <MinTileCol>125890</MinTileCol>
            <MaxTileCol>130958</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157328</MinTileRow>
            <MaxTileRow>170650</MaxTileRow>
            <MinTileCol>251781</MinTileCol>
            <MaxTileCol>261917</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314657</MinTileRow>
            <MaxTileRow>341301</MaxTileRow>
            <MinTileCol>503563</MinTileCol>
            <MaxTileCol>523835</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629315</MinTileRow>
            <MaxTileRow>682603</MaxTileRow>
            <MinTileCol>1007126</MinTileCol>
            <MaxTileCol>1047671</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258630</MinTileRow>
            <MaxTileRow>1365206</MaxTileRow>
            <MinTileCol>2014253</MinTileCol>
            <MaxTileCol>2095343</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517261</MinTileRow>
            <MaxTileRow>2730413</MaxTileRow>
            <MinTileCol>4028507</MinTileCol>
            <MaxTileCol>4190686</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034523</MinTileRow>
            <MaxTileRow>5460826</MaxTileRow>
            <MinTileCol>8057014</MinTileCol>
            <MaxTileCol>8381373</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069047</MinTileRow>
            <MaxTileRow>10921653</MaxTileRow>
            <MinTileCol>16114029</MinTileCol>
            <MaxTileCol>16762746</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138095</MinTileRow>
            <MaxTileRow>21843307</MaxTileRow>
            <MinTileCol>32228058</MinTileCol>
            <MaxTileCol>33525492</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276191</MinTileRow>
            <MaxTileRow>43686615</MaxTileRow>
            <MinTileCol>64456116</MinTileCol>
            <MaxTileCol>67050984</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552383</MinTileRow>
            <MaxTileRow>87373231</MaxTileRow>
            <MinTileCol>128912233</MinTileCol>
            <MaxTileCol>134101968</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161104767</MinTileRow>
            <MaxTileRow>174746463</MaxTileRow>
            <MinTileCol>257824466</MinTileCol>
            <MaxTileCol>268203936</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322209535</MinTileRow>
            <MaxTileRow>349492927</MaxTileRow>
            <MinTileCol>515648932</MinTileCol>
            <MaxTileCol>536407873</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644419071</MinTileRow>
            <MaxTileRow>698985854</MaxTileRow>
            <MinTileCol>1031297864</MinTileCol>
            <MaxTileCol>1072815746</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:FR.BACKLOG_STATUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:FR.BACKLOG_STATUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:FR.BACKLOG_STATUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:FR.BACKLOG_STATUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:FR.BACKLOG_STATUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:FR.BACKLOG_STATUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:FR.BACKLOG_STATUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:FR.BACKLOG_STATUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:FR.BACKLOG_STATUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:FR.BACKLOG_STATUS/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:FR.BACKLOG_STATUS/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_mean_150_200</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_mean_150_200</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_mean_150_200" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_150_200/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_150_200/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>GroundwaterFlow_National_FlowModel</ows:Title>
      <ows:Abstract>Classes 0-4 for New Zealand Aotearoa of subsurface groundwater flow rates.  Sourced from GNS Geothermal Team.</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.91699050329268 -47.62805752882768</ows:LowerCorner>
        <ows:UpperCorner>179.5267622692766 -33.898968317672036</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:GroundwaterFlow_National_FlowModel</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AGroundwaterFlow_National_FlowModel" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>782</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1565</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4090</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3131</MaxTileRow>
            <MinTileCol>7871</MinTileCol>
            <MaxTileCol>8181</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6263</MaxTileRow>
            <MinTileCol>15743</MinTileCol>
            <MaxTileCol>16362</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11277</MinTileRow>
            <MaxTileRow>12527</MaxTileRow>
            <MinTileCol>31486</MinTileCol>
            <MaxTileCol>32724</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22555</MinTileRow>
            <MaxTileRow>25054</MaxTileRow>
            <MinTileCol>62972</MinTileCol>
            <MaxTileCol>65449</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45110</MinTileRow>
            <MaxTileRow>50108</MaxTileRow>
            <MinTileCol>125944</MinTileCol>
            <MaxTileCol>130899</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90220</MinTileRow>
            <MaxTileRow>100217</MaxTileRow>
            <MinTileCol>251889</MinTileCol>
            <MaxTileCol>261799</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180440</MinTileRow>
            <MaxTileRow>200435</MaxTileRow>
            <MinTileCol>503778</MinTileCol>
            <MaxTileCol>523598</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360881</MinTileRow>
            <MaxTileRow>400870</MaxTileRow>
            <MinTileCol>1007556</MinTileCol>
            <MaxTileCol>1047197</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721763</MinTileRow>
            <MaxTileRow>801741</MaxTileRow>
            <MinTileCol>2015112</MinTileCol>
            <MaxTileCol>2094395</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443527</MinTileRow>
            <MaxTileRow>1603483</MaxTileRow>
            <MinTileCol>4030225</MinTileCol>
            <MaxTileCol>4188790</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1332</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2665</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4090</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5331</MaxTileRow>
            <MinTileCol>7871</MinTileCol>
            <MaxTileCol>8181</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10663</MaxTileRow>
            <MinTileCol>15743</MinTileCol>
            <MaxTileCol>16362</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19667</MinTileRow>
            <MaxTileRow>21326</MaxTileRow>
            <MinTileCol>31486</MinTileCol>
            <MaxTileCol>32724</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39334</MinTileRow>
            <MaxTileRow>42653</MaxTileRow>
            <MinTileCol>62972</MinTileCol>
            <MaxTileCol>65449</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78668</MinTileRow>
            <MaxTileRow>85307</MaxTileRow>
            <MinTileCol>125944</MinTileCol>
            <MaxTileCol>130899</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157337</MinTileRow>
            <MaxTileRow>170615</MaxTileRow>
            <MinTileCol>251889</MinTileCol>
            <MaxTileCol>261799</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314674</MinTileRow>
            <MaxTileRow>341231</MaxTileRow>
            <MinTileCol>503778</MinTileCol>
            <MaxTileCol>523598</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629348</MinTileRow>
            <MaxTileRow>682462</MaxTileRow>
            <MinTileCol>1007556</MinTileCol>
            <MaxTileCol>1047197</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258696</MinTileRow>
            <MaxTileRow>1364925</MaxTileRow>
            <MinTileCol>2015112</MinTileCol>
            <MaxTileCol>2094395</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517392</MinTileRow>
            <MaxTileRow>2729850</MaxTileRow>
            <MinTileCol>4030225</MinTileCol>
            <MaxTileCol>4188790</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034785</MinTileRow>
            <MaxTileRow>5459700</MaxTileRow>
            <MinTileCol>8060450</MinTileCol>
            <MaxTileCol>8377580</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069570</MinTileRow>
            <MaxTileRow>10919401</MaxTileRow>
            <MinTileCol>16120900</MinTileCol>
            <MaxTileCol>16755161</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20139141</MinTileRow>
            <MaxTileRow>21838803</MaxTileRow>
            <MinTileCol>32241800</MinTileCol>
            <MaxTileCol>33510323</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40278283</MinTileRow>
            <MaxTileRow>43677606</MaxTileRow>
            <MinTileCol>64483600</MinTileCol>
            <MaxTileCol>67020646</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80556567</MinTileRow>
            <MaxTileRow>87355213</MaxTileRow>
            <MinTileCol>128967201</MinTileCol>
            <MaxTileCol>134041292</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161113134</MinTileRow>
            <MaxTileRow>174710427</MaxTileRow>
            <MinTileCol>257934403</MinTileCol>
            <MaxTileCol>268082584</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322226268</MinTileRow>
            <MaxTileRow>349420854</MaxTileRow>
            <MinTileCol>515868806</MinTileCol>
            <MaxTileCol>536165168</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644452536</MinTileRow>
            <MaxTileRow>698841708</MaxTileRow>
            <MinTileCol>1031737612</MinTileCol>
            <MaxTileCol>1072330337</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GroundwaterFlow_National_FlowModel/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GroundwaterFlow_National_FlowModel/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GroundwaterFlow_National_FlowModel/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GroundwaterFlow_National_FlowModel/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GroundwaterFlow_National_FlowModel/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GroundwaterFlow_National_FlowModel/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GroundwaterFlow_National_FlowModel/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GroundwaterFlow_National_FlowModel/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GroundwaterFlow_National_FlowModel/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GroundwaterFlow_National_FlowModel/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GroundwaterFlow_National_FlowModel/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_NZGS</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_NZGS</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_nzgssedlab</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_NZGS" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_NZGS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_NZGS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_NZGS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_NZGS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_NZGS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_NZGS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_NZGS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_NZGS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_NZGS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_NZGS/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_NZGS/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>gns_building_footprint</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>170.513454634475 -45.88756746399838</ows:LowerCorner>
        <ows:UpperCorner>176.46453184710813 -38.63183364905401</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:mis_gns_building_footprint_shadow</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Amis_gns_building_footprint_shadow" 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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>22</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>91</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>249</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>182</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>498</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>365</MinTileRow>
            <MaxTileRow>386</MaxTileRow>
            <MinTileCol>997</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>731</MinTileRow>
            <MaxTileRow>773</MaxTileRow>
            <MinTileCol>1994</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1463</MinTileRow>
            <MaxTileRow>1546</MaxTileRow>
            <MinTileCol>3988</MinTileCol>
            <MaxTileCol>4055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2927</MinTileRow>
            <MaxTileRow>3092</MaxTileRow>
            <MinTileCol>7976</MinTileCol>
            <MaxTileCol>8111</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5854</MinTileRow>
            <MaxTileRow>6184</MaxTileRow>
            <MinTileCol>15952</MinTileCol>
            <MaxTileCol>16223</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11708</MinTileRow>
            <MaxTileRow>12368</MaxTileRow>
            <MinTileCol>31904</MinTileCol>
            <MaxTileCol>32446</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23416</MinTileRow>
            <MaxTileRow>24737</MaxTileRow>
            <MinTileCol>63809</MinTileCol>
            <MaxTileCol>64892</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46833</MinTileRow>
            <MaxTileRow>49475</MaxTileRow>
            <MinTileCol>127618</MinTileCol>
            <MaxTileCol>129784</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>93666</MinTileRow>
            <MaxTileRow>98950</MaxTileRow>
            <MinTileCol>255236</MinTileCol>
            <MaxTileCol>259569</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>187333</MinTileRow>
            <MaxTileRow>197900</MaxTileRow>
            <MinTileCol>510472</MinTileCol>
            <MaxTileCol>519139</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>374667</MinTileRow>
            <MaxTileRow>395801</MaxTileRow>
            <MinTileCol>1020944</MinTileCol>
            <MaxTileCol>1038278</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>749334</MinTileRow>
            <MaxTileRow>791602</MaxTileRow>
            <MinTileCol>2041888</MinTileCol>
            <MaxTileCol>2076556</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1498669</MinTileRow>
            <MaxTileRow>1583204</MaxTileRow>
            <MinTileCol>4083777</MinTileCol>
            <MaxTileCol>4153112</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>157</MinTileRow>
            <MaxTileRow>164</MaxTileRow>
            <MinTileCol>249</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>315</MinTileRow>
            <MaxTileRow>329</MaxTileRow>
            <MinTileCol>498</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>631</MinTileRow>
            <MaxTileRow>659</MaxTileRow>
            <MinTileCol>997</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1262</MinTileRow>
            <MaxTileRow>1318</MaxTileRow>
            <MinTileCol>1994</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2525</MinTileRow>
            <MaxTileRow>2636</MaxTileRow>
            <MinTileCol>3988</MinTileCol>
            <MaxTileCol>4055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5050</MinTileRow>
            <MaxTileRow>5273</MaxTileRow>
            <MinTileCol>7976</MinTileCol>
            <MaxTileCol>8111</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10100</MinTileRow>
            <MaxTileRow>10547</MaxTileRow>
            <MinTileCol>15952</MinTileCol>
            <MaxTileCol>16223</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20201</MinTileRow>
            <MaxTileRow>21095</MaxTileRow>
            <MinTileCol>31904</MinTileCol>
            <MaxTileCol>32446</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40403</MinTileRow>
            <MaxTileRow>42191</MaxTileRow>
            <MinTileCol>63809</MinTileCol>
            <MaxTileCol>64892</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80806</MinTileRow>
            <MaxTileRow>84382</MaxTileRow>
            <MinTileCol>127618</MinTileCol>
            <MaxTileCol>129784</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>161613</MinTileRow>
            <MaxTileRow>168765</MaxTileRow>
            <MinTileCol>255236</MinTileCol>
            <MaxTileCol>259569</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>323227</MinTileRow>
            <MaxTileRow>337530</MaxTileRow>
            <MinTileCol>510472</MinTileCol>
            <MaxTileCol>519139</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>646455</MinTileRow>
            <MaxTileRow>675061</MaxTileRow>
            <MinTileCol>1020944</MinTileCol>
            <MaxTileCol>1038278</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1292911</MinTileRow>
            <MaxTileRow>1350123</MaxTileRow>
            <MinTileCol>2041888</MinTileCol>
            <MaxTileCol>2076556</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2585823</MinTileRow>
            <MaxTileRow>2700247</MaxTileRow>
            <MinTileCol>4083777</MinTileCol>
            <MaxTileCol>4153112</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5171646</MinTileRow>
            <MaxTileRow>5400494</MaxTileRow>
            <MinTileCol>8167555</MinTileCol>
            <MaxTileCol>8306225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10343292</MinTileRow>
            <MaxTileRow>10800988</MaxTileRow>
            <MinTileCol>16335110</MinTileCol>
            <MaxTileCol>16612451</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20686585</MinTileRow>
            <MaxTileRow>21601977</MaxTileRow>
            <MinTileCol>32670221</MinTileCol>
            <MaxTileCol>33224902</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41373170</MinTileRow>
            <MaxTileRow>43203954</MaxTileRow>
            <MinTileCol>65340443</MinTileCol>
            <MaxTileCol>66449804</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82746340</MinTileRow>
            <MaxTileRow>86407908</MaxTileRow>
            <MinTileCol>130680887</MinTileCol>
            <MaxTileCol>132899609</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>165492681</MinTileRow>
            <MaxTileRow>172815817</MaxTileRow>
            <MinTileCol>261361775</MinTileCol>
            <MaxTileCol>265799219</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>330985362</MinTileRow>
            <MaxTileRow>345631634</MaxTileRow>
            <MinTileCol>522723550</MinTileCol>
            <MaxTileCol>531598439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>661970725</MinTileRow>
            <MaxTileRow>691263269</MaxTileRow>
            <MinTileCol>1045447100</MinTileCol>
            <MaxTileCol>1063196879</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_building_footprint_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_building_footprint_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_building_footprint_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_building_footprint_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_building_footprint_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_building_footprint_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_building_footprint_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_building_footprint_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_building_footprint_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_building_footprint_shadow/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_building_footprint_shadow/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_mean_75_100</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_mean_75_100</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_mean_75_100" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_75_100/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_75_100/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZL-Urban_Dunedin_geological_units</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>170.25212840982854 -45.967173713579605</ows:LowerCorner>
        <ows:UpperCorner>170.6368246968354 -45.79156246173338</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZL-Urban_Dunedin_geological_units</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>Urban_Dunedin</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=52&amp;height=940&amp;layer=gns%3ANZL-Urban_Dunedin_geological_units" width="52" height="940"/>
      </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>3</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>249</MinTileCol>
            <MaxTileCol>249</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>498</MinTileCol>
            <MaxTileCol>498</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>386</MinTileRow>
            <MaxTileRow>386</MaxTileRow>
            <MinTileCol>996</MinTileCol>
            <MaxTileCol>997</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>772</MinTileRow>
            <MaxTileRow>773</MaxTileRow>
            <MinTileCol>1992</MinTileCol>
            <MaxTileCol>1994</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1545</MinTileRow>
            <MaxTileRow>1547</MaxTileRow>
            <MinTileCol>3985</MinTileCol>
            <MaxTileCol>3989</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3090</MinTileRow>
            <MaxTileRow>3094</MaxTileRow>
            <MinTileCol>7970</MinTileCol>
            <MaxTileCol>7978</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6180</MinTileRow>
            <MaxTileRow>6188</MaxTileRow>
            <MinTileCol>15940</MinTileCol>
            <MaxTileCol>15957</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12360</MinTileRow>
            <MaxTileRow>12376</MaxTileRow>
            <MinTileCol>31880</MinTileCol>
            <MaxTileCol>31915</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24720</MinTileRow>
            <MaxTileRow>24752</MaxTileRow>
            <MinTileCol>63761</MinTileCol>
            <MaxTileCol>63831</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49440</MinTileRow>
            <MaxTileRow>49504</MaxTileRow>
            <MinTileCol>127522</MinTileCol>
            <MaxTileCol>127662</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>98880</MinTileRow>
            <MaxTileRow>99008</MaxTileRow>
            <MinTileCol>255045</MinTileCol>
            <MaxTileCol>255325</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>197760</MinTileRow>
            <MaxTileRow>198016</MaxTileRow>
            <MinTileCol>510091</MinTileCol>
            <MaxTileCol>510651</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>395521</MinTileRow>
            <MaxTileRow>396033</MaxTileRow>
            <MinTileCol>1020183</MinTileCol>
            <MaxTileCol>1021303</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>791043</MinTileRow>
            <MaxTileRow>792066</MaxTileRow>
            <MinTileCol>2040366</MinTileCol>
            <MaxTileCol>2042607</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1582086</MinTileRow>
            <MaxTileRow>1584132</MaxTileRow>
            <MinTileCol>4080733</MinTileCol>
            <MaxTileCol>4085215</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>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>164</MaxTileRow>
            <MinTileCol>249</MinTileCol>
            <MaxTileCol>249</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>329</MaxTileRow>
            <MinTileCol>498</MinTileCol>
            <MaxTileCol>498</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>658</MinTileRow>
            <MaxTileRow>659</MaxTileRow>
            <MinTileCol>996</MinTileCol>
            <MaxTileCol>997</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1317</MinTileRow>
            <MaxTileRow>1319</MaxTileRow>
            <MinTileCol>1992</MinTileCol>
            <MaxTileCol>1994</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2635</MinTileRow>
            <MaxTileRow>2638</MaxTileRow>
            <MinTileCol>3985</MinTileCol>
            <MaxTileCol>3989</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5270</MinTileRow>
            <MaxTileRow>5276</MaxTileRow>
            <MinTileCol>7970</MinTileCol>
            <MaxTileCol>7978</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10541</MinTileRow>
            <MaxTileRow>10553</MaxTileRow>
            <MinTileCol>15940</MinTileCol>
            <MaxTileCol>15957</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21083</MinTileRow>
            <MaxTileRow>21106</MaxTileRow>
            <MinTileCol>31880</MinTileCol>
            <MaxTileCol>31915</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42166</MinTileRow>
            <MaxTileRow>42212</MaxTileRow>
            <MinTileCol>63761</MinTileCol>
            <MaxTileCol>63831</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84332</MinTileRow>
            <MaxTileRow>84424</MaxTileRow>
            <MinTileCol>127522</MinTileCol>
            <MaxTileCol>127662</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168665</MinTileRow>
            <MaxTileRow>168848</MaxTileRow>
            <MinTileCol>255045</MinTileCol>
            <MaxTileCol>255325</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337330</MinTileRow>
            <MaxTileRow>337697</MaxTileRow>
            <MinTileCol>510091</MinTileCol>
            <MaxTileCol>510651</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>674660</MinTileRow>
            <MaxTileRow>675395</MaxTileRow>
            <MinTileCol>1020183</MinTileCol>
            <MaxTileCol>1021303</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1349320</MinTileRow>
            <MaxTileRow>1350790</MaxTileRow>
            <MinTileCol>2040366</MinTileCol>
            <MaxTileCol>2042607</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2698641</MinTileRow>
            <MaxTileRow>2701580</MaxTileRow>
            <MinTileCol>4080733</MinTileCol>
            <MaxTileCol>4085215</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5397283</MinTileRow>
            <MaxTileRow>5403161</MaxTileRow>
            <MinTileCol>8161466</MinTileCol>
            <MaxTileCol>8170430</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10794566</MinTileRow>
            <MaxTileRow>10806322</MaxTileRow>
            <MinTileCol>16322932</MinTileCol>
            <MaxTileCol>16340860</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21589132</MinTileRow>
            <MaxTileRow>21612644</MaxTileRow>
            <MinTileCol>32645864</MinTileCol>
            <MaxTileCol>32681720</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43178265</MinTileRow>
            <MaxTileRow>43225288</MaxTileRow>
            <MinTileCol>65291729</MinTileCol>
            <MaxTileCol>65363441</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86356531</MinTileRow>
            <MaxTileRow>86450577</MaxTileRow>
            <MinTileCol>130583458</MinTileCol>
            <MaxTileCol>130726883</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>172713062</MinTileRow>
            <MaxTileRow>172901155</MaxTileRow>
            <MinTileCol>261166916</MinTileCol>
            <MaxTileCol>261453766</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>345426124</MinTileRow>
            <MaxTileRow>345802311</MaxTileRow>
            <MinTileCol>522333832</MinTileCol>
            <MaxTileCol>522907532</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>690852248</MinTileRow>
            <MaxTileRow>691604622</MaxTileRow>
            <MinTileCol>1044667664</MinTileCol>
            <MaxTileCol>1045815065</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Dunedin_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Dunedin_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Dunedin_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Dunedin_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Dunedin_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Dunedin_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Dunedin_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Dunedin_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Dunedin_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Dunedin_geological_units/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Dunedin_geological_units/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZL_GNS_1M_Miscellaneous_Boundaries</ows:Title>
      <ows:Abstract>This dataset is the bounding arcs to the 1:1 000 000 miscellaneous polygons (water, ice, etc) data for New Zealand. The dataset is a product of the Geological Map of New Zealand 1: 1 000 000 project and was produced by GNS Science. The dataset is stored in an ESRI vector geodatabase and exported to Geoserver and ArcGIS Server. The dataset comprises arcs with each arc having attributes describing the type of contact, its name, exposure and accuracy. The data should not be used at scales beyond that for which it was prepared. The spatial accuracy is estimated to be no better than +/- 500 m.</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.868942260742 -52.6200981140137</ows:LowerCorner>
        <ows:UpperCorner>179.065063476562 -34.142936706543</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZL_GNS_1M_Miscellaneous_Boundaries</ows:Identifier>
      <ows:Metadata xlink:type="simple" xlink:href="https://data.gns.cri.nz/rgmad/datadict/GMNZ1M/2014/NZL_GNS_1M_miscellaneous_boundaries.html"/>
      <Style isDefault="true">
        <ows:Identifier>gns:gmnz_misc_boundaries</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=103&amp;height=80&amp;layer=gns%3ANZL_GNS_1M_Miscellaneous_Boundaries" width="103" height="80" minScaleDenominator="1.0" maxScaleDenominator="3000000.0"/>
      </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>25</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>50</MaxTileRow>
            <MinTileCol>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>101</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>202</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>405</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>706</MinTileRow>
            <MaxTileRow>811</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1412</MinTileRow>
            <MaxTileRow>1622</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4085</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2824</MinTileRow>
            <MaxTileRow>3245</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8170</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5649</MinTileRow>
            <MaxTileRow>6490</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16341</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11299</MinTileRow>
            <MaxTileRow>12981</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32682</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22599</MinTileRow>
            <MaxTileRow>25963</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65365</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45199</MinTileRow>
            <MaxTileRow>51926</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130731</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90398</MinTileRow>
            <MaxTileRow>103852</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261463</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180796</MinTileRow>
            <MaxTileRow>207705</MaxTileRow>
            <MinTileCol>503708</MinTileCol>
            <MaxTileCol>522926</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361592</MinTileRow>
            <MaxTileRow>415411</MaxTileRow>
            <MinTileCol>1007416</MinTileCol>
            <MaxTileCol>1045852</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>723185</MinTileRow>
            <MaxTileRow>830822</MaxTileRow>
            <MinTileCol>2014832</MinTileCol>
            <MaxTileCol>2091705</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1446370</MinTileRow>
            <MaxTileRow>1661644</MaxTileRow>
            <MinTileCol>4029665</MinTileCol>
            <MaxTileCol>4183411</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>21</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>43</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>86</MaxTileRow>
            <MinTileCol>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>172</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>344</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>688</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1230</MinTileRow>
            <MaxTileRow>1377</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2461</MinTileRow>
            <MaxTileRow>2754</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4085</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4923</MinTileRow>
            <MaxTileRow>5509</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8170</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9846</MinTileRow>
            <MaxTileRow>11018</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16341</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19693</MinTileRow>
            <MaxTileRow>22036</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32682</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39387</MinTileRow>
            <MaxTileRow>44073</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65365</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78775</MinTileRow>
            <MaxTileRow>88146</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130731</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157551</MinTileRow>
            <MaxTileRow>176292</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261463</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315102</MinTileRow>
            <MaxTileRow>352584</MaxTileRow>
            <MinTileCol>503708</MinTileCol>
            <MaxTileCol>522926</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630205</MinTileRow>
            <MaxTileRow>705169</MaxTileRow>
            <MinTileCol>1007416</MinTileCol>
            <MaxTileCol>1045852</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1260411</MinTileRow>
            <MaxTileRow>1410339</MaxTileRow>
            <MinTileCol>2014832</MinTileCol>
            <MaxTileCol>2091705</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2520822</MinTileRow>
            <MaxTileRow>2820679</MaxTileRow>
            <MinTileCol>4029665</MinTileCol>
            <MaxTileCol>4183411</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5041644</MinTileRow>
            <MaxTileRow>5641358</MaxTileRow>
            <MinTileCol>8059330</MinTileCol>
            <MaxTileCol>8366822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10083288</MinTileRow>
            <MaxTileRow>11282716</MaxTileRow>
            <MinTileCol>16118660</MinTileCol>
            <MaxTileCol>16733644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20166577</MinTileRow>
            <MaxTileRow>22565433</MaxTileRow>
            <MinTileCol>32237321</MinTileCol>
            <MaxTileCol>33467289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40333154</MinTileRow>
            <MaxTileRow>45130866</MaxTileRow>
            <MinTileCol>64474643</MinTileCol>
            <MaxTileCol>66934579</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80666309</MinTileRow>
            <MaxTileRow>90261732</MaxTileRow>
            <MinTileCol>128949287</MinTileCol>
            <MaxTileCol>133869158</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161332619</MinTileRow>
            <MaxTileRow>180523465</MaxTileRow>
            <MinTileCol>257898575</MinTileCol>
            <MaxTileCol>267738316</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322665238</MinTileRow>
            <MaxTileRow>361046931</MaxTileRow>
            <MinTileCol>515797151</MinTileCol>
            <MaxTileCol>535476633</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645330476</MinTileRow>
            <MaxTileRow>722093863</MaxTileRow>
            <MinTileCol>1031594302</MinTileCol>
            <MaxTileCol>1070953267</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Boundaries/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Boundaries/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_mean_50_75</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_mean_50_75</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_mean_50_75" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_50_75/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_50_75/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_mean_250_300</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_mean_250_300</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_mean_250_300" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_250_300/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_250_300/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZL-Urban_Blenheim_geological_units</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.7998097852555 -41.55595771200798</ows:LowerCorner>
        <ows:UpperCorner>174.08054740687757 -41.390003017471386</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZL-Urban_Blenheim_geological_units</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>Urban_Blenheim</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=50&amp;height=640&amp;layer=gns%3ANZL-Urban_Blenheim_geological_units" width="50" height="640"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4025</MinTileCol>
            <MaxTileCol>4028</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8050</MinTileCol>
            <MaxTileCol>8057</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16101</MinTileCol>
            <MaxTileCol>16114</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11959</MinTileRow>
            <MaxTileRow>11974</MaxTileRow>
            <MinTileCol>32203</MinTileCol>
            <MaxTileCol>32229</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23918</MinTileRow>
            <MaxTileRow>23949</MaxTileRow>
            <MinTileCol>64407</MinTileCol>
            <MaxTileCol>64458</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47837</MinTileRow>
            <MaxTileRow>47898</MaxTileRow>
            <MinTileCol>128814</MinTileCol>
            <MaxTileCol>128916</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95675</MinTileRow>
            <MaxTileRow>95796</MaxTileRow>
            <MinTileCol>257629</MinTileCol>
            <MaxTileCol>257833</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191350</MinTileRow>
            <MaxTileRow>191592</MaxTileRow>
            <MinTileCol>515258</MinTileCol>
            <MaxTileCol>515667</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382701</MinTileRow>
            <MaxTileRow>383184</MaxTileRow>
            <MinTileCol>1030516</MinTileCol>
            <MaxTileCol>1031334</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765402</MinTileRow>
            <MaxTileRow>766368</MaxTileRow>
            <MinTileCol>2061033</MinTileCol>
            <MaxTileCol>2062668</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530804</MinTileRow>
            <MaxTileRow>1532737</MaxTileRow>
            <MinTileCol>4122066</MinTileCol>
            <MaxTileCol>4125337</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4025</MinTileCol>
            <MaxTileCol>4028</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8050</MinTileCol>
            <MaxTileCol>8057</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10274</MaxTileRow>
            <MinTileCol>16101</MinTileCol>
            <MaxTileCol>16114</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20529</MinTileRow>
            <MaxTileRow>20549</MaxTileRow>
            <MinTileCol>32203</MinTileCol>
            <MaxTileCol>32229</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41059</MinTileRow>
            <MaxTileRow>41099</MaxTileRow>
            <MinTileCol>64407</MinTileCol>
            <MaxTileCol>64458</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82118</MinTileRow>
            <MaxTileRow>82199</MaxTileRow>
            <MinTileCol>128814</MinTileCol>
            <MaxTileCol>128916</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164236</MinTileRow>
            <MaxTileRow>164398</MaxTileRow>
            <MinTileCol>257629</MinTileCol>
            <MaxTileCol>257833</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328473</MinTileRow>
            <MaxTileRow>328796</MaxTileRow>
            <MinTileCol>515258</MinTileCol>
            <MaxTileCol>515667</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656947</MinTileRow>
            <MaxTileRow>657592</MaxTileRow>
            <MinTileCol>1030516</MinTileCol>
            <MaxTileCol>1031334</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313894</MinTileRow>
            <MaxTileRow>1315184</MaxTileRow>
            <MinTileCol>2061033</MinTileCol>
            <MaxTileCol>2062668</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627788</MinTileRow>
            <MaxTileRow>2630369</MaxTileRow>
            <MinTileCol>4122066</MinTileCol>
            <MaxTileCol>4125337</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255577</MinTileRow>
            <MaxTileRow>5260738</MaxTileRow>
            <MinTileCol>8244133</MinTileCol>
            <MaxTileCol>8250674</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10511155</MinTileRow>
            <MaxTileRow>10521477</MaxTileRow>
            <MinTileCol>16488266</MinTileCol>
            <MaxTileCol>16501349</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21022311</MinTileRow>
            <MaxTileRow>21042955</MaxTileRow>
            <MinTileCol>32976532</MinTileCol>
            <MaxTileCol>33002699</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42044622</MinTileRow>
            <MaxTileRow>42085910</MaxTileRow>
            <MinTileCol>65953064</MinTileCol>
            <MaxTileCol>66005398</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84089244</MinTileRow>
            <MaxTileRow>84171821</MaxTileRow>
            <MinTileCol>131906129</MinTileCol>
            <MaxTileCol>132010796</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168178488</MinTileRow>
            <MaxTileRow>168343643</MaxTileRow>
            <MinTileCol>263812259</MinTileCol>
            <MaxTileCol>264021592</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336356977</MinTileRow>
            <MaxTileRow>336687286</MaxTileRow>
            <MinTileCol>527624518</MinTileCol>
            <MaxTileCol>528043184</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672713954</MinTileRow>
            <MaxTileRow>673374572</MaxTileRow>
            <MinTileCol>1055249036</MinTileCol>
            <MaxTileCol>1056086369</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Blenheim_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Blenheim_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Blenheim_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Blenheim_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Blenheim_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Blenheim_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Blenheim_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Blenheim_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Blenheim_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Blenheim_geological_units/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Blenheim_geological_units/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>coastal_outline</ows:Title>
      <ows:Abstract>This provides a polygon coastline and islands layer which is based on the LINZ Topo500 products.</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.25919075912836 -47.42347279227447</ows:LowerCorner>
        <ows:UpperCorner>179.50402777052992 -34.0062588478465</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:coastal_outline</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Acoastal_outline" 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>352</MinTileRow>
            <MaxTileRow>390</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>705</MinTileRow>
            <MaxTileRow>781</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1410</MinTileRow>
            <MaxTileRow>1563</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4090</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2821</MinTileRow>
            <MaxTileRow>3127</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8180</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5643</MinTileRow>
            <MaxTileRow>6254</MaxTileRow>
            <MinTileCol>15758</MinTileCol>
            <MaxTileCol>16361</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11287</MinTileRow>
            <MaxTileRow>12508</MaxTileRow>
            <MinTileCol>31517</MinTileCol>
            <MaxTileCol>32722</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22574</MinTileRow>
            <MaxTileRow>25017</MaxTileRow>
            <MinTileCol>63034</MinTileCol>
            <MaxTileCol>65445</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45149</MinTileRow>
            <MaxTileRow>50034</MaxTileRow>
            <MinTileCol>126069</MinTileCol>
            <MaxTileCol>130891</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90298</MinTileRow>
            <MaxTileRow>100068</MaxTileRow>
            <MinTileCol>252138</MinTileCol>
            <MaxTileCol>261782</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180597</MinTileRow>
            <MaxTileRow>200137</MaxTileRow>
            <MinTileCol>504276</MinTileCol>
            <MaxTileCol>523565</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361194</MinTileRow>
            <MaxTileRow>400274</MaxTileRow>
            <MinTileCol>1008552</MinTileCol>
            <MaxTileCol>1047131</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>722388</MinTileRow>
            <MaxTileRow>800549</MaxTileRow>
            <MinTileCol>2017105</MinTileCol>
            <MaxTileCol>2094262</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1444777</MinTileRow>
            <MaxTileRow>1601099</MaxTileRow>
            <MinTileCol>4034211</MinTileCol>
            <MaxTileCol>4188525</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>614</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1331</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2459</MinTileRow>
            <MaxTileRow>2662</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4090</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4919</MinTileRow>
            <MaxTileRow>5324</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8180</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9839</MinTileRow>
            <MaxTileRow>10649</MaxTileRow>
            <MinTileCol>15758</MinTileCol>
            <MaxTileCol>16361</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19678</MinTileRow>
            <MaxTileRow>21299</MaxTileRow>
            <MinTileCol>31517</MinTileCol>
            <MaxTileCol>32722</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39357</MinTileRow>
            <MaxTileRow>42598</MaxTileRow>
            <MinTileCol>63034</MinTileCol>
            <MaxTileCol>65445</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78715</MinTileRow>
            <MaxTileRow>85197</MaxTileRow>
            <MinTileCol>126069</MinTileCol>
            <MaxTileCol>130891</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157431</MinTileRow>
            <MaxTileRow>170395</MaxTileRow>
            <MinTileCol>252138</MinTileCol>
            <MaxTileCol>261782</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314862</MinTileRow>
            <MaxTileRow>340790</MaxTileRow>
            <MinTileCol>504276</MinTileCol>
            <MaxTileCol>523565</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629724</MinTileRow>
            <MaxTileRow>681580</MaxTileRow>
            <MinTileCol>1008552</MinTileCol>
            <MaxTileCol>1047131</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1259449</MinTileRow>
            <MaxTileRow>1363160</MaxTileRow>
            <MinTileCol>2017105</MinTileCol>
            <MaxTileCol>2094262</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2518899</MinTileRow>
            <MaxTileRow>2726320</MaxTileRow>
            <MinTileCol>4034211</MinTileCol>
            <MaxTileCol>4188525</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5037799</MinTileRow>
            <MaxTileRow>5452641</MaxTileRow>
            <MinTileCol>8068423</MinTileCol>
            <MaxTileCol>8377051</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10075598</MinTileRow>
            <MaxTileRow>10905282</MaxTileRow>
            <MinTileCol>16136847</MinTileCol>
            <MaxTileCol>16754102</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20151197</MinTileRow>
            <MaxTileRow>21810564</MaxTileRow>
            <MinTileCol>32273695</MinTileCol>
            <MaxTileCol>33508204</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40302394</MinTileRow>
            <MaxTileRow>43621128</MaxTileRow>
            <MinTileCol>64547391</MinTileCol>
            <MaxTileCol>67016408</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80604789</MinTileRow>
            <MaxTileRow>87242257</MaxTileRow>
            <MinTileCol>129094783</MinTileCol>
            <MaxTileCol>134032816</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161209579</MinTileRow>
            <MaxTileRow>174484514</MaxTileRow>
            <MinTileCol>258189566</MinTileCol>
            <MaxTileCol>268065632</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322419159</MinTileRow>
            <MaxTileRow>348969028</MaxTileRow>
            <MinTileCol>516379132</MinTileCol>
            <MaxTileCol>536131264</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644838319</MinTileRow>
            <MaxTileRow>697938056</MaxTileRow>
            <MinTileCol>1032758264</MinTileCol>
            <MaxTileCol>1072262529</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coastal_outline/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coastal_outline/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coastal_outline/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coastal_outline/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coastal_outline/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coastal_outline/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coastal_outline/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coastal_outline/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coastal_outline/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coastal_outline/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coastal_outline/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>New Zealand GERM mineral occurrences EarthResourceML Lite-compliant</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.45500800123548 -46.99271412767003</ows:LowerCorner>
        <ows:UpperCorner>178.53702291824428 -34.334495292703416</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:GERM_ERML_VIEW</ows:Identifier>
      <ows:Metadata xlink:type="simple" xlink:href="https://catalogue.data.govt.nz/dataset/geological-resource-map-of-new-zealand"/>
      <Style isDefault="true">
        <ows:Identifier>gns:germ_erml_view_lc</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=77&amp;height=60&amp;layer=gns%3AGERM_ERML_VIEW" width="77" height="60"/>
      </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>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>389</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>707</MinTileRow>
            <MaxTileRow>779</MaxTileRow>
            <MinTileCol>1970</MinTileCol>
            <MaxTileCol>2039</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1414</MinTileRow>
            <MaxTileRow>1558</MaxTileRow>
            <MinTileCol>3941</MinTileCol>
            <MaxTileCol>4079</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2829</MinTileRow>
            <MaxTileRow>3117</MaxTileRow>
            <MinTileCol>7883</MinTileCol>
            <MaxTileCol>8158</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5658</MinTileRow>
            <MaxTileRow>6234</MaxTileRow>
            <MinTileCol>15767</MinTileCol>
            <MaxTileCol>16317</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11317</MinTileRow>
            <MaxTileRow>12469</MaxTileRow>
            <MinTileCol>31535</MinTileCol>
            <MaxTileCol>32634</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22634</MinTileRow>
            <MaxTileRow>24938</MaxTileRow>
            <MinTileCol>63070</MinTileCol>
            <MaxTileCol>65269</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45268</MinTileRow>
            <MaxTileRow>49877</MaxTileRow>
            <MinTileCol>126140</MinTileCol>
            <MaxTileCol>130539</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90537</MinTileRow>
            <MaxTileRow>99755</MaxTileRow>
            <MinTileCol>252280</MinTileCol>
            <MaxTileCol>261078</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>181075</MinTileRow>
            <MaxTileRow>199510</MaxTileRow>
            <MinTileCol>504561</MinTileCol>
            <MaxTileCol>522157</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>362150</MinTileRow>
            <MaxTileRow>399020</MaxTileRow>
            <MinTileCol>1009123</MinTileCol>
            <MaxTileCol>1044314</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>724300</MinTileRow>
            <MaxTileRow>798040</MaxTileRow>
            <MinTileCol>2018246</MinTileCol>
            <MaxTileCol>2088629</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1448601</MinTileRow>
            <MaxTileRow>1596080</MaxTileRow>
            <MinTileCol>4036493</MinTileCol>
            <MaxTileCol>4177259</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>77</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>308</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>616</MinTileRow>
            <MaxTileRow>663</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1232</MinTileRow>
            <MaxTileRow>1327</MaxTileRow>
            <MinTileCol>1970</MinTileCol>
            <MaxTileCol>2039</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2464</MinTileRow>
            <MaxTileRow>2655</MaxTileRow>
            <MinTileCol>3941</MinTileCol>
            <MaxTileCol>4079</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4928</MinTileRow>
            <MaxTileRow>5310</MaxTileRow>
            <MinTileCol>7883</MinTileCol>
            <MaxTileCol>8158</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9857</MinTileRow>
            <MaxTileRow>10620</MaxTileRow>
            <MinTileCol>15767</MinTileCol>
            <MaxTileCol>16317</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19715</MinTileRow>
            <MaxTileRow>21241</MaxTileRow>
            <MinTileCol>31535</MinTileCol>
            <MaxTileCol>32634</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39430</MinTileRow>
            <MaxTileRow>42483</MaxTileRow>
            <MinTileCol>63070</MinTileCol>
            <MaxTileCol>65269</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78860</MinTileRow>
            <MaxTileRow>84966</MaxTileRow>
            <MinTileCol>126140</MinTileCol>
            <MaxTileCol>130539</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157720</MinTileRow>
            <MaxTileRow>169933</MaxTileRow>
            <MinTileCol>252280</MinTileCol>
            <MaxTileCol>261078</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315440</MinTileRow>
            <MaxTileRow>339866</MaxTileRow>
            <MinTileCol>504561</MinTileCol>
            <MaxTileCol>522157</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630880</MinTileRow>
            <MaxTileRow>679733</MaxTileRow>
            <MinTileCol>1009123</MinTileCol>
            <MaxTileCol>1044314</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1261760</MinTileRow>
            <MaxTileRow>1359466</MaxTileRow>
            <MinTileCol>2018246</MinTileCol>
            <MaxTileCol>2088629</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2523521</MinTileRow>
            <MaxTileRow>2718932</MaxTileRow>
            <MinTileCol>4036493</MinTileCol>
            <MaxTileCol>4177259</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5047043</MinTileRow>
            <MaxTileRow>5437865</MaxTileRow>
            <MinTileCol>8072986</MinTileCol>
            <MaxTileCol>8354518</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10094087</MinTileRow>
            <MaxTileRow>10875731</MaxTileRow>
            <MinTileCol>16145973</MinTileCol>
            <MaxTileCol>16709036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20188174</MinTileRow>
            <MaxTileRow>21751462</MaxTileRow>
            <MinTileCol>32291947</MinTileCol>
            <MaxTileCol>33418072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40376349</MinTileRow>
            <MaxTileRow>43502925</MaxTileRow>
            <MinTileCol>64583894</MinTileCol>
            <MaxTileCol>66836145</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80752699</MinTileRow>
            <MaxTileRow>87005850</MaxTileRow>
            <MinTileCol>129167788</MinTileCol>
            <MaxTileCol>133672290</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161505398</MinTileRow>
            <MaxTileRow>174011701</MaxTileRow>
            <MinTileCol>258335577</MinTileCol>
            <MaxTileCol>267344581</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>323010796</MinTileRow>
            <MaxTileRow>348023402</MaxTileRow>
            <MinTileCol>516671155</MinTileCol>
            <MaxTileCol>534689162</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>646021592</MinTileRow>
            <MaxTileRow>696046805</MaxTileRow>
            <MinTileCol>1033342311</MinTileCol>
            <MaxTileCol>1069378324</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>geothf_bop</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>175.41052510659094 -39.138312987950535</ows:LowerCorner>
        <ows:UpperCorner>177.1323554336268 -37.67618956166619</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:geothf_bop</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:geothermal_field_raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=22&amp;height=91&amp;layer=gns%3Ageothf_bop" width="22" height="91"/>
      </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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>90</MinTileRow>
            <MaxTileRow>91</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>181</MinTileRow>
            <MaxTileRow>183</MaxTileRow>
            <MinTileCol>505</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>363</MinTileRow>
            <MaxTileRow>367</MaxTileRow>
            <MinTileCol>1010</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>726</MinTileRow>
            <MaxTileRow>734</MaxTileRow>
            <MinTileCol>2021</MinTileCol>
            <MaxTileCol>2031</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1452</MinTileRow>
            <MaxTileRow>1469</MaxTileRow>
            <MinTileCol>4043</MinTileCol>
            <MaxTileCol>4063</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2905</MinTileRow>
            <MaxTileRow>2938</MaxTileRow>
            <MinTileCol>8087</MinTileCol>
            <MaxTileCol>8126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5810</MinTileRow>
            <MaxTileRow>5877</MaxTileRow>
            <MinTileCol>16175</MinTileCol>
            <MaxTileCol>16253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11621</MinTileRow>
            <MaxTileRow>11754</MaxTileRow>
            <MinTileCol>32350</MinTileCol>
            <MaxTileCol>32506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23242</MinTileRow>
            <MaxTileRow>23508</MaxTileRow>
            <MinTileCol>64700</MinTileCol>
            <MaxTileCol>65013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46485</MinTileRow>
            <MaxTileRow>47017</MaxTileRow>
            <MinTileCol>129401</MinTileCol>
            <MaxTileCol>130027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>92970</MinTileRow>
            <MaxTileRow>94035</MaxTileRow>
            <MinTileCol>258802</MinTileCol>
            <MaxTileCol>260055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>185941</MinTileRow>
            <MaxTileRow>188071</MaxTileRow>
            <MinTileCol>517604</MinTileCol>
            <MaxTileCol>520111</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>371883</MinTileRow>
            <MaxTileRow>376142</MaxTileRow>
            <MinTileCol>1035208</MinTileCol>
            <MaxTileCol>1040223</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>743767</MinTileRow>
            <MaxTileRow>752285</MaxTileRow>
            <MinTileCol>2070416</MinTileCol>
            <MaxTileCol>2080446</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1487535</MinTileRow>
            <MaxTileRow>1504570</MaxTileRow>
            <MinTileCol>4140832</MinTileCol>
            <MaxTileCol>4160893</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>156</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>313</MinTileRow>
            <MaxTileRow>316</MaxTileRow>
            <MinTileCol>505</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>627</MinTileRow>
            <MaxTileRow>633</MaxTileRow>
            <MinTileCol>1010</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1255</MinTileRow>
            <MaxTileRow>1266</MaxTileRow>
            <MinTileCol>2021</MinTileCol>
            <MaxTileCol>2031</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2511</MinTileRow>
            <MaxTileRow>2532</MaxTileRow>
            <MinTileCol>4043</MinTileCol>
            <MaxTileCol>4063</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5022</MinTileRow>
            <MaxTileRow>5065</MaxTileRow>
            <MinTileCol>8087</MinTileCol>
            <MaxTileCol>8126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10045</MinTileRow>
            <MaxTileRow>10130</MaxTileRow>
            <MinTileCol>16175</MinTileCol>
            <MaxTileCol>16253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20091</MinTileRow>
            <MaxTileRow>20260</MaxTileRow>
            <MinTileCol>32350</MinTileCol>
            <MaxTileCol>32506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40182</MinTileRow>
            <MaxTileRow>40521</MaxTileRow>
            <MinTileCol>64700</MinTileCol>
            <MaxTileCol>65013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80364</MinTileRow>
            <MaxTileRow>81043</MaxTileRow>
            <MinTileCol>129401</MinTileCol>
            <MaxTileCol>130027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>160728</MinTileRow>
            <MaxTileRow>162087</MaxTileRow>
            <MinTileCol>258802</MinTileCol>
            <MaxTileCol>260055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>321457</MinTileRow>
            <MaxTileRow>324175</MaxTileRow>
            <MinTileCol>517604</MinTileCol>
            <MaxTileCol>520111</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>642915</MinTileRow>
            <MaxTileRow>648350</MaxTileRow>
            <MinTileCol>1035208</MinTileCol>
            <MaxTileCol>1040223</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1285831</MinTileRow>
            <MaxTileRow>1296701</MaxTileRow>
            <MinTileCol>2070416</MinTileCol>
            <MaxTileCol>2080446</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2571663</MinTileRow>
            <MaxTileRow>2593403</MaxTileRow>
            <MinTileCol>4140832</MinTileCol>
            <MaxTileCol>4160893</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5143327</MinTileRow>
            <MaxTileRow>5186807</MaxTileRow>
            <MinTileCol>8281665</MinTileCol>
            <MaxTileCol>8321787</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10286654</MinTileRow>
            <MaxTileRow>10373615</MaxTileRow>
            <MinTileCol>16563330</MinTileCol>
            <MaxTileCol>16643574</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20573309</MinTileRow>
            <MaxTileRow>20747231</MaxTileRow>
            <MinTileCol>33126661</MinTileCol>
            <MaxTileCol>33287148</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41146618</MinTileRow>
            <MaxTileRow>41494463</MaxTileRow>
            <MinTileCol>66253323</MinTileCol>
            <MaxTileCol>66574296</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82293237</MinTileRow>
            <MaxTileRow>82988926</MaxTileRow>
            <MinTileCol>132506647</MinTileCol>
            <MaxTileCol>133148592</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>164586474</MinTileRow>
            <MaxTileRow>165977853</MaxTileRow>
            <MinTileCol>265013295</MinTileCol>
            <MaxTileCol>266297185</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>329172949</MinTileRow>
            <MaxTileRow>331955706</MaxTileRow>
            <MinTileCol>530026591</MinTileCol>
            <MaxTileCol>532594370</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>658345898</MinTileRow>
            <MaxTileRow>663911413</MaxTileRow>
            <MinTileCol>1060053182</MinTileCol>
            <MaxTileCol>1065188740</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothf_bop/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothf_bop/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothf_bop/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothf_bop/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothf_bop/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothf_bop/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothf_bop/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothf_bop/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothf_bop/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothf_bop/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothf_bop/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>tvz_subsurface_depth_estimated</ows:Title>
      <ows:Abstract>Subsurface well depths for Taupo Volcanic Zone, measured in Celsius.  Interpolated using Inverse Distance Weighting algorithm based on well data.  Intended to be used in combination with layer of interpolation for temperature from boreholes in the TVZ, tvz_subsurface_temperature_estimated.</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>175.31200566893844 -39.42714577895321</ows:LowerCorner>
        <ows:UpperCorner>177.35944660109035 -37.51221308428394</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:tvz_subsurface_depth_estimated</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Atvz_subsurface_depth_estimated" 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>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>90</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>181</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>505</MinTileCol>
            <MaxTileCol>508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>362</MinTileRow>
            <MaxTileRow>368</MaxTileRow>
            <MinTileCol>1010</MinTileCol>
            <MaxTileCol>1016</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>725</MinTileRow>
            <MaxTileRow>736</MaxTileRow>
            <MinTileCol>2021</MinTileCol>
            <MaxTileCol>2032</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1450</MinTileRow>
            <MaxTileRow>1472</MaxTileRow>
            <MinTileCol>4042</MinTileCol>
            <MaxTileCol>4065</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2901</MinTileRow>
            <MaxTileRow>2945</MaxTileRow>
            <MinTileCol>8085</MinTileCol>
            <MaxTileCol>8131</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5803</MinTileRow>
            <MaxTileRow>5890</MaxTileRow>
            <MinTileCol>16170</MinTileCol>
            <MaxTileCol>16263</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11606</MinTileRow>
            <MaxTileRow>11780</MaxTileRow>
            <MinTileCol>32341</MinTileCol>
            <MaxTileCol>32527</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23212</MinTileRow>
            <MaxTileRow>23561</MaxTileRow>
            <MinTileCol>64682</MinTileCol>
            <MaxTileCol>65055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46425</MinTileRow>
            <MaxTileRow>47122</MaxTileRow>
            <MinTileCol>129365</MinTileCol>
            <MaxTileCol>130110</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>92851</MinTileRow>
            <MaxTileRow>94245</MaxTileRow>
            <MinTileCol>258730</MinTileCol>
            <MaxTileCol>260221</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>185703</MinTileRow>
            <MaxTileRow>188491</MaxTileRow>
            <MinTileCol>517460</MinTileCol>
            <MaxTileCol>520442</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>371406</MinTileRow>
            <MaxTileRow>376983</MaxTileRow>
            <MinTileCol>1034921</MinTileCol>
            <MaxTileCol>1040884</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>742812</MinTileRow>
            <MaxTileRow>753967</MaxTileRow>
            <MinTileCol>2069842</MinTileCol>
            <MaxTileCol>2081769</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1485624</MinTileRow>
            <MaxTileRow>1507935</MaxTileRow>
            <MinTileCol>4139684</MinTileCol>
            <MaxTileCol>4163539</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>156</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>313</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>505</MinTileCol>
            <MaxTileCol>508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>627</MinTileRow>
            <MaxTileRow>634</MaxTileRow>
            <MinTileCol>1010</MinTileCol>
            <MaxTileCol>1016</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1254</MinTileRow>
            <MaxTileRow>1268</MaxTileRow>
            <MinTileCol>2021</MinTileCol>
            <MaxTileCol>2032</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2509</MinTileRow>
            <MaxTileRow>2536</MaxTileRow>
            <MinTileCol>4042</MinTileCol>
            <MaxTileCol>4065</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5018</MinTileRow>
            <MaxTileRow>5073</MaxTileRow>
            <MinTileCol>8085</MinTileCol>
            <MaxTileCol>8131</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10036</MinTileRow>
            <MaxTileRow>10147</MaxTileRow>
            <MinTileCol>16170</MinTileCol>
            <MaxTileCol>16263</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20072</MinTileRow>
            <MaxTileRow>20294</MaxTileRow>
            <MinTileCol>32341</MinTileCol>
            <MaxTileCol>32527</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40144</MinTileRow>
            <MaxTileRow>40589</MaxTileRow>
            <MinTileCol>64682</MinTileCol>
            <MaxTileCol>65055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80289</MinTileRow>
            <MaxTileRow>81179</MaxTileRow>
            <MinTileCol>129365</MinTileCol>
            <MaxTileCol>130110</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>160578</MinTileRow>
            <MaxTileRow>162359</MaxTileRow>
            <MinTileCol>258730</MinTileCol>
            <MaxTileCol>260221</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>321156</MinTileRow>
            <MaxTileRow>324718</MaxTileRow>
            <MinTileCol>517460</MinTileCol>
            <MaxTileCol>520442</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>642313</MinTileRow>
            <MaxTileRow>649437</MaxTileRow>
            <MinTileCol>1034921</MinTileCol>
            <MaxTileCol>1040884</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1284626</MinTileRow>
            <MaxTileRow>1298875</MaxTileRow>
            <MinTileCol>2069842</MinTileCol>
            <MaxTileCol>2081769</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2569252</MinTileRow>
            <MaxTileRow>2597751</MaxTileRow>
            <MinTileCol>4139684</MinTileCol>
            <MaxTileCol>4163539</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5138505</MinTileRow>
            <MaxTileRow>5195503</MaxTileRow>
            <MinTileCol>8279369</MinTileCol>
            <MaxTileCol>8327078</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10277010</MinTileRow>
            <MaxTileRow>10391006</MaxTileRow>
            <MinTileCol>16558739</MinTileCol>
            <MaxTileCol>16654157</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20554020</MinTileRow>
            <MaxTileRow>20782012</MaxTileRow>
            <MinTileCol>33117479</MinTileCol>
            <MaxTileCol>33308314</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41108040</MinTileRow>
            <MaxTileRow>41564024</MaxTileRow>
            <MinTileCol>66234958</MinTileCol>
            <MaxTileCol>66616629</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82216081</MinTileRow>
            <MaxTileRow>83128048</MaxTileRow>
            <MinTileCol>132469917</MinTileCol>
            <MaxTileCol>133233258</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>164432162</MinTileRow>
            <MaxTileRow>166256097</MaxTileRow>
            <MinTileCol>264939834</MinTileCol>
            <MaxTileCol>266466516</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>328864324</MinTileRow>
            <MaxTileRow>332512195</MaxTileRow>
            <MinTileCol>529879668</MinTileCol>
            <MaxTileCol>532933033</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>657728648</MinTileRow>
            <MaxTileRow>665024391</MaxTileRow>
            <MinTileCol>1059759336</MinTileCol>
            <MaxTileCol>1065866066</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_depth_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_depth_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_depth_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_depth_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_depth_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_depth_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_depth_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_depth_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_depth_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_depth_estimated/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_depth_estimated/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>direct_use_feature_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.65825658271612 -45.11201798233728</ows:LowerCorner>
        <ows:UpperCorner>178.9031710964385 -35.18244966847844</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:direct_use_feature_view</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:geothermal_use</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=144&amp;height=360&amp;layer=gns%3Adirect_use_feature_view" width="144" height="360"/>
      </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>89</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>192</MaxTileRow>
            <MinTileCol>495</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>384</MaxTileRow>
            <MinTileCol>991</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>712</MinTileRow>
            <MaxTileRow>768</MaxTileRow>
            <MinTileCol>1983</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1424</MinTileRow>
            <MaxTileRow>1537</MaxTileRow>
            <MinTileCol>3966</MinTileCol>
            <MaxTileCol>4083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2848</MinTileRow>
            <MaxTileRow>3074</MaxTileRow>
            <MinTileCol>7933</MinTileCol>
            <MaxTileCol>8167</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5697</MinTileRow>
            <MaxTileRow>6149</MaxTileRow>
            <MinTileCol>15867</MinTileCol>
            <MaxTileCol>16334</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11394</MinTileRow>
            <MaxTileRow>12298</MaxTileRow>
            <MinTileCol>31735</MinTileCol>
            <MaxTileCol>32668</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22788</MinTileRow>
            <MaxTileRow>24596</MaxTileRow>
            <MinTileCol>63471</MinTileCol>
            <MaxTileCol>65336</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45577</MinTileRow>
            <MaxTileRow>49192</MaxTileRow>
            <MinTileCol>126942</MinTileCol>
            <MaxTileCol>130672</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91155</MinTileRow>
            <MaxTileRow>98385</MaxTileRow>
            <MinTileCol>253885</MinTileCol>
            <MaxTileCol>261345</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182310</MinTileRow>
            <MaxTileRow>196771</MaxTileRow>
            <MinTileCol>507770</MinTileCol>
            <MaxTileCol>522690</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>364620</MinTileRow>
            <MaxTileRow>393542</MaxTileRow>
            <MinTileCol>1015540</MinTileCol>
            <MaxTileCol>1045381</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>729240</MinTileRow>
            <MaxTileRow>787084</MaxTileRow>
            <MinTileCol>2031081</MinTileCol>
            <MaxTileCol>2090762</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1458481</MinTileRow>
            <MaxTileRow>1574169</MaxTileRow>
            <MinTileCol>4062163</MinTileCol>
            <MaxTileCol>4181525</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>77</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>164</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>328</MaxTileRow>
            <MinTileCol>495</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>656</MaxTileRow>
            <MinTileCol>991</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1238</MinTileRow>
            <MaxTileRow>1312</MaxTileRow>
            <MinTileCol>1983</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2476</MinTileRow>
            <MaxTileRow>2624</MaxTileRow>
            <MinTileCol>3966</MinTileCol>
            <MaxTileCol>4083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4952</MinTileRow>
            <MaxTileRow>5248</MaxTileRow>
            <MinTileCol>7933</MinTileCol>
            <MaxTileCol>8167</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9904</MinTileRow>
            <MaxTileRow>10497</MaxTileRow>
            <MinTileCol>15867</MinTileCol>
            <MaxTileCol>16334</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19808</MinTileRow>
            <MaxTileRow>20994</MaxTileRow>
            <MinTileCol>31735</MinTileCol>
            <MaxTileCol>32668</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39617</MinTileRow>
            <MaxTileRow>41989</MaxTileRow>
            <MinTileCol>63471</MinTileCol>
            <MaxTileCol>65336</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79235</MinTileRow>
            <MaxTileRow>83979</MaxTileRow>
            <MinTileCol>126942</MinTileCol>
            <MaxTileCol>130672</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158471</MinTileRow>
            <MaxTileRow>167959</MaxTileRow>
            <MinTileCol>253885</MinTileCol>
            <MaxTileCol>261345</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>316943</MinTileRow>
            <MaxTileRow>335919</MaxTileRow>
            <MinTileCol>507770</MinTileCol>
            <MaxTileCol>522690</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>633886</MinTileRow>
            <MaxTileRow>671838</MaxTileRow>
            <MinTileCol>1015540</MinTileCol>
            <MaxTileCol>1045381</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1267773</MinTileRow>
            <MaxTileRow>1343677</MaxTileRow>
            <MinTileCol>2031081</MinTileCol>
            <MaxTileCol>2090762</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2535547</MinTileRow>
            <MaxTileRow>2687355</MaxTileRow>
            <MinTileCol>4062163</MinTileCol>
            <MaxTileCol>4181525</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5071094</MinTileRow>
            <MaxTileRow>5374710</MaxTileRow>
            <MinTileCol>8124326</MinTileCol>
            <MaxTileCol>8363050</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10142188</MinTileRow>
            <MaxTileRow>10749421</MaxTileRow>
            <MinTileCol>16248652</MinTileCol>
            <MaxTileCol>16726100</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20284377</MinTileRow>
            <MaxTileRow>21498842</MaxTileRow>
            <MinTileCol>32497304</MinTileCol>
            <MaxTileCol>33452200</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40568754</MinTileRow>
            <MaxTileRow>42997685</MaxTileRow>
            <MinTileCol>64994609</MinTileCol>
            <MaxTileCol>66904400</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81137509</MinTileRow>
            <MaxTileRow>85995370</MaxTileRow>
            <MinTileCol>129989219</MinTileCol>
            <MaxTileCol>133808800</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162275019</MinTileRow>
            <MaxTileRow>171990741</MaxTileRow>
            <MinTileCol>259978439</MinTileCol>
            <MaxTileCol>267617601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>324550038</MinTileRow>
            <MaxTileRow>343981483</MaxTileRow>
            <MinTileCol>519956878</MinTileCol>
            <MaxTileCol>535235202</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>649100076</MinTileRow>
            <MaxTileRow>687962967</MaxTileRow>
            <MinTileCol>1039913756</MinTileCol>
            <MaxTileCol>1070470404</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:direct_use_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:direct_use_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:direct_use_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:direct_use_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:direct_use_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:direct_use_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:direct_use_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:direct_use_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:direct_use_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:direct_use_feature_view/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:direct_use_feature_view/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZL-Urban_Whangarei_geological_units</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>174.27290758874216 -35.812507001830284</ows:LowerCorner>
        <ows:UpperCorner>174.38743209405365 -35.656324775319135</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZL-Urban_Whangarei_geological_units</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>Urban_Whangarei</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=45&amp;height=380&amp;layer=gns%3ANZL-Urban_Whangarei_geological_units" width="45" height="380"/>
      </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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>44</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>89</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>178</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>504</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>357</MinTileRow>
            <MaxTileRow>357</MaxTileRow>
            <MinTileCol>1007</MinTileCol>
            <MaxTileCol>1008</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>714</MinTileRow>
            <MaxTileRow>715</MaxTileRow>
            <MinTileCol>2015</MinTileCol>
            <MaxTileCol>2016</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1429</MinTileRow>
            <MaxTileRow>1431</MaxTileRow>
            <MinTileCol>4030</MinTileCol>
            <MaxTileCol>4032</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2859</MinTileRow>
            <MaxTileRow>2862</MaxTileRow>
            <MinTileCol>8061</MinTileCol>
            <MaxTileCol>8064</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5718</MinTileRow>
            <MaxTileRow>5725</MaxTileRow>
            <MinTileCol>16123</MinTileCol>
            <MaxTileCol>16128</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11437</MinTileRow>
            <MaxTileRow>11451</MaxTileRow>
            <MinTileCol>32246</MinTileCol>
            <MaxTileCol>32257</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22875</MinTileRow>
            <MaxTileRow>22903</MaxTileRow>
            <MinTileCol>64493</MinTileCol>
            <MaxTileCol>64514</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45750</MinTileRow>
            <MaxTileRow>45806</MaxTileRow>
            <MinTileCol>128986</MinTileCol>
            <MaxTileCol>129028</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91500</MinTileRow>
            <MaxTileRow>91613</MaxTileRow>
            <MinTileCol>257973</MinTileCol>
            <MaxTileCol>258057</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>183000</MinTileRow>
            <MaxTileRow>183227</MaxTileRow>
            <MinTileCol>515947</MinTileCol>
            <MaxTileCol>516114</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>366000</MinTileRow>
            <MaxTileRow>366455</MaxTileRow>
            <MinTileCol>1031894</MinTileCol>
            <MaxTileCol>1032228</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>732001</MinTileRow>
            <MaxTileRow>732910</MaxTileRow>
            <MinTileCol>2063789</MinTileCol>
            <MaxTileCol>2064456</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1464002</MinTileRow>
            <MaxTileRow>1465821</MaxTileRow>
            <MinTileCol>4127578</MinTileCol>
            <MaxTileCol>4128912</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>38</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>77</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>155</MinTileRow>
            <MaxTileRow>155</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>310</MinTileRow>
            <MaxTileRow>310</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>504</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>620</MinTileRow>
            <MaxTileRow>621</MaxTileRow>
            <MinTileCol>1007</MinTileCol>
            <MaxTileCol>1008</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1241</MinTileRow>
            <MaxTileRow>1242</MaxTileRow>
            <MinTileCol>2015</MinTileCol>
            <MaxTileCol>2016</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2482</MinTileRow>
            <MaxTileRow>2484</MaxTileRow>
            <MinTileCol>4030</MinTileCol>
            <MaxTileCol>4032</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4965</MinTileRow>
            <MaxTileRow>4969</MaxTileRow>
            <MinTileCol>8061</MinTileCol>
            <MaxTileCol>8064</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9930</MinTileRow>
            <MaxTileRow>9939</MaxTileRow>
            <MinTileCol>16123</MinTileCol>
            <MaxTileCol>16128</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19861</MinTileRow>
            <MaxTileRow>19879</MaxTileRow>
            <MinTileCol>32246</MinTileCol>
            <MaxTileCol>32257</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39723</MinTileRow>
            <MaxTileRow>39758</MaxTileRow>
            <MinTileCol>64493</MinTileCol>
            <MaxTileCol>64514</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79447</MinTileRow>
            <MaxTileRow>79517</MaxTileRow>
            <MinTileCol>128986</MinTileCol>
            <MaxTileCol>129028</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158895</MinTileRow>
            <MaxTileRow>159035</MaxTileRow>
            <MinTileCol>257973</MinTileCol>
            <MaxTileCol>258057</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317790</MinTileRow>
            <MaxTileRow>318070</MaxTileRow>
            <MinTileCol>515947</MinTileCol>
            <MaxTileCol>516114</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>635580</MinTileRow>
            <MaxTileRow>636140</MaxTileRow>
            <MinTileCol>1031894</MinTileCol>
            <MaxTileCol>1032228</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1271161</MinTileRow>
            <MaxTileRow>1272281</MaxTileRow>
            <MinTileCol>2063789</MinTileCol>
            <MaxTileCol>2064456</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2542322</MinTileRow>
            <MaxTileRow>2544563</MaxTileRow>
            <MinTileCol>4127578</MinTileCol>
            <MaxTileCol>4128912</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5084644</MinTileRow>
            <MaxTileRow>5089127</MaxTileRow>
            <MinTileCol>8255157</MinTileCol>
            <MaxTileCol>8257825</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10169288</MinTileRow>
            <MaxTileRow>10178255</MaxTileRow>
            <MinTileCol>16510314</MinTileCol>
            <MaxTileCol>16515651</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20338576</MinTileRow>
            <MaxTileRow>20356510</MaxTileRow>
            <MinTileCol>33020628</MinTileCol>
            <MaxTileCol>33031302</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40677153</MinTileRow>
            <MaxTileRow>40713020</MaxTileRow>
            <MinTileCol>66041256</MinTileCol>
            <MaxTileCol>66062605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81354306</MinTileRow>
            <MaxTileRow>81426040</MaxTileRow>
            <MinTileCol>132082513</MinTileCol>
            <MaxTileCol>132125211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162708612</MinTileRow>
            <MaxTileRow>162852080</MaxTileRow>
            <MinTileCol>264165026</MinTileCol>
            <MaxTileCol>264250422</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>325417224</MinTileRow>
            <MaxTileRow>325704161</MaxTileRow>
            <MinTileCol>528330052</MinTileCol>
            <MaxTileCol>528500844</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>650834449</MinTileRow>
            <MaxTileRow>651408323</MaxTileRow>
            <MinTileCol>1056660105</MinTileCol>
            <MaxTileCol>1057001688</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Whangarei_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Whangarei_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Whangarei_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Whangarei_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Whangarei_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Whangarei_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Whangarei_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Whangarei_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Whangarei_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Whangarei_geological_units/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Whangarei_geological_units/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>Waimangu-2017</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.32573010654252 -38.324326563087986</ows:LowerCorner>
        <ows:UpperCorner>176.52519063630393 -38.19806912075845</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>atir-nz:Waimangu-2017</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=atir-nz%3AWaimangu-2017" 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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>91</MinTileRow>
            <MaxTileRow>91</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>182</MinTileRow>
            <MaxTileRow>182</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>364</MinTileRow>
            <MaxTileRow>365</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>729</MinTileRow>
            <MaxTileRow>730</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2028</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1458</MinTileRow>
            <MaxTileRow>1460</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4056</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2917</MinTileRow>
            <MaxTileRow>2920</MaxTileRow>
            <MinTileCol>8108</MinTileCol>
            <MaxTileCol>8112</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5834</MinTileRow>
            <MaxTileRow>5840</MaxTileRow>
            <MinTileCol>16216</MinTileCol>
            <MaxTileCol>16225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11668</MinTileRow>
            <MaxTileRow>11680</MaxTileRow>
            <MinTileCol>32433</MinTileCol>
            <MaxTileCol>32451</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23337</MinTileRow>
            <MaxTileRow>23360</MaxTileRow>
            <MinTileCol>64867</MinTileCol>
            <MaxTileCol>64903</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46675</MinTileRow>
            <MaxTileRow>46721</MaxTileRow>
            <MinTileCol>129734</MinTileCol>
            <MaxTileCol>129806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>93350</MinTileRow>
            <MaxTileRow>93442</MaxTileRow>
            <MinTileCol>259468</MinTileCol>
            <MaxTileCol>259613</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>186701</MinTileRow>
            <MaxTileRow>186885</MaxTileRow>
            <MinTileCol>518936</MinTileCol>
            <MaxTileCol>519227</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>373403</MinTileRow>
            <MaxTileRow>373771</MaxTileRow>
            <MinTileCol>1037873</MinTileCol>
            <MaxTileCol>1038454</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>746807</MinTileRow>
            <MaxTileRow>747543</MaxTileRow>
            <MinTileCol>2075747</MinTileCol>
            <MaxTileCol>2076909</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1493615</MinTileRow>
            <MaxTileRow>1495086</MaxTileRow>
            <MinTileCol>4151495</MinTileCol>
            <MaxTileCol>4153819</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>78</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>157</MinTileRow>
            <MaxTileRow>157</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>314</MinTileRow>
            <MaxTileRow>315</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>629</MinTileRow>
            <MaxTileRow>630</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1259</MinTileRow>
            <MaxTileRow>1260</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2028</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2518</MinTileRow>
            <MaxTileRow>2520</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4056</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5037</MinTileRow>
            <MaxTileRow>5041</MaxTileRow>
            <MinTileCol>8108</MinTileCol>
            <MaxTileCol>8112</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10075</MinTileRow>
            <MaxTileRow>10082</MaxTileRow>
            <MinTileCol>16216</MinTileCol>
            <MaxTileCol>16225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20151</MinTileRow>
            <MaxTileRow>20165</MaxTileRow>
            <MinTileCol>32433</MinTileCol>
            <MaxTileCol>32451</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40302</MinTileRow>
            <MaxTileRow>40331</MaxTileRow>
            <MinTileCol>64867</MinTileCol>
            <MaxTileCol>64903</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80605</MinTileRow>
            <MaxTileRow>80663</MaxTileRow>
            <MinTileCol>129734</MinTileCol>
            <MaxTileCol>129806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>161210</MinTileRow>
            <MaxTileRow>161327</MaxTileRow>
            <MinTileCol>259468</MinTileCol>
            <MaxTileCol>259613</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>322421</MinTileRow>
            <MaxTileRow>322655</MaxTileRow>
            <MinTileCol>518936</MinTileCol>
            <MaxTileCol>519227</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>644843</MinTileRow>
            <MaxTileRow>645311</MaxTileRow>
            <MinTileCol>1037873</MinTileCol>
            <MaxTileCol>1038454</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1289686</MinTileRow>
            <MaxTileRow>1290623</MaxTileRow>
            <MinTileCol>2075747</MinTileCol>
            <MaxTileCol>2076909</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2579373</MinTileRow>
            <MaxTileRow>2581246</MaxTileRow>
            <MinTileCol>4151495</MinTileCol>
            <MaxTileCol>4153819</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5158746</MinTileRow>
            <MaxTileRow>5162493</MaxTileRow>
            <MinTileCol>8302991</MinTileCol>
            <MaxTileCol>8307639</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10317492</MinTileRow>
            <MaxTileRow>10324986</MaxTileRow>
            <MinTileCol>16605982</MinTileCol>
            <MaxTileCol>16615278</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20634985</MinTileRow>
            <MaxTileRow>20649972</MaxTileRow>
            <MinTileCol>33211965</MinTileCol>
            <MaxTileCol>33230556</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41269970</MinTileRow>
            <MaxTileRow>41299945</MaxTileRow>
            <MinTileCol>66423930</MinTileCol>
            <MaxTileCol>66461112</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82539941</MinTileRow>
            <MaxTileRow>82599891</MaxTileRow>
            <MinTileCol>132847860</MinTileCol>
            <MaxTileCol>132922225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>165079883</MinTileRow>
            <MaxTileRow>165199782</MaxTileRow>
            <MinTileCol>265695721</MinTileCol>
            <MaxTileCol>265844450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>330159767</MinTileRow>
            <MaxTileRow>330399565</MaxTileRow>
            <MinTileCol>531391443</MinTileCol>
            <MaxTileCol>531688900</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>660319534</MinTileRow>
            <MaxTileRow>660799131</MaxTileRow>
            <MinTileCol>1062782887</MinTileCol>
            <MaxTileCol>1063377801</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Waimangu-2017/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Waimangu-2017/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Waimangu-2017/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Waimangu-2017/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Waimangu-2017/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Waimangu-2017/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Waimangu-2017/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Waimangu-2017/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Waimangu-2017/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Waimangu-2017/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Waimangu-2017/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_GNSP</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_GNSP</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_gnsp</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_GNSP" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSP/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSP/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>geol_units_27200</ows:Title>
      <ows:Abstract>Central South Island Glacial Geomorphology geological units</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>169.63254134807443 -44.45620642875286</ows:LowerCorner>
        <ows:UpperCorner>172.78257596514638 -42.24035536463362</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:geol_units_27200</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:gns_csigg_geom_units_style</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=231&amp;height=940&amp;layer=gns%3Ageol_units_27200" width="231" height="940"/>
      </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>124</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>94</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>188</MinTileRow>
            <MaxTileRow>191</MaxTileRow>
            <MinTileCol>497</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>376</MinTileRow>
            <MaxTileRow>382</MaxTileRow>
            <MinTileCol>994</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>752</MinTileRow>
            <MaxTileRow>764</MaxTileRow>
            <MinTileCol>1989</MinTileCol>
            <MaxTileCol>2006</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1504</MinTileRow>
            <MaxTileRow>1529</MaxTileRow>
            <MinTileCol>3978</MinTileCol>
            <MaxTileCol>4013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3009</MinTileRow>
            <MaxTileRow>3059</MaxTileRow>
            <MinTileCol>7956</MinTileCol>
            <MaxTileCol>8027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6018</MinTileRow>
            <MaxTileRow>6119</MaxTileRow>
            <MinTileCol>15912</MinTileCol>
            <MaxTileCol>16055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12036</MinTileRow>
            <MaxTileRow>12238</MaxTileRow>
            <MinTileCol>31824</MinTileCol>
            <MaxTileCol>32111</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24073</MinTileRow>
            <MaxTileRow>24477</MaxTileRow>
            <MinTileCol>63648</MinTileCol>
            <MaxTileCol>64222</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48147</MinTileRow>
            <MaxTileRow>48954</MaxTileRow>
            <MinTileCol>127297</MinTileCol>
            <MaxTileCol>128444</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>96294</MinTileRow>
            <MaxTileRow>97908</MaxTileRow>
            <MinTileCol>254594</MinTileCol>
            <MaxTileCol>256888</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>192588</MinTileRow>
            <MaxTileRow>195816</MaxTileRow>
            <MinTileCol>509189</MinTileCol>
            <MaxTileCol>513776</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>385177</MinTileRow>
            <MaxTileRow>391632</MaxTileRow>
            <MinTileCol>1018378</MinTileCol>
            <MaxTileCol>1027553</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>770355</MinTileRow>
            <MaxTileRow>783264</MaxTileRow>
            <MinTileCol>2036757</MinTileCol>
            <MaxTileCol>2055107</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1540711</MinTileRow>
            <MaxTileRow>1566528</MaxTileRow>
            <MinTileCol>4073514</MinTileCol>
            <MaxTileCol>4110214</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>80</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>161</MinTileRow>
            <MaxTileRow>163</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>322</MinTileRow>
            <MaxTileRow>326</MaxTileRow>
            <MinTileCol>497</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>644</MinTileRow>
            <MaxTileRow>653</MaxTileRow>
            <MinTileCol>994</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1289</MinTileRow>
            <MaxTileRow>1306</MaxTileRow>
            <MinTileCol>1989</MinTileCol>
            <MaxTileCol>2006</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2579</MinTileRow>
            <MaxTileRow>2613</MaxTileRow>
            <MinTileCol>3978</MinTileCol>
            <MaxTileCol>4013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5158</MinTileRow>
            <MaxTileRow>5227</MaxTileRow>
            <MinTileCol>7956</MinTileCol>
            <MaxTileCol>8027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10316</MinTileRow>
            <MaxTileRow>10455</MaxTileRow>
            <MinTileCol>15912</MinTileCol>
            <MaxTileCol>16055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20633</MinTileRow>
            <MaxTileRow>20910</MaxTileRow>
            <MinTileCol>31824</MinTileCol>
            <MaxTileCol>32111</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41266</MinTileRow>
            <MaxTileRow>41821</MaxTileRow>
            <MinTileCol>63648</MinTileCol>
            <MaxTileCol>64222</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82533</MinTileRow>
            <MaxTileRow>83643</MaxTileRow>
            <MinTileCol>127297</MinTileCol>
            <MaxTileCol>128444</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>165067</MinTileRow>
            <MaxTileRow>167286</MaxTileRow>
            <MinTileCol>254594</MinTileCol>
            <MaxTileCol>256888</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>330135</MinTileRow>
            <MaxTileRow>334573</MaxTileRow>
            <MinTileCol>509189</MinTileCol>
            <MaxTileCol>513776</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>660270</MinTileRow>
            <MaxTileRow>669147</MaxTileRow>
            <MinTileCol>1018378</MinTileCol>
            <MaxTileCol>1027553</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1320541</MinTileRow>
            <MaxTileRow>1338294</MaxTileRow>
            <MinTileCol>2036757</MinTileCol>
            <MaxTileCol>2055107</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2641082</MinTileRow>
            <MaxTileRow>2676589</MaxTileRow>
            <MinTileCol>4073514</MinTileCol>
            <MaxTileCol>4110214</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5282164</MinTileRow>
            <MaxTileRow>5353179</MaxTileRow>
            <MinTileCol>8147028</MinTileCol>
            <MaxTileCol>8220429</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10564329</MinTileRow>
            <MaxTileRow>10706359</MaxTileRow>
            <MinTileCol>16294057</MinTileCol>
            <MaxTileCol>16440859</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21128658</MinTileRow>
            <MaxTileRow>21412719</MaxTileRow>
            <MinTileCol>32588114</MinTileCol>
            <MaxTileCol>32881719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42257316</MinTileRow>
            <MaxTileRow>42825439</MaxTileRow>
            <MinTileCol>65176229</MinTileCol>
            <MaxTileCol>65763438</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84514633</MinTileRow>
            <MaxTileRow>85650879</MaxTileRow>
            <MinTileCol>130352459</MinTileCol>
            <MaxTileCol>131526877</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>169029266</MinTileRow>
            <MaxTileRow>171301759</MaxTileRow>
            <MinTileCol>260704918</MinTileCol>
            <MaxTileCol>263053754</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>338058532</MinTileRow>
            <MaxTileRow>342603518</MaxTileRow>
            <MinTileCol>521409837</MinTileCol>
            <MaxTileCol>526107509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>676117064</MinTileRow>
            <MaxTileRow>685207037</MaxTileRow>
            <MinTileCol>1042819674</MinTileCol>
            <MaxTileCol>1052215018</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_27200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_27200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_27200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_27200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_27200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_27200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_27200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_27200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_27200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_27200/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_27200/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_DUD</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_DUD</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_dud</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_DUD" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DUD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DUD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DUD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DUD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DUD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DUD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DUD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DUD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DUD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DUD/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DUD/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>MINERAL.IRONSAND_DEPOSITS</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>174.44332554471225 -38.20462517568597</ows:LowerCorner>
        <ows:UpperCorner>174.87051164853446 -36.87548250065474</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:MINERAL.IRONSAND_DEPOSITS</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AMINERAL.IRONSAND_DEPOSITS" 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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>90</MinTileRow>
            <MaxTileRow>91</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>180</MinTileRow>
            <MaxTileRow>182</MaxTileRow>
            <MinTileCol>504</MinTileCol>
            <MaxTileCol>504</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>360</MinTileRow>
            <MaxTileRow>364</MaxTileRow>
            <MinTileCol>1008</MinTileCol>
            <MaxTileCol>1009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>721</MinTileRow>
            <MaxTileRow>729</MaxTileRow>
            <MinTileCol>2016</MinTileCol>
            <MaxTileCol>2018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1443</MinTileRow>
            <MaxTileRow>1458</MaxTileRow>
            <MinTileCol>4032</MinTileCol>
            <MaxTileCol>4037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2887</MinTileRow>
            <MaxTileRow>2917</MaxTileRow>
            <MinTileCol>8065</MinTileCol>
            <MaxTileCol>8075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5774</MinTileRow>
            <MaxTileRow>5834</MaxTileRow>
            <MinTileCol>16131</MinTileCol>
            <MaxTileCol>16150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11548</MinTileRow>
            <MaxTileRow>11669</MaxTileRow>
            <MinTileCol>32262</MinTileCol>
            <MaxTileCol>32301</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23096</MinTileRow>
            <MaxTileRow>23338</MaxTileRow>
            <MinTileCol>64524</MinTileCol>
            <MaxTileCol>64602</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46193</MinTileRow>
            <MaxTileRow>46677</MaxTileRow>
            <MinTileCol>129048</MinTileCol>
            <MaxTileCol>129204</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>92387</MinTileRow>
            <MaxTileRow>93355</MaxTileRow>
            <MinTileCol>258097</MinTileCol>
            <MaxTileCol>258408</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>184775</MinTileRow>
            <MaxTileRow>186711</MaxTileRow>
            <MinTileCol>516195</MinTileCol>
            <MaxTileCol>516817</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>369551</MinTileRow>
            <MaxTileRow>373423</MaxTileRow>
            <MinTileCol>1032391</MinTileCol>
            <MaxTileCol>1033635</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>739103</MinTileRow>
            <MaxTileRow>746846</MaxTileRow>
            <MinTileCol>2064782</MinTileCol>
            <MaxTileCol>2067270</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1478206</MinTileRow>
            <MaxTileRow>1493692</MaxTileRow>
            <MinTileCol>4129564</MinTileCol>
            <MaxTileCol>4134541</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>78</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>156</MinTileRow>
            <MaxTileRow>157</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>312</MinTileRow>
            <MaxTileRow>314</MaxTileRow>
            <MinTileCol>504</MinTileCol>
            <MaxTileCol>504</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>624</MinTileRow>
            <MaxTileRow>629</MaxTileRow>
            <MinTileCol>1008</MinTileCol>
            <MaxTileCol>1009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1249</MinTileRow>
            <MaxTileRow>1259</MaxTileRow>
            <MinTileCol>2016</MinTileCol>
            <MaxTileCol>2018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2499</MinTileRow>
            <MaxTileRow>2519</MaxTileRow>
            <MinTileCol>4032</MinTileCol>
            <MaxTileCol>4037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4999</MinTileRow>
            <MaxTileRow>5038</MaxTileRow>
            <MinTileCol>8065</MinTileCol>
            <MaxTileCol>8075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9999</MinTileRow>
            <MaxTileRow>10076</MaxTileRow>
            <MinTileCol>16131</MinTileCol>
            <MaxTileCol>16150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19999</MinTileRow>
            <MaxTileRow>20152</MaxTileRow>
            <MinTileCol>32262</MinTileCol>
            <MaxTileCol>32301</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39999</MinTileRow>
            <MaxTileRow>40304</MaxTileRow>
            <MinTileCol>64524</MinTileCol>
            <MaxTileCol>64602</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79998</MinTileRow>
            <MaxTileRow>80608</MaxTileRow>
            <MinTileCol>129048</MinTileCol>
            <MaxTileCol>129204</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>159996</MinTileRow>
            <MaxTileRow>161216</MaxTileRow>
            <MinTileCol>258097</MinTileCol>
            <MaxTileCol>258408</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>319992</MinTileRow>
            <MaxTileRow>322433</MaxTileRow>
            <MinTileCol>516195</MinTileCol>
            <MaxTileCol>516817</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>639984</MinTileRow>
            <MaxTileRow>644867</MaxTileRow>
            <MinTileCol>1032391</MinTileCol>
            <MaxTileCol>1033635</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1279969</MinTileRow>
            <MaxTileRow>1289735</MaxTileRow>
            <MinTileCol>2064782</MinTileCol>
            <MaxTileCol>2067270</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2559939</MinTileRow>
            <MaxTileRow>2579470</MaxTileRow>
            <MinTileCol>4129564</MinTileCol>
            <MaxTileCol>4134541</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5119879</MinTileRow>
            <MaxTileRow>5158940</MaxTileRow>
            <MinTileCol>8259128</MinTileCol>
            <MaxTileCol>8269082</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10239758</MinTileRow>
            <MaxTileRow>10317881</MaxTileRow>
            <MinTileCol>16518256</MinTileCol>
            <MaxTileCol>16538164</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20479517</MinTileRow>
            <MaxTileRow>20635763</MaxTileRow>
            <MinTileCol>33036512</MinTileCol>
            <MaxTileCol>33076329</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40959035</MinTileRow>
            <MaxTileRow>41271526</MaxTileRow>
            <MinTileCol>66073024</MinTileCol>
            <MaxTileCol>66152658</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81918071</MinTileRow>
            <MaxTileRow>82543052</MaxTileRow>
            <MinTileCol>132146049</MinTileCol>
            <MaxTileCol>132305316</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>163836142</MinTileRow>
            <MaxTileRow>165086104</MaxTileRow>
            <MinTileCol>264292099</MinTileCol>
            <MaxTileCol>264610632</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>327672285</MinTileRow>
            <MaxTileRow>330172208</MaxTileRow>
            <MinTileCol>528584198</MinTileCol>
            <MaxTileCol>529221264</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>655344570</MinTileRow>
            <MaxTileRow>660344417</MaxTileRow>
            <MinTileCol>1057168396</MinTileCol>
            <MaxTileCol>1058442529</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.IRONSAND_DEPOSITS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.IRONSAND_DEPOSITS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.IRONSAND_DEPOSITS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.IRONSAND_DEPOSITS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.IRONSAND_DEPOSITS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.IRONSAND_DEPOSITS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.IRONSAND_DEPOSITS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.IRONSAND_DEPOSITS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.IRONSAND_DEPOSITS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.IRONSAND_DEPOSITS/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.IRONSAND_DEPOSITS/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_GNSC</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>163.38689992 -77.68330004</ows:LowerCorner>
        <ows:UpperCorner>177.83439728130475 -35.10505516307543</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_GNSC</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_gnscore</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_GNSC" 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>7</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>14</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>22</MinTileRow>
            <MaxTileRow>29</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>59</MaxTileRow>
            <MinTileCol>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>119</MaxTileRow>
            <MinTileCol>244</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>177</MinTileRow>
            <MaxTileRow>238</MaxTileRow>
            <MinTileCol>488</MinTileCol>
            <MaxTileCol>508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>355</MinTileRow>
            <MaxTileRow>476</MaxTileRow>
            <MinTileCol>976</MinTileCol>
            <MaxTileCol>1017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>711</MinTileRow>
            <MaxTileRow>953</MaxTileRow>
            <MinTileCol>1953</MinTileCol>
            <MaxTileCol>2035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1423</MinTileRow>
            <MaxTileRow>1907</MaxTileRow>
            <MinTileCol>3906</MinTileCol>
            <MaxTileCol>4071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2846</MinTileRow>
            <MaxTileRow>3815</MaxTileRow>
            <MinTileCol>7813</MinTileCol>
            <MaxTileCol>8142</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5693</MinTileRow>
            <MaxTileRow>7631</MaxTileRow>
            <MinTileCol>15627</MinTileCol>
            <MaxTileCol>16285</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11387</MinTileRow>
            <MaxTileRow>15262</MaxTileRow>
            <MinTileCol>31255</MinTileCol>
            <MaxTileCol>32570</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22774</MinTileRow>
            <MaxTileRow>30525</MaxTileRow>
            <MinTileCol>62511</MinTileCol>
            <MaxTileCol>65141</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45549</MinTileRow>
            <MaxTileRow>61051</MaxTileRow>
            <MinTileCol>125023</MinTileCol>
            <MaxTileCol>130283</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91098</MinTileRow>
            <MaxTileRow>122103</MaxTileRow>
            <MinTileCol>250046</MinTileCol>
            <MaxTileCol>260567</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182197</MinTileRow>
            <MaxTileRow>244206</MaxTileRow>
            <MinTileCol>500093</MinTileCol>
            <MaxTileCol>521134</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>364394</MinTileRow>
            <MaxTileRow>488413</MaxTileRow>
            <MinTileCol>1000186</MinTileCol>
            <MaxTileCol>1042268</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>728789</MinTileRow>
            <MaxTileRow>976826</MaxTileRow>
            <MinTileCol>2000373</MinTileCol>
            <MaxTileCol>2084536</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1457579</MinTileRow>
            <MaxTileRow>1953652</MaxTileRow>
            <MinTileCol>4000747</MinTileCol>
            <MaxTileCol>4169072</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>3</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>13</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>27</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>54</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>109</MaxTileRow>
            <MinTileCol>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>218</MaxTileRow>
            <MinTileCol>244</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>437</MaxTileRow>
            <MinTileCol>488</MinTileCol>
            <MaxTileCol>508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>618</MinTileRow>
            <MaxTileRow>874</MaxTileRow>
            <MinTileCol>976</MinTileCol>
            <MaxTileCol>1017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1237</MinTileRow>
            <MaxTileRow>1749</MaxTileRow>
            <MinTileCol>1953</MinTileCol>
            <MaxTileCol>2035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2475</MinTileRow>
            <MaxTileRow>3499</MaxTileRow>
            <MinTileCol>3906</MinTileCol>
            <MaxTileCol>4071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4950</MinTileRow>
            <MaxTileRow>6998</MaxTileRow>
            <MinTileCol>7813</MinTileCol>
            <MaxTileCol>8142</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9900</MinTileRow>
            <MaxTileRow>13997</MaxTileRow>
            <MinTileCol>15627</MinTileCol>
            <MaxTileCol>16285</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19800</MinTileRow>
            <MaxTileRow>27995</MaxTileRow>
            <MinTileCol>31255</MinTileCol>
            <MaxTileCol>32570</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39600</MinTileRow>
            <MaxTileRow>55991</MaxTileRow>
            <MinTileCol>62511</MinTileCol>
            <MaxTileCol>65141</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79201</MinTileRow>
            <MaxTileRow>111983</MaxTileRow>
            <MinTileCol>125023</MinTileCol>
            <MaxTileCol>130283</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158402</MinTileRow>
            <MaxTileRow>223967</MaxTileRow>
            <MinTileCol>250046</MinTileCol>
            <MaxTileCol>260567</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>316805</MinTileRow>
            <MaxTileRow>447934</MaxTileRow>
            <MinTileCol>500093</MinTileCol>
            <MaxTileCol>521134</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>633611</MinTileRow>
            <MaxTileRow>895869</MaxTileRow>
            <MinTileCol>1000186</MinTileCol>
            <MaxTileCol>1042268</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1267222</MinTileRow>
            <MaxTileRow>1791738</MaxTileRow>
            <MinTileCol>2000373</MinTileCol>
            <MaxTileCol>2084536</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2534444</MinTileRow>
            <MaxTileRow>3583477</MaxTileRow>
            <MinTileCol>4000747</MinTileCol>
            <MaxTileCol>4169072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5068888</MinTileRow>
            <MaxTileRow>7166954</MaxTileRow>
            <MinTileCol>8001494</MinTileCol>
            <MaxTileCol>8338145</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10137777</MinTileRow>
            <MaxTileRow>14333908</MaxTileRow>
            <MinTileCol>16002989</MinTileCol>
            <MaxTileCol>16676291</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20275555</MinTileRow>
            <MaxTileRow>28667816</MaxTileRow>
            <MinTileCol>32005978</MinTileCol>
            <MaxTileCol>33352583</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40551111</MinTileRow>
            <MaxTileRow>57335633</MaxTileRow>
            <MinTileCol>64011957</MinTileCol>
            <MaxTileCol>66705166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81102222</MinTileRow>
            <MaxTileRow>114671266</MaxTileRow>
            <MinTileCol>128023915</MinTileCol>
            <MaxTileCol>133410332</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162204444</MinTileRow>
            <MaxTileRow>229342533</MaxTileRow>
            <MinTileCol>256047830</MinTileCol>
            <MaxTileCol>266820665</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>324408889</MinTileRow>
            <MaxTileRow>458685067</MaxTileRow>
            <MinTileCol>512095661</MinTileCol>
            <MaxTileCol>533641331</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>648817778</MinTileRow>
            <MaxTileRow>917370134</MaxTileRow>
            <MinTileCol>1024191323</MinTileCol>
            <MaxTileCol>1067282662</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSC/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSC/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZL-Urban_Napier_Hastings_geological_units</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.715673308013 -39.716947378476554</ows:LowerCorner>
        <ows:UpperCorner>177.0077428034282 -39.39916941378772</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZL-Urban_Napier_Hastings_geological_units</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>Urban_Napier_Hastings</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=66&amp;height=340&amp;layer=gns%3ANZL-Urban_Napier_Hastings_geological_units" width="66" height="340"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>507</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>368</MaxTileRow>
            <MinTileCol>1014</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>737</MaxTileRow>
            <MinTileCol>2029</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1475</MaxTileRow>
            <MinTileCol>4058</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2944</MinTileRow>
            <MaxTileRow>2951</MaxTileRow>
            <MinTileCol>8117</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5889</MinTileRow>
            <MaxTileRow>5903</MaxTileRow>
            <MinTileCol>16234</MinTileCol>
            <MaxTileCol>16247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11778</MinTileRow>
            <MaxTileRow>11807</MaxTileRow>
            <MinTileCol>32469</MinTileCol>
            <MaxTileCol>32495</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23556</MinTileRow>
            <MaxTileRow>23614</MaxTileRow>
            <MinTileCol>64938</MinTileCol>
            <MaxTileCol>64991</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47112</MinTileRow>
            <MaxTileRow>47228</MaxTileRow>
            <MinTileCol>129876</MinTileCol>
            <MaxTileCol>129982</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94225</MinTileRow>
            <MaxTileRow>94456</MaxTileRow>
            <MinTileCol>259752</MinTileCol>
            <MaxTileCol>259965</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188451</MinTileRow>
            <MaxTileRow>188913</MaxTileRow>
            <MinTileCol>519504</MinTileCol>
            <MaxTileCol>519930</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>376902</MinTileRow>
            <MaxTileRow>377827</MaxTileRow>
            <MinTileCol>1039009</MinTileCol>
            <MaxTileCol>1039860</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>753804</MinTileRow>
            <MaxTileRow>755655</MaxTileRow>
            <MinTileCol>2078019</MinTileCol>
            <MaxTileCol>2079720</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1507609</MinTileRow>
            <MaxTileRow>1511311</MaxTileRow>
            <MinTileCol>4156038</MinTileCol>
            <MaxTileCol>4159441</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>507</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1014</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2029</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2536</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4058</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5072</MinTileRow>
            <MaxTileRow>5082</MaxTileRow>
            <MinTileCol>8117</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10145</MinTileRow>
            <MaxTileRow>10164</MaxTileRow>
            <MinTileCol>16234</MinTileCol>
            <MaxTileCol>16247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20291</MinTileRow>
            <MaxTileRow>20329</MaxTileRow>
            <MinTileCol>32469</MinTileCol>
            <MaxTileCol>32495</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40583</MinTileRow>
            <MaxTileRow>40658</MaxTileRow>
            <MinTileCol>64938</MinTileCol>
            <MaxTileCol>64991</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81166</MinTileRow>
            <MaxTileRow>81316</MaxTileRow>
            <MinTileCol>129876</MinTileCol>
            <MaxTileCol>129982</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162333</MinTileRow>
            <MaxTileRow>162633</MaxTileRow>
            <MinTileCol>259752</MinTileCol>
            <MaxTileCol>259965</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324666</MinTileRow>
            <MaxTileRow>325266</MaxTileRow>
            <MinTileCol>519504</MinTileCol>
            <MaxTileCol>519930</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649332</MinTileRow>
            <MaxTileRow>650532</MaxTileRow>
            <MinTileCol>1039009</MinTileCol>
            <MaxTileCol>1039860</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1298664</MinTileRow>
            <MaxTileRow>1301065</MaxTileRow>
            <MinTileCol>2078019</MinTileCol>
            <MaxTileCol>2079720</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2597329</MinTileRow>
            <MaxTileRow>2602131</MaxTileRow>
            <MinTileCol>4156038</MinTileCol>
            <MaxTileCol>4159441</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5194659</MinTileRow>
            <MaxTileRow>5204263</MaxTileRow>
            <MinTileCol>8312077</MinTileCol>
            <MaxTileCol>8318883</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10389318</MinTileRow>
            <MaxTileRow>10408527</MaxTileRow>
            <MinTileCol>16624155</MinTileCol>
            <MaxTileCol>16637766</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20778637</MinTileRow>
            <MaxTileRow>20817054</MaxTileRow>
            <MinTileCol>33248310</MinTileCol>
            <MaxTileCol>33275533</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41557274</MinTileRow>
            <MaxTileRow>41634109</MaxTileRow>
            <MinTileCol>66496621</MinTileCol>
            <MaxTileCol>66551066</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83114548</MinTileRow>
            <MaxTileRow>83268218</MaxTileRow>
            <MinTileCol>132993242</MinTileCol>
            <MaxTileCol>133102133</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166229096</MinTileRow>
            <MaxTileRow>166536437</MaxTileRow>
            <MinTileCol>265986484</MinTileCol>
            <MaxTileCol>266204267</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332458193</MinTileRow>
            <MaxTileRow>333072874</MaxTileRow>
            <MinTileCol>531972969</MinTileCol>
            <MaxTileCol>532408534</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>664916387</MinTileRow>
            <MaxTileRow>666145748</MaxTileRow>
            <MinTileCol>1063945938</MinTileCol>
            <MaxTileCol>1064817069</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Napier_Hastings_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Napier_Hastings_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Napier_Hastings_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Napier_Hastings_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Napier_Hastings_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Napier_Hastings_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Napier_Hastings_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Napier_Hastings_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Napier_Hastings_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Napier_Hastings_geological_units/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Napier_Hastings_geological_units/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_GNSD</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_GNSD</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_gnsdredge</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_GNSD" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSD/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSD/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GNSD/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>af250_filtered</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.22829599036473 -46.576693440754575</ows:LowerCorner>
        <ows:UpperCorner>176.0599448556485 -39.258038100748344</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:af250_filtered</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:af250</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Aaf250_filtered" 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>45</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>91</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>183</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>495</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>367</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>990</MinTileCol>
            <MaxTileCol>1012</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>735</MinTileRow>
            <MaxTileRow>776</MaxTileRow>
            <MinTileCol>1981</MinTileCol>
            <MaxTileCol>2025</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1470</MinTileRow>
            <MaxTileRow>1553</MaxTileRow>
            <MinTileCol>3962</MinTileCol>
            <MaxTileCol>4051</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2941</MinTileRow>
            <MaxTileRow>3107</MaxTileRow>
            <MinTileCol>7924</MinTileCol>
            <MaxTileCol>8102</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5882</MinTileRow>
            <MaxTileRow>6215</MaxTileRow>
            <MinTileCol>15848</MinTileCol>
            <MaxTileCol>16204</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11765</MinTileRow>
            <MaxTileRow>12431</MaxTileRow>
            <MinTileCol>31696</MinTileCol>
            <MaxTileCol>32409</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23530</MinTileRow>
            <MaxTileRow>24863</MaxTileRow>
            <MinTileCol>63393</MinTileCol>
            <MaxTileCol>64818</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47061</MinTileRow>
            <MaxTileRow>49726</MaxTileRow>
            <MinTileCol>126786</MinTileCol>
            <MaxTileCol>129637</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94122</MinTileRow>
            <MaxTileRow>99452</MaxTileRow>
            <MinTileCol>253572</MinTileCol>
            <MaxTileCol>259274</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188245</MinTileRow>
            <MaxTileRow>198904</MaxTileRow>
            <MinTileCol>507144</MinTileCol>
            <MaxTileCol>518549</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>376491</MinTileRow>
            <MaxTileRow>397808</MaxTileRow>
            <MinTileCol>1014288</MinTileCol>
            <MaxTileCol>1037099</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>752982</MinTileRow>
            <MaxTileRow>795616</MaxTileRow>
            <MinTileCol>2028576</MinTileCol>
            <MaxTileCol>2074199</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1505965</MinTileRow>
            <MaxTileRow>1591233</MaxTileRow>
            <MinTileCol>4057153</MinTileCol>
            <MaxTileCol>4148399</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>39</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>316</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>495</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>633</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>990</MinTileCol>
            <MaxTileCol>1012</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1267</MinTileRow>
            <MaxTileRow>1324</MaxTileRow>
            <MinTileCol>1981</MinTileCol>
            <MaxTileCol>2025</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2534</MinTileRow>
            <MaxTileRow>2648</MaxTileRow>
            <MinTileCol>3962</MinTileCol>
            <MaxTileCol>4051</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5068</MinTileRow>
            <MaxTileRow>5296</MaxTileRow>
            <MinTileCol>7924</MinTileCol>
            <MaxTileCol>8102</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10137</MinTileRow>
            <MaxTileRow>10593</MaxTileRow>
            <MinTileCol>15848</MinTileCol>
            <MaxTileCol>16204</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20275</MinTileRow>
            <MaxTileRow>21186</MaxTileRow>
            <MinTileCol>31696</MinTileCol>
            <MaxTileCol>32409</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40550</MinTileRow>
            <MaxTileRow>42372</MaxTileRow>
            <MinTileCol>63393</MinTileCol>
            <MaxTileCol>64818</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81100</MinTileRow>
            <MaxTileRow>84745</MaxTileRow>
            <MinTileCol>126786</MinTileCol>
            <MaxTileCol>129637</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162200</MinTileRow>
            <MaxTileRow>169490</MaxTileRow>
            <MinTileCol>253572</MinTileCol>
            <MaxTileCol>259274</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324400</MinTileRow>
            <MaxTileRow>338981</MaxTileRow>
            <MinTileCol>507144</MinTileCol>
            <MaxTileCol>518549</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>648800</MinTileRow>
            <MaxTileRow>677963</MaxTileRow>
            <MinTileCol>1014288</MinTileCol>
            <MaxTileCol>1037099</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1297601</MinTileRow>
            <MaxTileRow>1355927</MaxTileRow>
            <MinTileCol>2028576</MinTileCol>
            <MaxTileCol>2074199</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2595203</MinTileRow>
            <MaxTileRow>2711854</MaxTileRow>
            <MinTileCol>4057153</MinTileCol>
            <MaxTileCol>4148399</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5190407</MinTileRow>
            <MaxTileRow>5423708</MaxTileRow>
            <MinTileCol>8114307</MinTileCol>
            <MaxTileCol>8296798</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10380815</MinTileRow>
            <MaxTileRow>10847416</MaxTileRow>
            <MinTileCol>16228614</MinTileCol>
            <MaxTileCol>16593596</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20761631</MinTileRow>
            <MaxTileRow>21694833</MaxTileRow>
            <MinTileCol>32457229</MinTileCol>
            <MaxTileCol>33187192</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41523262</MinTileRow>
            <MaxTileRow>43389667</MaxTileRow>
            <MinTileCol>64914459</MinTileCol>
            <MaxTileCol>66374384</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83046525</MinTileRow>
            <MaxTileRow>86779334</MaxTileRow>
            <MinTileCol>129828918</MinTileCol>
            <MaxTileCol>132748768</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166093050</MinTileRow>
            <MaxTileRow>173558669</MaxTileRow>
            <MinTileCol>259657837</MinTileCol>
            <MaxTileCol>265497537</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332186100</MinTileRow>
            <MaxTileRow>347117339</MaxTileRow>
            <MinTileCol>519315674</MinTileCol>
            <MaxTileCol>530995075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>664372201</MinTileRow>
            <MaxTileRow>694234678</MaxTileRow>
            <MinTileCol>1038631349</MinTileCol>
            <MaxTileCol>1061990151</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_filtered/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_filtered/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_filtered/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_filtered/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_filtered/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_filtered/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_filtered/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_filtered/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_filtered/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_filtered/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_filtered/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>Hydrology_River_Polygons_250K</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.73817522416653 -47.271201812273304</ows:LowerCorner>
        <ows:UpperCorner>179.43023613103279 -34.67977026967603</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:Hydrology_River_Polygons_250K</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AHydrology_River_Polygons_250K" 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>177</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>493</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>354</MinTileRow>
            <MaxTileRow>390</MaxTileRow>
            <MinTileCol>986</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>709</MinTileRow>
            <MaxTileRow>780</MaxTileRow>
            <MinTileCol>1972</MinTileCol>
            <MaxTileCol>2044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1418</MinTileRow>
            <MaxTileRow>1561</MaxTileRow>
            <MinTileCol>3945</MinTileCol>
            <MaxTileCol>4089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2837</MinTileRow>
            <MaxTileRow>3123</MaxTileRow>
            <MinTileCol>7890</MinTileCol>
            <MaxTileCol>8179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5674</MinTileRow>
            <MaxTileRow>6247</MaxTileRow>
            <MinTileCol>15780</MinTileCol>
            <MaxTileCol>16358</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11348</MinTileRow>
            <MaxTileRow>12494</MaxTileRow>
            <MinTileCol>31560</MinTileCol>
            <MaxTileCol>32716</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22697</MinTileRow>
            <MaxTileRow>24989</MaxTileRow>
            <MinTileCol>63121</MinTileCol>
            <MaxTileCol>65432</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45394</MinTileRow>
            <MaxTileRow>49978</MaxTileRow>
            <MinTileCol>126243</MinTileCol>
            <MaxTileCol>130864</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90789</MinTileRow>
            <MaxTileRow>99957</MaxTileRow>
            <MinTileCol>252487</MinTileCol>
            <MaxTileCol>261729</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>181578</MinTileRow>
            <MaxTileRow>199915</MaxTileRow>
            <MinTileCol>504974</MinTileCol>
            <MaxTileCol>523458</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>363156</MinTileRow>
            <MaxTileRow>399831</MaxTileRow>
            <MinTileCol>1009948</MinTileCol>
            <MaxTileCol>1046916</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>726312</MinTileRow>
            <MaxTileRow>799662</MaxTileRow>
            <MinTileCol>2019896</MinTileCol>
            <MaxTileCol>2093832</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1452624</MinTileRow>
            <MaxTileRow>1599325</MaxTileRow>
            <MinTileCol>4039792</MinTileCol>
            <MaxTileCol>4187665</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>77</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>308</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>493</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>617</MinTileRow>
            <MaxTileRow>664</MaxTileRow>
            <MinTileCol>986</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1234</MinTileRow>
            <MaxTileRow>1329</MaxTileRow>
            <MinTileCol>1972</MinTileCol>
            <MaxTileCol>2044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2469</MinTileRow>
            <MaxTileRow>2659</MaxTileRow>
            <MinTileCol>3945</MinTileCol>
            <MaxTileCol>4089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4938</MinTileRow>
            <MaxTileRow>5319</MaxTileRow>
            <MinTileCol>7890</MinTileCol>
            <MaxTileCol>8179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9876</MinTileRow>
            <MaxTileRow>10639</MaxTileRow>
            <MinTileCol>15780</MinTileCol>
            <MaxTileCol>16358</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19753</MinTileRow>
            <MaxTileRow>21278</MaxTileRow>
            <MinTileCol>31560</MinTileCol>
            <MaxTileCol>32716</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39506</MinTileRow>
            <MaxTileRow>42557</MaxTileRow>
            <MinTileCol>63121</MinTileCol>
            <MaxTileCol>65432</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79012</MinTileRow>
            <MaxTileRow>85115</MaxTileRow>
            <MinTileCol>126243</MinTileCol>
            <MaxTileCol>130864</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158025</MinTileRow>
            <MaxTileRow>170231</MaxTileRow>
            <MinTileCol>252487</MinTileCol>
            <MaxTileCol>261729</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>316050</MinTileRow>
            <MaxTileRow>340462</MaxTileRow>
            <MinTileCol>504974</MinTileCol>
            <MaxTileCol>523458</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>632100</MinTileRow>
            <MaxTileRow>680925</MaxTileRow>
            <MinTileCol>1009948</MinTileCol>
            <MaxTileCol>1046916</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1264201</MinTileRow>
            <MaxTileRow>1361851</MaxTileRow>
            <MinTileCol>2019896</MinTileCol>
            <MaxTileCol>2093832</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2528403</MinTileRow>
            <MaxTileRow>2723702</MaxTileRow>
            <MinTileCol>4039792</MinTileCol>
            <MaxTileCol>4187665</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5056807</MinTileRow>
            <MaxTileRow>5447404</MaxTileRow>
            <MinTileCol>8079585</MinTileCol>
            <MaxTileCol>8375331</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10113614</MinTileRow>
            <MaxTileRow>10894808</MaxTileRow>
            <MinTileCol>16159170</MinTileCol>
            <MaxTileCol>16750663</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20227228</MinTileRow>
            <MaxTileRow>21789617</MaxTileRow>
            <MinTileCol>32318340</MinTileCol>
            <MaxTileCol>33501326</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40454456</MinTileRow>
            <MaxTileRow>43579234</MaxTileRow>
            <MinTileCol>64636680</MinTileCol>
            <MaxTileCol>67002652</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80908912</MinTileRow>
            <MaxTileRow>87158469</MaxTileRow>
            <MinTileCol>129273361</MinTileCol>
            <MaxTileCol>134005304</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161817824</MinTileRow>
            <MaxTileRow>174316938</MaxTileRow>
            <MinTileCol>258546722</MinTileCol>
            <MaxTileCol>268010609</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>323635648</MinTileRow>
            <MaxTileRow>348633876</MaxTileRow>
            <MinTileCol>517093445</MinTileCol>
            <MaxTileCol>536021218</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>647271296</MinTileRow>
            <MaxTileRow>697267752</MaxTileRow>
            <MinTileCol>1034186890</MinTileCol>
            <MaxTileCol>1072042437</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_River_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_River_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_River_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_River_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_River_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_River_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_River_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_River_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_River_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_River_Polygons_250K/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_River_Polygons_250K/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_DEVORA</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>174.56631468477732 -37.307256681779144</ows:LowerCorner>
        <ows:UpperCorner>175.24327126064742 -36.724656085424954</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_DEVORA</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_devora</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_DEVORA" 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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>90</MinTileRow>
            <MaxTileRow>90</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>180</MinTileRow>
            <MaxTileRow>181</MaxTileRow>
            <MinTileCol>504</MinTileCol>
            <MaxTileCol>505</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>360</MinTileRow>
            <MaxTileRow>362</MaxTileRow>
            <MinTileCol>1008</MinTileCol>
            <MaxTileCol>1010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>720</MinTileRow>
            <MaxTileRow>724</MaxTileRow>
            <MinTileCol>2017</MinTileCol>
            <MaxTileCol>2020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1441</MinTileRow>
            <MaxTileRow>1448</MaxTileRow>
            <MinTileCol>4034</MinTileCol>
            <MaxTileCol>4041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2883</MinTileRow>
            <MaxTileRow>2896</MaxTileRow>
            <MinTileCol>8068</MinTileCol>
            <MaxTileCol>8083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5767</MinTileRow>
            <MaxTileRow>5793</MaxTileRow>
            <MinTileCol>16136</MinTileCol>
            <MaxTileCol>16167</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11534</MinTileRow>
            <MaxTileRow>11587</MaxTileRow>
            <MinTileCol>32273</MinTileCol>
            <MaxTileCol>32335</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23069</MinTileRow>
            <MaxTileRow>23175</MaxTileRow>
            <MinTileCol>64546</MinTileCol>
            <MaxTileCol>64670</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46139</MinTileRow>
            <MaxTileRow>46351</MaxTileRow>
            <MinTileCol>129093</MinTileCol>
            <MaxTileCol>129340</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>92278</MinTileRow>
            <MaxTileRow>92702</MaxTileRow>
            <MinTileCol>258187</MinTileCol>
            <MaxTileCol>258680</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>184556</MinTileRow>
            <MaxTileRow>185404</MaxTileRow>
            <MinTileCol>516374</MinTileCol>
            <MaxTileCol>517360</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>369112</MinTileRow>
            <MaxTileRow>370809</MaxTileRow>
            <MinTileCol>1032749</MinTileCol>
            <MaxTileCol>1034721</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>738224</MinTileRow>
            <MaxTileRow>741618</MaxTileRow>
            <MinTileCol>2065498</MinTileCol>
            <MaxTileCol>2069442</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1476449</MinTileRow>
            <MaxTileRow>1483237</MaxTileRow>
            <MinTileCol>4130996</MinTileCol>
            <MaxTileCol>4138884</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>78</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>156</MinTileRow>
            <MaxTileRow>156</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>312</MinTileRow>
            <MaxTileRow>313</MaxTileRow>
            <MinTileCol>504</MinTileCol>
            <MaxTileCol>505</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>624</MinTileRow>
            <MaxTileRow>626</MaxTileRow>
            <MinTileCol>1008</MinTileCol>
            <MaxTileCol>1010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1248</MinTileRow>
            <MaxTileRow>1253</MaxTileRow>
            <MinTileCol>2017</MinTileCol>
            <MaxTileCol>2020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2497</MinTileRow>
            <MaxTileRow>2506</MaxTileRow>
            <MinTileCol>4034</MinTileCol>
            <MaxTileCol>4041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4995</MinTileRow>
            <MaxTileRow>5012</MaxTileRow>
            <MinTileCol>8068</MinTileCol>
            <MaxTileCol>8083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9991</MinTileRow>
            <MaxTileRow>10024</MaxTileRow>
            <MinTileCol>16136</MinTileCol>
            <MaxTileCol>16167</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19982</MinTileRow>
            <MaxTileRow>20048</MaxTileRow>
            <MinTileCol>32273</MinTileCol>
            <MaxTileCol>32335</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39964</MinTileRow>
            <MaxTileRow>40097</MaxTileRow>
            <MinTileCol>64546</MinTileCol>
            <MaxTileCol>64670</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79929</MinTileRow>
            <MaxTileRow>80195</MaxTileRow>
            <MinTileCol>129093</MinTileCol>
            <MaxTileCol>129340</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>159859</MinTileRow>
            <MaxTileRow>160390</MaxTileRow>
            <MinTileCol>258187</MinTileCol>
            <MaxTileCol>258680</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>319718</MinTileRow>
            <MaxTileRow>320780</MaxTileRow>
            <MinTileCol>516374</MinTileCol>
            <MaxTileCol>517360</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>639436</MinTileRow>
            <MaxTileRow>641561</MaxTileRow>
            <MinTileCol>1032749</MinTileCol>
            <MaxTileCol>1034721</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1278872</MinTileRow>
            <MaxTileRow>1283123</MaxTileRow>
            <MinTileCol>2065498</MinTileCol>
            <MaxTileCol>2069442</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2557745</MinTileRow>
            <MaxTileRow>2566246</MaxTileRow>
            <MinTileCol>4130996</MinTileCol>
            <MaxTileCol>4138884</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5115490</MinTileRow>
            <MaxTileRow>5132492</MaxTileRow>
            <MinTileCol>8261993</MinTileCol>
            <MaxTileCol>8277768</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10230980</MinTileRow>
            <MaxTileRow>10264985</MaxTileRow>
            <MinTileCol>16523987</MinTileCol>
            <MaxTileCol>16555536</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20461961</MinTileRow>
            <MaxTileRow>20529970</MaxTileRow>
            <MinTileCol>33047975</MinTileCol>
            <MaxTileCol>33111072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40923922</MinTileRow>
            <MaxTileRow>41059940</MaxTileRow>
            <MinTileCol>66095951</MinTileCol>
            <MaxTileCol>66222145</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81847845</MinTileRow>
            <MaxTileRow>82119880</MaxTileRow>
            <MinTileCol>132191903</MinTileCol>
            <MaxTileCol>132444290</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>163695690</MinTileRow>
            <MaxTileRow>164239760</MaxTileRow>
            <MinTileCol>264383806</MinTileCol>
            <MaxTileCol>264888581</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>327391380</MinTileRow>
            <MaxTileRow>328479520</MaxTileRow>
            <MinTileCol>528767613</MinTileCol>
            <MaxTileCol>529777163</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>654782761</MinTileRow>
            <MaxTileRow>656959041</MaxTileRow>
            <MinTileCol>1057535226</MinTileCol>
            <MaxTileCol>1059554327</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DEVORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DEVORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DEVORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DEVORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DEVORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DEVORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DEVORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DEVORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DEVORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DEVORA/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_DEVORA/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>si_head_median</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.07698958345998 -47.637075279868114</ows:LowerCorner>
        <ows:UpperCorner>174.7169297281135 -40.16398214292425</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:si_head_median</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_ni_head</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=91&amp;height=213&amp;layer=twotw%3Asi_head_median" width="91" height="213"/>
      </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>23</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>185</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>504</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>370</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1008</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>740</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1968</MinTileCol>
            <MaxTileCol>2017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1480</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3937</MinTileCol>
            <MaxTileCol>4035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2961</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7875</MinTileCol>
            <MaxTileCol>8071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5923</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15750</MinTileCol>
            <MaxTileCol>16143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11847</MinTileRow>
            <MaxTileRow>12528</MaxTileRow>
            <MinTileCol>31500</MinTileCol>
            <MaxTileCol>32287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23695</MinTileRow>
            <MaxTileRow>25056</MaxTileRow>
            <MinTileCol>63001</MinTileCol>
            <MaxTileCol>64574</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47391</MinTileRow>
            <MaxTileRow>50112</MaxTileRow>
            <MinTileCol>126002</MinTileCol>
            <MaxTileCol>129148</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94782</MinTileRow>
            <MaxTileRow>100224</MaxTileRow>
            <MinTileCol>252005</MinTileCol>
            <MaxTileCol>258296</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>189565</MinTileRow>
            <MaxTileRow>200448</MaxTileRow>
            <MinTileCol>504011</MinTileCol>
            <MaxTileCol>516593</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>379130</MinTileRow>
            <MaxTileRow>400897</MaxTileRow>
            <MinTileCol>1008022</MinTileCol>
            <MaxTileCol>1033187</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>758260</MinTileRow>
            <MaxTileRow>801794</MaxTileRow>
            <MinTileCol>2016044</MinTileCol>
            <MaxTileCol>2066375</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1516520</MinTileRow>
            <MaxTileRow>1603588</MaxTileRow>
            <MinTileCol>4032089</MinTileCol>
            <MaxTileCol>4132751</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>39</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>159</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>318</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>504</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>636</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1008</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1273</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1968</MinTileCol>
            <MaxTileCol>2017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2547</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3937</MinTileCol>
            <MaxTileCol>4035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5095</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7875</MinTileCol>
            <MaxTileCol>8071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10191</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15750</MinTileCol>
            <MaxTileCol>16143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20382</MinTileRow>
            <MaxTileRow>21328</MaxTileRow>
            <MinTileCol>31500</MinTileCol>
            <MaxTileCol>32287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40764</MinTileRow>
            <MaxTileRow>42656</MaxTileRow>
            <MinTileCol>63001</MinTileCol>
            <MaxTileCol>64574</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81528</MinTileRow>
            <MaxTileRow>85312</MaxTileRow>
            <MinTileCol>126002</MinTileCol>
            <MaxTileCol>129148</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>163057</MinTileRow>
            <MaxTileRow>170625</MaxTileRow>
            <MinTileCol>252005</MinTileCol>
            <MaxTileCol>258296</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>326115</MinTileRow>
            <MaxTileRow>341250</MaxTileRow>
            <MinTileCol>504011</MinTileCol>
            <MaxTileCol>516593</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>652231</MinTileRow>
            <MaxTileRow>682501</MaxTileRow>
            <MinTileCol>1008022</MinTileCol>
            <MaxTileCol>1033187</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1304462</MinTileRow>
            <MaxTileRow>1365003</MaxTileRow>
            <MinTileCol>2016044</MinTileCol>
            <MaxTileCol>2066375</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2608924</MinTileRow>
            <MaxTileRow>2730006</MaxTileRow>
            <MinTileCol>4032089</MinTileCol>
            <MaxTileCol>4132751</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5217849</MinTileRow>
            <MaxTileRow>5460012</MaxTileRow>
            <MinTileCol>8064178</MinTileCol>
            <MaxTileCol>8265503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10435699</MinTileRow>
            <MaxTileRow>10920025</MaxTileRow>
            <MinTileCol>16128356</MinTileCol>
            <MaxTileCol>16531007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20871399</MinTileRow>
            <MaxTileRow>21840050</MaxTileRow>
            <MinTileCol>32256713</MinTileCol>
            <MaxTileCol>33062014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41742799</MinTileRow>
            <MaxTileRow>43680101</MaxTileRow>
            <MinTileCol>64513426</MinTileCol>
            <MaxTileCol>66124028</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83485598</MinTileRow>
            <MaxTileRow>87360202</MaxTileRow>
            <MinTileCol>129026853</MinTileCol>
            <MaxTileCol>132248056</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166971196</MinTileRow>
            <MaxTileRow>174720405</MaxTileRow>
            <MinTileCol>258053706</MinTileCol>
            <MaxTileCol>264496113</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>333942393</MinTileRow>
            <MaxTileRow>349440810</MaxTileRow>
            <MinTileCol>516107413</MinTileCol>
            <MaxTileCol>528992226</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>667884786</MinTileRow>
            <MaxTileRow>698881621</MaxTileRow>
            <MinTileCol>1032214827</MinTileCol>
            <MaxTileCol>1057984453</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_head_median/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_head_median/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZL-Urban_Wellington_geological_units</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>174.60600541532594 -41.44424886480975</ows:LowerCorner>
        <ows:UpperCorner>175.15690598829735 -41.09498560492484</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZL-Urban_Wellington_geological_units</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>Urban_Wellington</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=89&amp;height=1460&amp;layer=gns%3ANZL-Urban_Wellington_geological_units" width="89" height="1460"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>186</MaxTileRow>
            <MinTileCol>504</MinTileCol>
            <MaxTileCol>505</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>372</MinTileRow>
            <MaxTileRow>373</MaxTileRow>
            <MinTileCol>1008</MinTileCol>
            <MaxTileCol>1010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>745</MinTileRow>
            <MaxTileRow>747</MaxTileRow>
            <MinTileCol>2017</MinTileCol>
            <MaxTileCol>2020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1491</MinTileRow>
            <MaxTileRow>1495</MaxTileRow>
            <MinTileCol>4034</MinTileCol>
            <MaxTileCol>4040</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2983</MinTileRow>
            <MaxTileRow>2991</MaxTileRow>
            <MinTileCol>8069</MinTileCol>
            <MaxTileCol>8081</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5966</MinTileRow>
            <MaxTileRow>5982</MaxTileRow>
            <MinTileCol>16138</MinTileCol>
            <MaxTileCol>16163</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11932</MinTileRow>
            <MaxTileRow>11964</MaxTileRow>
            <MinTileCol>32277</MinTileCol>
            <MaxTileCol>32327</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23865</MinTileRow>
            <MaxTileRow>23928</MaxTileRow>
            <MinTileCol>64554</MinTileCol>
            <MaxTileCol>64654</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47730</MinTileRow>
            <MaxTileRow>47857</MaxTileRow>
            <MinTileCol>129108</MinTileCol>
            <MaxTileCol>129308</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95460</MinTileRow>
            <MaxTileRow>95714</MaxTileRow>
            <MinTileCol>258216</MinTileCol>
            <MaxTileCol>258617</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>190920</MinTileRow>
            <MaxTileRow>191429</MaxTileRow>
            <MinTileCol>516432</MinTileCol>
            <MaxTileCol>517234</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>381841</MinTileRow>
            <MaxTileRow>382859</MaxTileRow>
            <MinTileCol>1032864</MinTileCol>
            <MaxTileCol>1034469</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>763683</MinTileRow>
            <MaxTileRow>765718</MaxTileRow>
            <MinTileCol>2065729</MinTileCol>
            <MaxTileCol>2068938</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1527367</MinTileRow>
            <MaxTileRow>1531436</MaxTileRow>
            <MinTileCol>4131459</MinTileCol>
            <MaxTileCol>4137877</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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>320</MaxTileRow>
            <MinTileCol>504</MinTileCol>
            <MaxTileCol>505</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>640</MinTileRow>
            <MaxTileRow>641</MaxTileRow>
            <MinTileCol>1008</MinTileCol>
            <MaxTileCol>1010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1280</MinTileRow>
            <MaxTileRow>1283</MaxTileRow>
            <MinTileCol>2017</MinTileCol>
            <MaxTileCol>2020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2561</MinTileRow>
            <MaxTileRow>2567</MaxTileRow>
            <MinTileCol>4034</MinTileCol>
            <MaxTileCol>4040</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5123</MinTileRow>
            <MaxTileRow>5134</MaxTileRow>
            <MinTileCol>8069</MinTileCol>
            <MaxTileCol>8081</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10246</MinTileRow>
            <MaxTileRow>10268</MaxTileRow>
            <MinTileCol>16138</MinTileCol>
            <MaxTileCol>16163</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20493</MinTileRow>
            <MaxTileRow>20536</MaxTileRow>
            <MinTileCol>32277</MinTileCol>
            <MaxTileCol>32327</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40987</MinTileRow>
            <MaxTileRow>41072</MaxTileRow>
            <MinTileCol>64554</MinTileCol>
            <MaxTileCol>64654</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81975</MinTileRow>
            <MaxTileRow>82144</MaxTileRow>
            <MinTileCol>129108</MinTileCol>
            <MaxTileCol>129308</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>163951</MinTileRow>
            <MaxTileRow>164289</MaxTileRow>
            <MinTileCol>258216</MinTileCol>
            <MaxTileCol>258617</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>327902</MinTileRow>
            <MaxTileRow>328578</MaxTileRow>
            <MinTileCol>516432</MinTileCol>
            <MaxTileCol>517234</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>655804</MinTileRow>
            <MaxTileRow>657157</MaxTileRow>
            <MinTileCol>1032864</MinTileCol>
            <MaxTileCol>1034469</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1311608</MinTileRow>
            <MaxTileRow>1314315</MaxTileRow>
            <MinTileCol>2065729</MinTileCol>
            <MaxTileCol>2068938</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2623217</MinTileRow>
            <MaxTileRow>2628631</MaxTileRow>
            <MinTileCol>4131459</MinTileCol>
            <MaxTileCol>4137877</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5246435</MinTileRow>
            <MaxTileRow>5257263</MaxTileRow>
            <MinTileCol>8262918</MinTileCol>
            <MaxTileCol>8275755</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10492870</MinTileRow>
            <MaxTileRow>10514526</MaxTileRow>
            <MinTileCol>16525837</MinTileCol>
            <MaxTileCol>16551511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20985741</MinTileRow>
            <MaxTileRow>21029053</MaxTileRow>
            <MinTileCol>33051675</MinTileCol>
            <MaxTileCol>33103022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41971482</MinTileRow>
            <MaxTileRow>42058106</MaxTileRow>
            <MinTileCol>66103350</MinTileCol>
            <MaxTileCol>66206045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83942965</MinTileRow>
            <MaxTileRow>84116213</MaxTileRow>
            <MinTileCol>132206701</MinTileCol>
            <MaxTileCol>132412091</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>167885931</MinTileRow>
            <MaxTileRow>168232426</MaxTileRow>
            <MinTileCol>264413402</MinTileCol>
            <MaxTileCol>264824183</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>335771862</MinTileRow>
            <MaxTileRow>336464852</MaxTileRow>
            <MinTileCol>528826804</MinTileCol>
            <MaxTileCol>529648366</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>671543725</MinTileRow>
            <MaxTileRow>672929705</MaxTileRow>
            <MinTileCol>1057653608</MinTileCol>
            <MaxTileCol>1059296733</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wellington_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wellington_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wellington_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wellington_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wellington_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wellington_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wellington_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wellington_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wellington_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wellington_geological_units/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wellington_geological_units/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>geol_boundaries</ows:Title>
      <ows:Abstract>The central part of the South Island of New Zealand contains an array of landforms produced by the action of glaciers, spanning from prehistoric time through to the present day. Glaciers are expressions of atmospheric climatic conditions, and their advances and retreats, as recorded by distinctive landforms, provide a measure of past climate changes. As one of the few landmasses in the Southern Hemisphere, and especially one where glaciers have had a persistent presence, New Zealand&apos;s glacier record is an important piece of information for enquiry into the natural behaviour of Earth&apos;s climate system. The central South Island record benefits from having modern glaciers, whose historic behaviour provides an analogue for the interpretation of the prehistoric record. In addition, the prehistoric record provides context to the widespread retreat of Southern Alps glaciers within the last hundred years or so, and questions about future climate change. The central South Island glacial geomorphological (CSIGG) digital database documents these landforms. This dataset was used to generate the printed 1:100,000 geomorphological map, on a five-sheet large-format cut-up, that was enclosed in GNS Science Monograph 27 (Barrell et al., 2011).</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>169.63233556682684 -44.45721021617972</ows:LowerCorner>
        <ows:UpperCorner>172.84348588022462 -42.24089170531473</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:geol_boundaries</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:csigg_boundaries_style</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=144&amp;height=620&amp;layer=gns%3Ageol_boundaries" width="144" height="620" minScaleDenominator="20000.0"/>
      </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>124</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>94</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>188</MinTileRow>
            <MaxTileRow>191</MaxTileRow>
            <MinTileCol>497</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>376</MinTileRow>
            <MaxTileRow>382</MaxTileRow>
            <MinTileCol>994</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>752</MinTileRow>
            <MaxTileRow>764</MaxTileRow>
            <MinTileCol>1989</MinTileCol>
            <MaxTileCol>2007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1504</MinTileRow>
            <MaxTileRow>1529</MaxTileRow>
            <MinTileCol>3978</MinTileCol>
            <MaxTileCol>4014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3009</MinTileRow>
            <MaxTileRow>3059</MaxTileRow>
            <MinTileCol>7956</MinTileCol>
            <MaxTileCol>8029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6018</MinTileRow>
            <MaxTileRow>6119</MaxTileRow>
            <MinTileCol>15912</MinTileCol>
            <MaxTileCol>16058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12036</MinTileRow>
            <MaxTileRow>12238</MaxTileRow>
            <MinTileCol>31824</MinTileCol>
            <MaxTileCol>32116</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24073</MinTileRow>
            <MaxTileRow>24477</MaxTileRow>
            <MinTileCol>63648</MinTileCol>
            <MaxTileCol>64233</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48147</MinTileRow>
            <MaxTileRow>48954</MaxTileRow>
            <MinTileCol>127297</MinTileCol>
            <MaxTileCol>128466</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>96294</MinTileRow>
            <MaxTileRow>97908</MaxTileRow>
            <MinTileCol>254594</MinTileCol>
            <MaxTileCol>256932</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>192589</MinTileRow>
            <MaxTileRow>195817</MaxTileRow>
            <MinTileCol>509188</MinTileCol>
            <MaxTileCol>513865</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>385179</MinTileRow>
            <MaxTileRow>391635</MaxTileRow>
            <MinTileCol>1018377</MinTileCol>
            <MaxTileCol>1027731</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>770359</MinTileRow>
            <MaxTileRow>783270</MaxTileRow>
            <MinTileCol>2036755</MinTileCol>
            <MaxTileCol>2055462</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1540718</MinTileRow>
            <MaxTileRow>1566540</MaxTileRow>
            <MinTileCol>4073511</MinTileCol>
            <MaxTileCol>4110924</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>80</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>161</MinTileRow>
            <MaxTileRow>163</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>322</MinTileRow>
            <MaxTileRow>326</MaxTileRow>
            <MinTileCol>497</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>644</MinTileRow>
            <MaxTileRow>653</MaxTileRow>
            <MinTileCol>994</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1289</MinTileRow>
            <MaxTileRow>1306</MaxTileRow>
            <MinTileCol>1989</MinTileCol>
            <MaxTileCol>2007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2579</MinTileRow>
            <MaxTileRow>2613</MaxTileRow>
            <MinTileCol>3978</MinTileCol>
            <MaxTileCol>4014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5158</MinTileRow>
            <MaxTileRow>5227</MaxTileRow>
            <MinTileCol>7956</MinTileCol>
            <MaxTileCol>8029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10316</MinTileRow>
            <MaxTileRow>10455</MaxTileRow>
            <MinTileCol>15912</MinTileCol>
            <MaxTileCol>16058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20633</MinTileRow>
            <MaxTileRow>20910</MaxTileRow>
            <MinTileCol>31824</MinTileCol>
            <MaxTileCol>32116</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41267</MinTileRow>
            <MaxTileRow>41821</MaxTileRow>
            <MinTileCol>63648</MinTileCol>
            <MaxTileCol>64233</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82534</MinTileRow>
            <MaxTileRow>83643</MaxTileRow>
            <MinTileCol>127297</MinTileCol>
            <MaxTileCol>128466</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>165068</MinTileRow>
            <MaxTileRow>167287</MaxTileRow>
            <MinTileCol>254594</MinTileCol>
            <MaxTileCol>256932</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>330136</MinTileRow>
            <MaxTileRow>334575</MaxTileRow>
            <MinTileCol>509188</MinTileCol>
            <MaxTileCol>513865</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>660272</MinTileRow>
            <MaxTileRow>669151</MaxTileRow>
            <MinTileCol>1018377</MinTileCol>
            <MaxTileCol>1027731</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1320545</MinTileRow>
            <MaxTileRow>1338303</MaxTileRow>
            <MinTileCol>2036755</MinTileCol>
            <MaxTileCol>2055462</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2641090</MinTileRow>
            <MaxTileRow>2676606</MaxTileRow>
            <MinTileCol>4073511</MinTileCol>
            <MaxTileCol>4110924</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5282181</MinTileRow>
            <MaxTileRow>5353212</MaxTileRow>
            <MinTileCol>8147023</MinTileCol>
            <MaxTileCol>8221849</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10564362</MinTileRow>
            <MaxTileRow>10706425</MaxTileRow>
            <MinTileCol>16294047</MinTileCol>
            <MaxTileCol>16443698</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21128725</MinTileRow>
            <MaxTileRow>21412850</MaxTileRow>
            <MinTileCol>32588095</MinTileCol>
            <MaxTileCol>32887396</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42257451</MinTileRow>
            <MaxTileRow>42825701</MaxTileRow>
            <MinTileCol>65176191</MinTileCol>
            <MaxTileCol>65774793</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84514903</MinTileRow>
            <MaxTileRow>85651403</MaxTileRow>
            <MinTileCol>130352382</MinTileCol>
            <MaxTileCol>131549586</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>169029806</MinTileRow>
            <MaxTileRow>171302807</MaxTileRow>
            <MinTileCol>260704765</MinTileCol>
            <MaxTileCol>263099172</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>338059612</MinTileRow>
            <MaxTileRow>342605615</MaxTileRow>
            <MinTileCol>521409530</MinTileCol>
            <MaxTileCol>526198344</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>676119224</MinTileRow>
            <MaxTileRow>685211231</MaxTileRow>
            <MinTileCol>1042819060</MinTileCol>
            <MaxTileCol>1052396689</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_boundaries/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_boundaries/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_boundaries/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_VIC</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_VIC</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_victoria</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_VIC" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_VIC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_VIC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_VIC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_VIC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_VIC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_VIC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_VIC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_VIC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_VIC/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_VIC/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_VIC/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_mean_200_250</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_mean_200_250</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_mean_200_250" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_200_250/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_200_250/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>placenames</ows:Title>
      <ows:Abstract>Basic place names from LINZ, as static shapefile copied 2025.</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>164.858669 -52.617509</ows:LowerCorner>
        <ows:UpperCorner>179.064113 -32.416667</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:placenames</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:placenames_basic</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=110&amp;height=20&amp;layer=gns%3Aplacenames" width="110" 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>10</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>21</MinTileRow>
            <MaxTileRow>25</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>43</MinTileRow>
            <MaxTileRow>50</MaxTileRow>
            <MinTileCol>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>87</MinTileRow>
            <MaxTileRow>101</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>174</MinTileRow>
            <MaxTileRow>202</MaxTileRow>
            <MinTileCol>490</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>348</MinTileRow>
            <MaxTileRow>405</MaxTileRow>
            <MinTileCol>980</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>696</MinTileRow>
            <MaxTileRow>811</MaxTileRow>
            <MinTileCol>1961</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1392</MinTileRow>
            <MaxTileRow>1622</MaxTileRow>
            <MinTileCol>3923</MinTileCol>
            <MaxTileCol>4085</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2785</MinTileRow>
            <MaxTileRow>3245</MaxTileRow>
            <MinTileCol>7847</MinTileCol>
            <MaxTileCol>8170</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5571</MinTileRow>
            <MaxTileRow>6490</MaxTileRow>
            <MinTileCol>15694</MinTileCol>
            <MaxTileCol>16341</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11142</MinTileRow>
            <MaxTileRow>12981</MaxTileRow>
            <MinTileCol>31389</MinTileCol>
            <MaxTileCol>32682</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22285</MinTileRow>
            <MaxTileRow>25962</MaxTileRow>
            <MinTileCol>62779</MinTileCol>
            <MaxTileCol>65365</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>44570</MinTileRow>
            <MaxTileRow>51925</MaxTileRow>
            <MinTileCol>125559</MinTileCol>
            <MaxTileCol>130731</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>89141</MinTileRow>
            <MaxTileRow>103850</MaxTileRow>
            <MinTileCol>251118</MinTileCol>
            <MaxTileCol>261462</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>178282</MinTileRow>
            <MaxTileRow>207701</MaxTileRow>
            <MinTileCol>502236</MinTileCol>
            <MaxTileCol>522925</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>356564</MinTileRow>
            <MaxTileRow>415403</MaxTileRow>
            <MinTileCol>1004473</MinTileCol>
            <MaxTileCol>1045850</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>713128</MinTileRow>
            <MaxTileRow>830807</MaxTileRow>
            <MinTileCol>2008947</MinTileCol>
            <MaxTileCol>2091700</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1426257</MinTileRow>
            <MaxTileRow>1661614</MaxTileRow>
            <MinTileCol>4017894</MinTileCol>
            <MaxTileCol>4183400</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>21</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>43</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>86</MaxTileRow>
            <MinTileCol>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>152</MinTileRow>
            <MaxTileRow>172</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>304</MinTileRow>
            <MaxTileRow>344</MaxTileRow>
            <MinTileCol>490</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>609</MinTileRow>
            <MaxTileRow>688</MaxTileRow>
            <MinTileCol>980</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1219</MinTileRow>
            <MaxTileRow>1377</MaxTileRow>
            <MinTileCol>1961</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2438</MinTileRow>
            <MaxTileRow>2754</MaxTileRow>
            <MinTileCol>3923</MinTileCol>
            <MaxTileCol>4085</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4876</MinTileRow>
            <MaxTileRow>5509</MaxTileRow>
            <MinTileCol>7847</MinTileCol>
            <MaxTileCol>8170</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9752</MinTileRow>
            <MaxTileRow>11018</MaxTileRow>
            <MinTileCol>15694</MinTileCol>
            <MaxTileCol>16341</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19505</MinTileRow>
            <MaxTileRow>22036</MaxTileRow>
            <MinTileCol>31389</MinTileCol>
            <MaxTileCol>32682</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39011</MinTileRow>
            <MaxTileRow>44072</MaxTileRow>
            <MinTileCol>62779</MinTileCol>
            <MaxTileCol>65365</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78023</MinTileRow>
            <MaxTileRow>88144</MaxTileRow>
            <MinTileCol>125559</MinTileCol>
            <MaxTileCol>130731</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>156047</MinTileRow>
            <MaxTileRow>176289</MaxTileRow>
            <MinTileCol>251118</MinTileCol>
            <MaxTileCol>261462</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>312095</MinTileRow>
            <MaxTileRow>352578</MaxTileRow>
            <MinTileCol>502236</MinTileCol>
            <MaxTileCol>522925</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>624190</MinTileRow>
            <MaxTileRow>705157</MaxTileRow>
            <MinTileCol>1004473</MinTileCol>
            <MaxTileCol>1045850</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1248381</MinTileRow>
            <MaxTileRow>1410314</MaxTileRow>
            <MinTileCol>2008947</MinTileCol>
            <MaxTileCol>2091700</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2496762</MinTileRow>
            <MaxTileRow>2820629</MaxTileRow>
            <MinTileCol>4017894</MinTileCol>
            <MaxTileCol>4183400</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>4993524</MinTileRow>
            <MaxTileRow>5641258</MaxTileRow>
            <MinTileCol>8035789</MinTileCol>
            <MaxTileCol>8366800</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>9987049</MinTileRow>
            <MaxTileRow>11282517</MaxTileRow>
            <MinTileCol>16071578</MinTileCol>
            <MaxTileCol>16733600</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>19974099</MinTileRow>
            <MaxTileRow>22565035</MaxTileRow>
            <MinTileCol>32143157</MinTileCol>
            <MaxTileCol>33467201</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>39948199</MinTileRow>
            <MaxTileRow>45130071</MaxTileRow>
            <MinTileCol>64286315</MinTileCol>
            <MaxTileCol>66934402</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>79896399</MinTileRow>
            <MaxTileRow>90260143</MaxTileRow>
            <MinTileCol>128572630</MinTileCol>
            <MaxTileCol>133868804</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>159792799</MinTileRow>
            <MaxTileRow>180520286</MaxTileRow>
            <MinTileCol>257145261</MinTileCol>
            <MaxTileCol>267737608</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>319585598</MinTileRow>
            <MaxTileRow>361040572</MaxTileRow>
            <MinTileCol>514290522</MinTileCol>
            <MaxTileCol>535475216</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>639171197</MinTileRow>
            <MaxTileRow>722081144</MaxTileRow>
            <MinTileCol>1028581045</MinTileCol>
            <MaxTileCol>1070950432</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:placenames/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:placenames/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:placenames/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:placenames/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:placenames/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:placenames/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:placenames/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:placenames/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:placenames/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:placenames/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:placenames/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NationalGroundwaterMonitoringProgramme</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.06125884597645 -46.311234523664</ows:LowerCorner>
        <ows:UpperCorner>177.98372945920806 -34.8484030877073</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>ggw:NationalGroundwaterMonitoringProgramme</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>ggw:point_magenta</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=ggw%3ANationalGroundwaterMonitoringProgramme" 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>96</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>177</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>495</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>355</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>990</MinTileCol>
            <MaxTileCol>1018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>710</MinTileRow>
            <MaxTileRow>775</MaxTileRow>
            <MinTileCol>1980</MinTileCol>
            <MaxTileCol>2036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1420</MinTileRow>
            <MaxTileRow>1550</MaxTileRow>
            <MinTileCol>3960</MinTileCol>
            <MaxTileCol>4073</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2840</MinTileRow>
            <MaxTileRow>3101</MaxTileRow>
            <MinTileCol>7920</MinTileCol>
            <MaxTileCol>8146</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5681</MinTileRow>
            <MaxTileRow>6203</MaxTileRow>
            <MinTileCol>15840</MinTileCol>
            <MaxTileCol>16292</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11363</MinTileRow>
            <MaxTileRow>12407</MaxTileRow>
            <MinTileCol>31681</MinTileCol>
            <MaxTileCol>32584</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22727</MinTileRow>
            <MaxTileRow>24814</MaxTileRow>
            <MinTileCol>63362</MinTileCol>
            <MaxTileCol>65168</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45455</MinTileRow>
            <MaxTileRow>49629</MaxTileRow>
            <MinTileCol>126725</MinTileCol>
            <MaxTileCol>130337</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90911</MinTileRow>
            <MaxTileRow>99258</MaxTileRow>
            <MinTileCol>253450</MinTileCol>
            <MaxTileCol>260675</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>181823</MinTileRow>
            <MaxTileRow>198517</MaxTileRow>
            <MinTileCol>506900</MinTileCol>
            <MaxTileCol>521351</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>363647</MinTileRow>
            <MaxTileRow>397035</MaxTileRow>
            <MinTileCol>1013801</MinTileCol>
            <MaxTileCol>1042703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>727294</MinTileRow>
            <MaxTileRow>794070</MaxTileRow>
            <MinTileCol>2027603</MinTileCol>
            <MaxTileCol>2085406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1454589</MinTileRow>
            <MaxTileRow>1588140</MaxTileRow>
            <MinTileCol>4055207</MinTileCol>
            <MaxTileCol>4170812</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>77</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>308</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>495</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>617</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>990</MinTileCol>
            <MaxTileCol>1018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1235</MinTileRow>
            <MaxTileRow>1321</MaxTileRow>
            <MinTileCol>1980</MinTileCol>
            <MaxTileCol>2036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2471</MinTileRow>
            <MaxTileRow>2643</MaxTileRow>
            <MinTileCol>3960</MinTileCol>
            <MaxTileCol>4073</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4942</MinTileRow>
            <MaxTileRow>5287</MaxTileRow>
            <MinTileCol>7920</MinTileCol>
            <MaxTileCol>8146</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9885</MinTileRow>
            <MaxTileRow>10575</MaxTileRow>
            <MinTileCol>15840</MinTileCol>
            <MaxTileCol>16292</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19771</MinTileRow>
            <MaxTileRow>21151</MaxTileRow>
            <MinTileCol>31681</MinTileCol>
            <MaxTileCol>32584</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39543</MinTileRow>
            <MaxTileRow>42302</MaxTileRow>
            <MinTileCol>63362</MinTileCol>
            <MaxTileCol>65168</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79087</MinTileRow>
            <MaxTileRow>84605</MaxTileRow>
            <MinTileCol>126725</MinTileCol>
            <MaxTileCol>130337</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158174</MinTileRow>
            <MaxTileRow>169210</MaxTileRow>
            <MinTileCol>253450</MinTileCol>
            <MaxTileCol>260675</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>316349</MinTileRow>
            <MaxTileRow>338420</MaxTileRow>
            <MinTileCol>506900</MinTileCol>
            <MaxTileCol>521351</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>632698</MinTileRow>
            <MaxTileRow>676841</MaxTileRow>
            <MinTileCol>1013801</MinTileCol>
            <MaxTileCol>1042703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1265397</MinTileRow>
            <MaxTileRow>1353682</MaxTileRow>
            <MinTileCol>2027603</MinTileCol>
            <MaxTileCol>2085406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2530795</MinTileRow>
            <MaxTileRow>2707365</MaxTileRow>
            <MinTileCol>4055207</MinTileCol>
            <MaxTileCol>4170812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5061590</MinTileRow>
            <MaxTileRow>5414731</MaxTileRow>
            <MinTileCol>8110415</MinTileCol>
            <MaxTileCol>8341625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10123180</MinTileRow>
            <MaxTileRow>10829463</MaxTileRow>
            <MinTileCol>16220830</MinTileCol>
            <MaxTileCol>16683250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20246360</MinTileRow>
            <MaxTileRow>21658926</MaxTileRow>
            <MinTileCol>32441660</MinTileCol>
            <MaxTileCol>33366501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40492721</MinTileRow>
            <MaxTileRow>43317852</MaxTileRow>
            <MinTileCol>64883321</MinTileCol>
            <MaxTileCol>66733003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80985443</MinTileRow>
            <MaxTileRow>86635704</MaxTileRow>
            <MinTileCol>129766642</MinTileCol>
            <MaxTileCol>133466007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161970886</MinTileRow>
            <MaxTileRow>173271408</MaxTileRow>
            <MinTileCol>259533285</MinTileCol>
            <MaxTileCol>266932015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>323941773</MinTileRow>
            <MaxTileRow>346542817</MaxTileRow>
            <MinTileCol>519066570</MinTileCol>
            <MaxTileCol>533864031</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>647883546</MinTileRow>
            <MaxTileRow>693085635</MaxTileRow>
            <MinTileCol>1038133141</MinTileCol>
            <MaxTileCol>1067728062</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NationalGroundwaterMonitoringProgramme/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NationalGroundwaterMonitoringProgramme/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NationalGroundwaterMonitoringProgramme/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NationalGroundwaterMonitoringProgramme/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NationalGroundwaterMonitoringProgramme/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NationalGroundwaterMonitoringProgramme/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NationalGroundwaterMonitoringProgramme/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NationalGroundwaterMonitoringProgramme/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NationalGroundwaterMonitoringProgramme/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NationalGroundwaterMonitoringProgramme/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NationalGroundwaterMonitoringProgramme/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>GPS_Other</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:GPS_Other</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:gps_other</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=78&amp;height=60&amp;layer=gns%3AGPS_Other" width="78" height="60" maxScaleDenominator="1000000.0"/>
      </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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Other/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Other/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Other/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Other/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Other/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Other/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Other/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Other/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Other/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Other/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Other/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_mean_10_20</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_mean_10_20</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_mean_10_20" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_10_20/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_10_20/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_CAB</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.86993597157158 -47.64846376324362</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_CAB</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_canterbury</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_CAB" 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>493</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>986</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1973</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3946</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7893</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15786</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31572</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>63145</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>126291</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100232</MaxTileRow>
            <MinTileCol>252582</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200465</MaxTileRow>
            <MinTileCol>505165</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400930</MaxTileRow>
            <MinTileCol>1010331</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801860</MaxTileRow>
            <MinTileCol>2020663</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603720</MaxTileRow>
            <MinTileCol>4041327</MinTileCol>
            <MaxTileCol>4185802</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>333</MaxTileRow>
            <MinTileCol>493</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>986</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1973</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3946</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7893</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15786</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31572</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>63145</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85318</MaxTileRow>
            <MinTileCol>126291</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170637</MaxTileRow>
            <MinTileCol>252582</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341275</MaxTileRow>
            <MinTileCol>505165</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682550</MaxTileRow>
            <MinTileCol>1010331</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365101</MaxTileRow>
            <MinTileCol>2020663</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730203</MaxTileRow>
            <MinTileCol>4041327</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460406</MaxTileRow>
            <MinTileCol>8082655</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920813</MaxTileRow>
            <MinTileCol>16165310</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841626</MaxTileRow>
            <MinTileCol>32330621</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683252</MaxTileRow>
            <MinTileCol>64661242</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87366504</MaxTileRow>
            <MinTileCol>129322485</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174733009</MaxTileRow>
            <MinTileCol>258644970</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349466018</MaxTileRow>
            <MinTileCol>517289941</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698932036</MaxTileRow>
            <MinTileCol>1034579882</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_CAB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_CAB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_CAB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_CAB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_CAB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_CAB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_CAB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_CAB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_CAB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_CAB/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_CAB/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_si_dtw_layer2</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.07698958345998 -47.637075279868114</ows:LowerCorner>
        <ows:UpperCorner>174.7169297281135 -40.16398214292425</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_si_dtw_layer2</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw:twotw_dtw</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=122&amp;height=252&amp;layer=twotw%3Atwotw_si_dtw_layer2" width="122" height="252"/>
      </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>23</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>185</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>504</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>370</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1008</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>740</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1968</MinTileCol>
            <MaxTileCol>2017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1480</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3937</MinTileCol>
            <MaxTileCol>4035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2961</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7875</MinTileCol>
            <MaxTileCol>8071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5923</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15750</MinTileCol>
            <MaxTileCol>16143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11847</MinTileRow>
            <MaxTileRow>12528</MaxTileRow>
            <MinTileCol>31500</MinTileCol>
            <MaxTileCol>32287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23695</MinTileRow>
            <MaxTileRow>25056</MaxTileRow>
            <MinTileCol>63001</MinTileCol>
            <MaxTileCol>64574</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47391</MinTileRow>
            <MaxTileRow>50112</MaxTileRow>
            <MinTileCol>126002</MinTileCol>
            <MaxTileCol>129148</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94782</MinTileRow>
            <MaxTileRow>100224</MaxTileRow>
            <MinTileCol>252005</MinTileCol>
            <MaxTileCol>258296</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>189565</MinTileRow>
            <MaxTileRow>200448</MaxTileRow>
            <MinTileCol>504011</MinTileCol>
            <MaxTileCol>516593</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>379130</MinTileRow>
            <MaxTileRow>400897</MaxTileRow>
            <MinTileCol>1008022</MinTileCol>
            <MaxTileCol>1033187</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>758260</MinTileRow>
            <MaxTileRow>801794</MaxTileRow>
            <MinTileCol>2016044</MinTileCol>
            <MaxTileCol>2066375</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1516520</MinTileRow>
            <MaxTileRow>1603588</MaxTileRow>
            <MinTileCol>4032089</MinTileCol>
            <MaxTileCol>4132751</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>39</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>159</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>318</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>504</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>636</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1008</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1273</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1968</MinTileCol>
            <MaxTileCol>2017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2547</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3937</MinTileCol>
            <MaxTileCol>4035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5095</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7875</MinTileCol>
            <MaxTileCol>8071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10191</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15750</MinTileCol>
            <MaxTileCol>16143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20382</MinTileRow>
            <MaxTileRow>21328</MaxTileRow>
            <MinTileCol>31500</MinTileCol>
            <MaxTileCol>32287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40764</MinTileRow>
            <MaxTileRow>42656</MaxTileRow>
            <MinTileCol>63001</MinTileCol>
            <MaxTileCol>64574</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81528</MinTileRow>
            <MaxTileRow>85312</MaxTileRow>
            <MinTileCol>126002</MinTileCol>
            <MaxTileCol>129148</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>163057</MinTileRow>
            <MaxTileRow>170625</MaxTileRow>
            <MinTileCol>252005</MinTileCol>
            <MaxTileCol>258296</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>326115</MinTileRow>
            <MaxTileRow>341250</MaxTileRow>
            <MinTileCol>504011</MinTileCol>
            <MaxTileCol>516593</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>652231</MinTileRow>
            <MaxTileRow>682501</MaxTileRow>
            <MinTileCol>1008022</MinTileCol>
            <MaxTileCol>1033187</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1304462</MinTileRow>
            <MaxTileRow>1365003</MaxTileRow>
            <MinTileCol>2016044</MinTileCol>
            <MaxTileCol>2066375</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2608924</MinTileRow>
            <MaxTileRow>2730006</MaxTileRow>
            <MinTileCol>4032089</MinTileCol>
            <MaxTileCol>4132751</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5217849</MinTileRow>
            <MaxTileRow>5460012</MaxTileRow>
            <MinTileCol>8064178</MinTileCol>
            <MaxTileCol>8265503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10435699</MinTileRow>
            <MaxTileRow>10920025</MaxTileRow>
            <MinTileCol>16128356</MinTileCol>
            <MaxTileCol>16531007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20871399</MinTileRow>
            <MaxTileRow>21840050</MaxTileRow>
            <MinTileCol>32256713</MinTileCol>
            <MaxTileCol>33062014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41742799</MinTileRow>
            <MaxTileRow>43680101</MaxTileRow>
            <MinTileCol>64513426</MinTileCol>
            <MaxTileCol>66124028</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83485598</MinTileRow>
            <MaxTileRow>87360202</MaxTileRow>
            <MinTileCol>129026853</MinTileCol>
            <MaxTileCol>132248056</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166971196</MinTileRow>
            <MaxTileRow>174720405</MaxTileRow>
            <MinTileCol>258053706</MinTileCol>
            <MaxTileCol>264496113</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>333942393</MinTileRow>
            <MaxTileRow>349440810</MaxTileRow>
            <MinTileCol>516107413</MinTileCol>
            <MaxTileCol>528992226</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>667884786</MinTileRow>
            <MaxTileRow>698881621</MaxTileRow>
            <MinTileCol>1032214827</MinTileCol>
            <MaxTileCol>1057984453</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer2/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer2/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_si_dtw_layer1</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.07698958345998 -47.637075279868114</ows:LowerCorner>
        <ows:UpperCorner>174.7169297281135 -40.16398214292425</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_si_dtw_layer1</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw:twotw_dtw</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=122&amp;height=252&amp;layer=twotw%3Atwotw_si_dtw_layer1" width="122" height="252"/>
      </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>23</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>185</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>504</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>370</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1008</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>740</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1968</MinTileCol>
            <MaxTileCol>2017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1480</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3937</MinTileCol>
            <MaxTileCol>4035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2961</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7875</MinTileCol>
            <MaxTileCol>8071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5923</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15750</MinTileCol>
            <MaxTileCol>16143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11847</MinTileRow>
            <MaxTileRow>12528</MaxTileRow>
            <MinTileCol>31500</MinTileCol>
            <MaxTileCol>32287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23695</MinTileRow>
            <MaxTileRow>25056</MaxTileRow>
            <MinTileCol>63001</MinTileCol>
            <MaxTileCol>64574</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47391</MinTileRow>
            <MaxTileRow>50112</MaxTileRow>
            <MinTileCol>126002</MinTileCol>
            <MaxTileCol>129148</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94782</MinTileRow>
            <MaxTileRow>100224</MaxTileRow>
            <MinTileCol>252005</MinTileCol>
            <MaxTileCol>258296</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>189565</MinTileRow>
            <MaxTileRow>200448</MaxTileRow>
            <MinTileCol>504011</MinTileCol>
            <MaxTileCol>516593</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>379130</MinTileRow>
            <MaxTileRow>400897</MaxTileRow>
            <MinTileCol>1008022</MinTileCol>
            <MaxTileCol>1033187</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>758260</MinTileRow>
            <MaxTileRow>801794</MaxTileRow>
            <MinTileCol>2016044</MinTileCol>
            <MaxTileCol>2066375</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1516520</MinTileRow>
            <MaxTileRow>1603588</MaxTileRow>
            <MinTileCol>4032089</MinTileCol>
            <MaxTileCol>4132751</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>39</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>159</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>318</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>504</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>636</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1008</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1273</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1968</MinTileCol>
            <MaxTileCol>2017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2547</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3937</MinTileCol>
            <MaxTileCol>4035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5095</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7875</MinTileCol>
            <MaxTileCol>8071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10191</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15750</MinTileCol>
            <MaxTileCol>16143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20382</MinTileRow>
            <MaxTileRow>21328</MaxTileRow>
            <MinTileCol>31500</MinTileCol>
            <MaxTileCol>32287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40764</MinTileRow>
            <MaxTileRow>42656</MaxTileRow>
            <MinTileCol>63001</MinTileCol>
            <MaxTileCol>64574</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81528</MinTileRow>
            <MaxTileRow>85312</MaxTileRow>
            <MinTileCol>126002</MinTileCol>
            <MaxTileCol>129148</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>163057</MinTileRow>
            <MaxTileRow>170625</MaxTileRow>
            <MinTileCol>252005</MinTileCol>
            <MaxTileCol>258296</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>326115</MinTileRow>
            <MaxTileRow>341250</MaxTileRow>
            <MinTileCol>504011</MinTileCol>
            <MaxTileCol>516593</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>652231</MinTileRow>
            <MaxTileRow>682501</MaxTileRow>
            <MinTileCol>1008022</MinTileCol>
            <MaxTileCol>1033187</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1304462</MinTileRow>
            <MaxTileRow>1365003</MaxTileRow>
            <MinTileCol>2016044</MinTileCol>
            <MaxTileCol>2066375</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2608924</MinTileRow>
            <MaxTileRow>2730006</MaxTileRow>
            <MinTileCol>4032089</MinTileCol>
            <MaxTileCol>4132751</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5217849</MinTileRow>
            <MaxTileRow>5460012</MaxTileRow>
            <MinTileCol>8064178</MinTileCol>
            <MaxTileCol>8265503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10435699</MinTileRow>
            <MaxTileRow>10920025</MaxTileRow>
            <MinTileCol>16128356</MinTileCol>
            <MaxTileCol>16531007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20871399</MinTileRow>
            <MaxTileRow>21840050</MaxTileRow>
            <MinTileCol>32256713</MinTileCol>
            <MaxTileCol>33062014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41742799</MinTileRow>
            <MaxTileRow>43680101</MaxTileRow>
            <MinTileCol>64513426</MinTileCol>
            <MaxTileCol>66124028</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83485598</MinTileRow>
            <MaxTileRow>87360202</MaxTileRow>
            <MinTileCol>129026853</MinTileCol>
            <MaxTileCol>132248056</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166971196</MinTileRow>
            <MaxTileRow>174720405</MaxTileRow>
            <MinTileCol>258053706</MinTileCol>
            <MaxTileCol>264496113</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>333942393</MinTileRow>
            <MaxTileRow>349440810</MaxTileRow>
            <MinTileCol>516107413</MinTileCol>
            <MaxTileCol>528992226</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>667884786</MinTileRow>
            <MaxTileRow>698881621</MaxTileRow>
            <MinTileCol>1032214827</MinTileCol>
            <MaxTileCol>1057984453</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer1/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_dtw_layer1/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_ni_sfr_gainloss</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.51903347061145 -41.730802617749866</ows:LowerCorner>
        <ows:UpperCorner>178.88893784222572 -34.22529965228131</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_ni_sfr_gainloss</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_sfr_gainloss</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=239&amp;height=118&amp;layer=twotw%3Atwotw_ni_sfr_gainloss" width="239" height="118"/>
      </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>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>706</MinTileRow>
            <MaxTileRow>749</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1413</MinTileRow>
            <MaxTileRow>1498</MaxTileRow>
            <MinTileCol>4010</MinTileCol>
            <MaxTileCol>4083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2826</MinTileRow>
            <MaxTileRow>2997</MaxTileRow>
            <MinTileCol>8021</MinTileCol>
            <MaxTileCol>8166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5653</MinTileRow>
            <MaxTileRow>5995</MaxTileRow>
            <MinTileCol>16043</MinTileCol>
            <MaxTileCol>16333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11307</MinTileRow>
            <MaxTileRow>11990</MaxTileRow>
            <MinTileCol>32087</MinTileCol>
            <MaxTileCol>32666</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22614</MinTileRow>
            <MaxTileRow>23980</MaxTileRow>
            <MinTileCol>64174</MinTileCol>
            <MaxTileCol>65333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45229</MinTileRow>
            <MaxTileRow>47961</MaxTileRow>
            <MinTileCol>128348</MinTileCol>
            <MaxTileCol>130667</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90458</MinTileRow>
            <MaxTileRow>95923</MaxTileRow>
            <MinTileCol>256696</MinTileCol>
            <MaxTileCol>261334</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180916</MinTileRow>
            <MaxTileRow>191846</MaxTileRow>
            <MinTileCol>513393</MinTileCol>
            <MaxTileCol>522669</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361832</MinTileRow>
            <MaxTileRow>383693</MaxTileRow>
            <MinTileCol>1026786</MinTileCol>
            <MaxTileCol>1045339</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>723664</MinTileRow>
            <MaxTileRow>767387</MaxTileRow>
            <MinTileCol>2053572</MinTileCol>
            <MaxTileCol>2090679</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1447329</MinTileRow>
            <MaxTileRow>1534775</MaxTileRow>
            <MinTileCol>4107144</MinTileCol>
            <MaxTileCol>4181359</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1231</MinTileRow>
            <MaxTileRow>1285</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2462</MinTileRow>
            <MaxTileRow>2571</MaxTileRow>
            <MinTileCol>4010</MinTileCol>
            <MaxTileCol>4083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4925</MinTileRow>
            <MaxTileRow>5142</MaxTileRow>
            <MinTileCol>8021</MinTileCol>
            <MaxTileCol>8166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9851</MinTileRow>
            <MaxTileRow>10285</MaxTileRow>
            <MinTileCol>16043</MinTileCol>
            <MaxTileCol>16333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19702</MinTileRow>
            <MaxTileRow>20571</MaxTileRow>
            <MinTileCol>32087</MinTileCol>
            <MaxTileCol>32666</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39405</MinTileRow>
            <MaxTileRow>41142</MaxTileRow>
            <MinTileCol>64174</MinTileCol>
            <MaxTileCol>65333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78811</MinTileRow>
            <MaxTileRow>82284</MaxTileRow>
            <MinTileCol>128348</MinTileCol>
            <MaxTileCol>130667</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157623</MinTileRow>
            <MaxTileRow>164568</MaxTileRow>
            <MinTileCol>256696</MinTileCol>
            <MaxTileCol>261334</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315247</MinTileRow>
            <MaxTileRow>329136</MaxTileRow>
            <MinTileCol>513393</MinTileCol>
            <MaxTileCol>522669</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630495</MinTileRow>
            <MaxTileRow>658273</MaxTileRow>
            <MinTileCol>1026786</MinTileCol>
            <MaxTileCol>1045339</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1260991</MinTileRow>
            <MaxTileRow>1316547</MaxTileRow>
            <MinTileCol>2053572</MinTileCol>
            <MaxTileCol>2090679</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2521982</MinTileRow>
            <MaxTileRow>2633095</MaxTileRow>
            <MinTileCol>4107144</MinTileCol>
            <MaxTileCol>4181359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5043964</MinTileRow>
            <MaxTileRow>5266190</MaxTileRow>
            <MinTileCol>8214288</MinTileCol>
            <MaxTileCol>8362718</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10087928</MinTileRow>
            <MaxTileRow>10532381</MaxTileRow>
            <MinTileCol>16428577</MinTileCol>
            <MaxTileCol>16725436</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20175857</MinTileRow>
            <MaxTileRow>21064763</MaxTileRow>
            <MinTileCol>32857155</MinTileCol>
            <MaxTileCol>33450873</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40351714</MinTileRow>
            <MaxTileRow>42129526</MaxTileRow>
            <MinTileCol>65714310</MinTileCol>
            <MaxTileCol>66901747</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80703429</MinTileRow>
            <MaxTileRow>84259052</MaxTileRow>
            <MinTileCol>131428621</MinTileCol>
            <MaxTileCol>133803494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161406859</MinTileRow>
            <MaxTileRow>168518104</MaxTileRow>
            <MinTileCol>262857243</MinTileCol>
            <MaxTileCol>267606988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322813718</MinTileRow>
            <MaxTileRow>337036208</MaxTileRow>
            <MinTileCol>525714486</MinTileCol>
            <MaxTileCol>535213976</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645627437</MinTileRow>
            <MaxTileRow>674072416</MaxTileRow>
            <MinTileCol>1051428972</MinTileCol>
            <MaxTileCol>1070427952</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_sfr_gainloss/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_sfr_gainloss/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_INSR</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_INSR</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_insr</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_INSR" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_INSR/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_INSR/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_INSR/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_INSR/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_INSR/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_INSR/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_INSR/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_INSR/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_INSR/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_INSR/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_INSR/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>power_station_feature_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.85199130208284 -38.705147122288516</ows:LowerCorner>
        <ows:UpperCorner>176.75739086296198 -35.36686596401791</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:power_station_feature_view</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:geothermal_powerstation</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=99&amp;height=60&amp;layer=gns%3Apower_station_feature_view" width="99" height="60"/>
      </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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>91</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>183</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>366</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>713</MinTileRow>
            <MaxTileRow>732</MaxTileRow>
            <MinTileCol>2013</MinTileCol>
            <MaxTileCol>2029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1426</MinTileRow>
            <MaxTileRow>1464</MaxTileRow>
            <MinTileCol>4026</MinTileCol>
            <MaxTileCol>4059</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2852</MinTileRow>
            <MaxTileRow>2928</MaxTileRow>
            <MinTileCol>8052</MinTileCol>
            <MaxTileCol>8118</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5705</MinTileRow>
            <MaxTileRow>5857</MaxTileRow>
            <MinTileCol>16104</MinTileCol>
            <MaxTileCol>16236</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11411</MinTileRow>
            <MaxTileRow>11715</MaxTileRow>
            <MinTileCol>32208</MinTileCol>
            <MaxTileCol>32472</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22822</MinTileRow>
            <MaxTileRow>23430</MaxTileRow>
            <MinTileCol>64416</MinTileCol>
            <MaxTileCol>64945</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45644</MinTileRow>
            <MaxTileRow>46860</MaxTileRow>
            <MinTileCol>128833</MinTileCol>
            <MaxTileCol>129891</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91289</MinTileRow>
            <MaxTileRow>93720</MaxTileRow>
            <MinTileCol>257667</MinTileCol>
            <MaxTileCol>259782</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182578</MinTileRow>
            <MaxTileRow>187440</MaxTileRow>
            <MinTileCol>515334</MinTileCol>
            <MaxTileCol>519565</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>365157</MinTileRow>
            <MaxTileRow>374880</MaxTileRow>
            <MinTileCol>1030668</MinTileCol>
            <MaxTileCol>1039131</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>730314</MinTileRow>
            <MaxTileRow>749761</MaxTileRow>
            <MinTileCol>2061337</MinTileCol>
            <MaxTileCol>2078262</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1460629</MinTileRow>
            <MaxTileRow>1499523</MaxTileRow>
            <MinTileCol>4122674</MinTileCol>
            <MaxTileCol>4156524</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>78</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>157</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>315</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>631</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1239</MinTileRow>
            <MaxTileRow>1263</MaxTileRow>
            <MinTileCol>2013</MinTileCol>
            <MaxTileCol>2029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2478</MinTileRow>
            <MaxTileRow>2526</MaxTileRow>
            <MinTileCol>4026</MinTileCol>
            <MaxTileCol>4059</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4957</MinTileRow>
            <MaxTileRow>5052</MaxTileRow>
            <MinTileCol>8052</MinTileCol>
            <MaxTileCol>8118</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9914</MinTileRow>
            <MaxTileRow>10105</MaxTileRow>
            <MinTileCol>16104</MinTileCol>
            <MaxTileCol>16236</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19829</MinTileRow>
            <MaxTileRow>20210</MaxTileRow>
            <MinTileCol>32208</MinTileCol>
            <MaxTileCol>32472</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39659</MinTileRow>
            <MaxTileRow>40420</MaxTileRow>
            <MinTileCol>64416</MinTileCol>
            <MaxTileCol>64945</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79318</MinTileRow>
            <MaxTileRow>80841</MaxTileRow>
            <MinTileCol>128833</MinTileCol>
            <MaxTileCol>129891</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158636</MinTileRow>
            <MaxTileRow>161682</MaxTileRow>
            <MinTileCol>257667</MinTileCol>
            <MaxTileCol>259782</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317272</MinTileRow>
            <MaxTileRow>323364</MaxTileRow>
            <MinTileCol>515334</MinTileCol>
            <MaxTileCol>519565</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634544</MinTileRow>
            <MaxTileRow>646729</MaxTileRow>
            <MinTileCol>1030668</MinTileCol>
            <MaxTileCol>1039131</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1269089</MinTileRow>
            <MaxTileRow>1293458</MaxTileRow>
            <MinTileCol>2061337</MinTileCol>
            <MaxTileCol>2078262</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2538179</MinTileRow>
            <MaxTileRow>2586917</MaxTileRow>
            <MinTileCol>4122674</MinTileCol>
            <MaxTileCol>4156524</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5076358</MinTileRow>
            <MaxTileRow>5173834</MaxTileRow>
            <MinTileCol>8245349</MinTileCol>
            <MaxTileCol>8313049</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10152716</MinTileRow>
            <MaxTileRow>10347668</MaxTileRow>
            <MinTileCol>16490698</MinTileCol>
            <MaxTileCol>16626099</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20305432</MinTileRow>
            <MaxTileRow>20695337</MaxTileRow>
            <MinTileCol>32981396</MinTileCol>
            <MaxTileCol>33252198</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40610864</MinTileRow>
            <MaxTileRow>41390674</MaxTileRow>
            <MinTileCol>65962792</MinTileCol>
            <MaxTileCol>66504397</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81221728</MinTileRow>
            <MaxTileRow>82781348</MaxTileRow>
            <MinTileCol>131925584</MinTileCol>
            <MaxTileCol>133008795</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162443456</MinTileRow>
            <MaxTileRow>165562697</MaxTileRow>
            <MinTileCol>263851168</MinTileCol>
            <MaxTileCol>266017591</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>324886912</MinTileRow>
            <MaxTileRow>331125394</MaxTileRow>
            <MinTileCol>527702336</MinTileCol>
            <MaxTileCol>532035182</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>649773825</MinTileRow>
            <MaxTileRow>662250788</MaxTileRow>
            <MinTileCol>1055404673</MinTileCol>
            <MaxTileCol>1064070365</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:power_station_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:power_station_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:power_station_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:power_station_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:power_station_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:power_station_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:power_station_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:power_station_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:power_station_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:power_station_feature_view/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:power_station_feature_view/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>groundwater_streams</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.74099581918114 -47.28375169277932</ows:LowerCorner>
        <ows:UpperCorner>179.42277636322564 -34.82688637135712</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:groundwater_streams</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw:groundwater_streams</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=85&amp;height=120&amp;layer=twotw%3Agroundwater_streams" width="85" height="120"/>
      </Style>
      <Style>
        <ows:Identifier>twotw:groundwater_streams_smallscale</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=85&amp;height=120&amp;layer=twotw%3Agroundwater_streams&amp;style=groundwater_streams_smallscale" width="85" height="120"/>
      </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>177</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>493</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>355</MinTileRow>
            <MaxTileRow>390</MaxTileRow>
            <MinTileCol>986</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>710</MinTileRow>
            <MaxTileRow>780</MaxTileRow>
            <MinTileCol>1972</MinTileCol>
            <MaxTileCol>2044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1420</MinTileRow>
            <MaxTileRow>1561</MaxTileRow>
            <MinTileCol>3945</MinTileCol>
            <MaxTileCol>4089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2840</MinTileRow>
            <MaxTileRow>3123</MaxTileRow>
            <MinTileCol>7890</MinTileCol>
            <MaxTileCol>8178</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5681</MinTileRow>
            <MaxTileRow>6247</MaxTileRow>
            <MinTileCol>15780</MinTileCol>
            <MaxTileCol>16357</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11362</MinTileRow>
            <MaxTileRow>12495</MaxTileRow>
            <MinTileCol>31561</MinTileCol>
            <MaxTileCol>32715</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22724</MinTileRow>
            <MaxTileRow>24991</MaxTileRow>
            <MinTileCol>63122</MinTileCol>
            <MaxTileCol>65430</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45448</MinTileRow>
            <MaxTileRow>49983</MaxTileRow>
            <MinTileCol>126244</MinTileCol>
            <MaxTileCol>130861</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90896</MinTileRow>
            <MaxTileRow>99966</MaxTileRow>
            <MinTileCol>252489</MinTileCol>
            <MaxTileCol>261723</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>181792</MinTileRow>
            <MaxTileRow>199933</MaxTileRow>
            <MinTileCol>504978</MinTileCol>
            <MaxTileCol>523447</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>363584</MinTileRow>
            <MaxTileRow>399867</MaxTileRow>
            <MinTileCol>1009956</MinTileCol>
            <MaxTileCol>1046894</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>727169</MinTileRow>
            <MaxTileRow>799735</MaxTileRow>
            <MinTileCol>2019912</MinTileCol>
            <MaxTileCol>2093789</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1454338</MinTileRow>
            <MaxTileRow>1599471</MaxTileRow>
            <MinTileCol>4039825</MinTileCol>
            <MaxTileCol>4187578</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>77</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>308</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>493</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>617</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>986</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1235</MinTileRow>
            <MaxTileRow>1330</MaxTileRow>
            <MinTileCol>1972</MinTileCol>
            <MaxTileCol>2044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2471</MinTileRow>
            <MaxTileRow>2660</MaxTileRow>
            <MinTileCol>3945</MinTileCol>
            <MaxTileCol>4089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4942</MinTileRow>
            <MaxTileRow>5320</MaxTileRow>
            <MinTileCol>7890</MinTileCol>
            <MaxTileCol>8178</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9884</MinTileRow>
            <MaxTileRow>10640</MaxTileRow>
            <MinTileCol>15780</MinTileCol>
            <MaxTileCol>16357</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19769</MinTileRow>
            <MaxTileRow>21280</MaxTileRow>
            <MinTileCol>31561</MinTileCol>
            <MaxTileCol>32715</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39538</MinTileRow>
            <MaxTileRow>42561</MaxTileRow>
            <MinTileCol>63122</MinTileCol>
            <MaxTileCol>65430</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79077</MinTileRow>
            <MaxTileRow>85122</MaxTileRow>
            <MinTileCol>126244</MinTileCol>
            <MaxTileCol>130861</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158155</MinTileRow>
            <MaxTileRow>170244</MaxTileRow>
            <MinTileCol>252489</MinTileCol>
            <MaxTileCol>261723</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>316311</MinTileRow>
            <MaxTileRow>340489</MaxTileRow>
            <MinTileCol>504978</MinTileCol>
            <MaxTileCol>523447</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>632622</MinTileRow>
            <MaxTileRow>680979</MaxTileRow>
            <MinTileCol>1009956</MinTileCol>
            <MaxTileCol>1046894</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1265244</MinTileRow>
            <MaxTileRow>1361958</MaxTileRow>
            <MinTileCol>2019912</MinTileCol>
            <MaxTileCol>2093789</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2530489</MinTileRow>
            <MaxTileRow>2723917</MaxTileRow>
            <MinTileCol>4039825</MinTileCol>
            <MaxTileCol>4187578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5060979</MinTileRow>
            <MaxTileRow>5447835</MaxTileRow>
            <MinTileCol>8079650</MinTileCol>
            <MaxTileCol>8375157</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10121958</MinTileRow>
            <MaxTileRow>10895670</MaxTileRow>
            <MinTileCol>16159301</MinTileCol>
            <MaxTileCol>16750315</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20243917</MinTileRow>
            <MaxTileRow>21791341</MaxTileRow>
            <MinTileCol>32318603</MinTileCol>
            <MaxTileCol>33500630</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40487834</MinTileRow>
            <MaxTileRow>43582682</MaxTileRow>
            <MinTileCol>64637206</MinTileCol>
            <MaxTileCol>67001261</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80975669</MinTileRow>
            <MaxTileRow>87165365</MaxTileRow>
            <MinTileCol>129274412</MinTileCol>
            <MaxTileCol>134002523</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161951339</MinTileRow>
            <MaxTileRow>174330731</MaxTileRow>
            <MinTileCol>258548825</MinTileCol>
            <MaxTileCol>268005046</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>323902678</MinTileRow>
            <MaxTileRow>348661462</MaxTileRow>
            <MinTileCol>517097651</MinTileCol>
            <MaxTileCol>536010093</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>647805356</MinTileRow>
            <MaxTileRow>697322924</MaxTileRow>
            <MinTileCol>1034195303</MinTileCol>
            <MaxTileCol>1072020187</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater_streams/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater_streams/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater_streams/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater_streams/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater_streams/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater_streams/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater_streams/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater_streams/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater_streams/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater_streams/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater_streams/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>BOPRC Geothermal Surface Feature Database - Public access</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.23862663907633 -38.32512857475407</ows:LowerCorner>
        <ows:UpperCorner>176.72199847718164 -38.00349280078888</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>ggw:BOPRCGeothermalSurfaceFeatureDatabasePublicaccess</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>ggw:point_magenta</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=ggw%3ABOPRCGeothermalSurfaceFeatureDatabasePublicaccess" 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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>91</MinTileRow>
            <MaxTileRow>91</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>182</MinTileRow>
            <MaxTileRow>182</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>364</MinTileRow>
            <MaxTileRow>365</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>728</MinTileRow>
            <MaxTileRow>730</MaxTileRow>
            <MinTileCol>2026</MinTileCol>
            <MaxTileCol>2029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1456</MinTileRow>
            <MaxTileRow>1460</MaxTileRow>
            <MinTileCol>4053</MinTileCol>
            <MaxTileCol>4058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2912</MinTileRow>
            <MaxTileRow>2920</MaxTileRow>
            <MinTileCol>8106</MinTileCol>
            <MaxTileCol>8117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5825</MinTileRow>
            <MaxTileRow>5840</MaxTileRow>
            <MinTileCol>16212</MinTileCol>
            <MaxTileCol>16234</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11651</MinTileRow>
            <MaxTileRow>11680</MaxTileRow>
            <MinTileCol>32425</MinTileCol>
            <MaxTileCol>32469</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23302</MinTileRow>
            <MaxTileRow>23360</MaxTileRow>
            <MinTileCol>64851</MinTileCol>
            <MaxTileCol>64939</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46604</MinTileRow>
            <MaxTileRow>46721</MaxTileRow>
            <MinTileCol>129702</MinTileCol>
            <MaxTileCol>129878</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>93209</MinTileRow>
            <MaxTileRow>93443</MaxTileRow>
            <MinTileCol>259405</MinTileCol>
            <MaxTileCol>259757</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>186418</MinTileRow>
            <MaxTileRow>186887</MaxTileRow>
            <MinTileCol>518810</MinTileCol>
            <MaxTileCol>519514</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>372837</MinTileRow>
            <MaxTileRow>373774</MaxTileRow>
            <MinTileCol>1037620</MinTileCol>
            <MaxTileCol>1039028</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>745674</MinTileRow>
            <MaxTileRow>747548</MaxTileRow>
            <MinTileCol>2075240</MinTileCol>
            <MaxTileCol>2078056</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1491348</MinTileRow>
            <MaxTileRow>1495096</MaxTileRow>
            <MinTileCol>4150480</MinTileCol>
            <MaxTileCol>4156112</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>78</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>157</MinTileRow>
            <MaxTileRow>157</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>314</MinTileRow>
            <MaxTileRow>315</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>629</MinTileRow>
            <MaxTileRow>630</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1258</MinTileRow>
            <MaxTileRow>1260</MaxTileRow>
            <MinTileCol>2026</MinTileCol>
            <MaxTileCol>2029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2516</MinTileRow>
            <MaxTileRow>2520</MaxTileRow>
            <MinTileCol>4053</MinTileCol>
            <MaxTileCol>4058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5032</MinTileRow>
            <MaxTileRow>5041</MaxTileRow>
            <MinTileCol>8106</MinTileCol>
            <MaxTileCol>8117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10064</MinTileRow>
            <MaxTileRow>10083</MaxTileRow>
            <MinTileCol>16212</MinTileCol>
            <MaxTileCol>16234</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20128</MinTileRow>
            <MaxTileRow>20166</MaxTileRow>
            <MinTileCol>32425</MinTileCol>
            <MaxTileCol>32469</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40257</MinTileRow>
            <MaxTileRow>40332</MaxTileRow>
            <MinTileCol>64851</MinTileCol>
            <MaxTileCol>64939</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80515</MinTileRow>
            <MaxTileRow>80664</MaxTileRow>
            <MinTileCol>129702</MinTileCol>
            <MaxTileCol>129878</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>161030</MinTileRow>
            <MaxTileRow>161328</MaxTileRow>
            <MinTileCol>259405</MinTileCol>
            <MaxTileCol>259757</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>322061</MinTileRow>
            <MaxTileRow>322657</MaxTileRow>
            <MinTileCol>518810</MinTileCol>
            <MaxTileCol>519514</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>644123</MinTileRow>
            <MaxTileRow>645314</MaxTileRow>
            <MinTileCol>1037620</MinTileCol>
            <MaxTileCol>1039028</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1288246</MinTileRow>
            <MaxTileRow>1290629</MaxTileRow>
            <MinTileCol>2075240</MinTileCol>
            <MaxTileCol>2078056</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2576492</MinTileRow>
            <MaxTileRow>2581258</MaxTileRow>
            <MinTileCol>4150480</MinTileCol>
            <MaxTileCol>4156112</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5152984</MinTileRow>
            <MaxTileRow>5162517</MaxTileRow>
            <MinTileCol>8300961</MinTileCol>
            <MaxTileCol>8312225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10305969</MinTileRow>
            <MaxTileRow>10325034</MaxTileRow>
            <MinTileCol>16601923</MinTileCol>
            <MaxTileCol>16624450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20611939</MinTileRow>
            <MaxTileRow>20650068</MaxTileRow>
            <MinTileCol>33203846</MinTileCol>
            <MaxTileCol>33248900</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41223878</MinTileRow>
            <MaxTileRow>41300136</MaxTileRow>
            <MinTileCol>66407693</MinTileCol>
            <MaxTileCol>66497800</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82447756</MinTileRow>
            <MaxTileRow>82600272</MaxTileRow>
            <MinTileCol>132815386</MinTileCol>
            <MaxTileCol>132995600</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>164895512</MinTileRow>
            <MaxTileRow>165200545</MaxTileRow>
            <MinTileCol>265630772</MinTileCol>
            <MaxTileCol>265991200</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>329791024</MinTileRow>
            <MaxTileRow>330401090</MaxTileRow>
            <MinTileCol>531261545</MinTileCol>
            <MaxTileCol>531982401</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>659582048</MinTileRow>
            <MaxTileRow>660802180</MaxTileRow>
            <MinTileCol>1062523091</MinTileCol>
            <MaxTileCol>1063964803</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRCGeothermalSurfaceFeatureDatabasePublicaccess/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRCGeothermalSurfaceFeatureDatabasePublicaccess/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRCGeothermalSurfaceFeatureDatabasePublicaccess/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRCGeothermalSurfaceFeatureDatabasePublicaccess/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRCGeothermalSurfaceFeatureDatabasePublicaccess/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRCGeothermalSurfaceFeatureDatabasePublicaccess/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRCGeothermalSurfaceFeatureDatabasePublicaccess/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRCGeothermalSurfaceFeatureDatabasePublicaccess/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRCGeothermalSurfaceFeatureDatabasePublicaccess/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRCGeothermalSurfaceFeatureDatabasePublicaccess/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRCGeothermalSurfaceFeatureDatabasePublicaccess/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>geothermal_category_feature_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.15147196052598 -37.73352569288348</ows:LowerCorner>
        <ows:UpperCorner>176.151495387624 -37.733507087095276</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:geothermal_category_feature_view</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:geothermal_use</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=144&amp;height=360&amp;layer=gns%3Ageothermal_category_feature_view" width="144" height="360"/>
      </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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>90</MinTileRow>
            <MaxTileRow>90</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>181</MinTileRow>
            <MaxTileRow>181</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>363</MinTileRow>
            <MaxTileRow>363</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>726</MinTileRow>
            <MaxTileRow>726</MaxTileRow>
            <MinTileCol>2026</MinTileCol>
            <MaxTileCol>2026</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1453</MinTileRow>
            <MaxTileRow>1453</MaxTileRow>
            <MinTileCol>4052</MinTileCol>
            <MaxTileCol>4052</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2906</MinTileRow>
            <MaxTileRow>2906</MaxTileRow>
            <MinTileCol>8104</MinTileCol>
            <MaxTileCol>8104</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5813</MinTileRow>
            <MaxTileRow>5813</MaxTileRow>
            <MinTileCol>16208</MinTileCol>
            <MaxTileCol>16208</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11626</MinTileRow>
            <MaxTileRow>11626</MaxTileRow>
            <MinTileCol>32417</MinTileCol>
            <MaxTileCol>32417</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23253</MinTileRow>
            <MaxTileRow>23253</MaxTileRow>
            <MinTileCol>64835</MinTileCol>
            <MaxTileCol>64835</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46506</MinTileRow>
            <MaxTileRow>46506</MaxTileRow>
            <MinTileCol>129670</MinTileCol>
            <MaxTileCol>129670</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>93012</MinTileRow>
            <MaxTileRow>93012</MaxTileRow>
            <MinTileCol>259341</MinTileCol>
            <MaxTileCol>259341</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>186025</MinTileRow>
            <MaxTileRow>186025</MaxTileRow>
            <MinTileCol>518683</MinTileCol>
            <MaxTileCol>518683</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>372050</MinTileRow>
            <MaxTileRow>372050</MaxTileRow>
            <MinTileCol>1037366</MinTileCol>
            <MaxTileCol>1037366</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>744101</MinTileRow>
            <MaxTileRow>744101</MaxTileRow>
            <MinTileCol>2074732</MinTileCol>
            <MaxTileCol>2074732</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1488203</MinTileRow>
            <MaxTileRow>1488203</MaxTileRow>
            <MinTileCol>4149465</MinTileCol>
            <MaxTileCol>4149465</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>78</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>157</MinTileRow>
            <MaxTileRow>157</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>314</MinTileRow>
            <MaxTileRow>314</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>628</MinTileRow>
            <MaxTileRow>628</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1256</MinTileRow>
            <MaxTileRow>1256</MaxTileRow>
            <MinTileCol>2026</MinTileCol>
            <MaxTileCol>2026</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2512</MinTileRow>
            <MaxTileRow>2512</MaxTileRow>
            <MinTileCol>4052</MinTileCol>
            <MaxTileCol>4052</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5024</MinTileRow>
            <MaxTileRow>5024</MaxTileRow>
            <MinTileCol>8104</MinTileCol>
            <MaxTileCol>8104</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10048</MinTileRow>
            <MaxTileRow>10048</MaxTileRow>
            <MinTileCol>16208</MinTileCol>
            <MaxTileCol>16208</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20097</MinTileRow>
            <MaxTileRow>20097</MaxTileRow>
            <MinTileCol>32417</MinTileCol>
            <MaxTileCol>32417</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40195</MinTileRow>
            <MaxTileRow>40195</MaxTileRow>
            <MinTileCol>64835</MinTileCol>
            <MaxTileCol>64835</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80390</MinTileRow>
            <MaxTileRow>80390</MaxTileRow>
            <MinTileCol>129670</MinTileCol>
            <MaxTileCol>129670</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>160781</MinTileRow>
            <MaxTileRow>160781</MaxTileRow>
            <MinTileCol>259341</MinTileCol>
            <MaxTileCol>259341</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>321563</MinTileRow>
            <MaxTileRow>321563</MaxTileRow>
            <MinTileCol>518683</MinTileCol>
            <MaxTileCol>518683</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>643126</MinTileRow>
            <MaxTileRow>643127</MaxTileRow>
            <MinTileCol>1037366</MinTileCol>
            <MaxTileCol>1037366</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1286253</MinTileRow>
            <MaxTileRow>1286254</MaxTileRow>
            <MinTileCol>2074732</MinTileCol>
            <MaxTileCol>2074732</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2572507</MinTileRow>
            <MaxTileRow>2572508</MaxTileRow>
            <MinTileCol>4149465</MinTileCol>
            <MaxTileCol>4149465</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5145015</MinTileRow>
            <MaxTileRow>5145016</MaxTileRow>
            <MinTileCol>8298930</MinTileCol>
            <MaxTileCol>8298931</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10290030</MinTileRow>
            <MaxTileRow>10290032</MaxTileRow>
            <MinTileCol>16597861</MinTileCol>
            <MaxTileCol>16597862</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20580061</MinTileRow>
            <MaxTileRow>20580064</MaxTileRow>
            <MinTileCol>33195723</MinTileCol>
            <MaxTileCol>33195725</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41160123</MinTileRow>
            <MaxTileRow>41160128</MaxTileRow>
            <MinTileCol>66391446</MinTileCol>
            <MaxTileCol>66391450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82320247</MinTileRow>
            <MaxTileRow>82320256</MaxTileRow>
            <MinTileCol>132782892</MinTileCol>
            <MaxTileCol>132782901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>164640494</MinTileRow>
            <MaxTileRow>164640512</MaxTileRow>
            <MinTileCol>265565785</MinTileCol>
            <MaxTileCol>265565802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>329280989</MinTileRow>
            <MaxTileRow>329281024</MaxTileRow>
            <MinTileCol>531131571</MinTileCol>
            <MaxTileCol>531131605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>658561978</MinTileRow>
            <MaxTileRow>658562048</MaxTileRow>
            <MinTileCol>1062263142</MinTileCol>
            <MaxTileCol>1062263211</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_category_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_category_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_category_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_category_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_category_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_category_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_category_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_category_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_category_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_category_feature_view/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_category_feature_view/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>nz_ocean_boundary</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-180.0 -55.49396489260896</ows:LowerCorner>
        <ows:UpperCorner>180.0 -29.97632114293706</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:nz_ocean_boundary</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:ocean_poly</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Anz_ocean_boundary" 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>25</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>42</MinTileRow>
            <MaxTileRow>51</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>85</MinTileRow>
            <MaxTileRow>103</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>170</MinTileRow>
            <MaxTileRow>206</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>341</MinTileRow>
            <MaxTileRow>413</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>682</MinTileRow>
            <MaxTileRow>827</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1365</MinTileRow>
            <MaxTileRow>1655</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2730</MinTileRow>
            <MaxTileRow>3310</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5460</MinTileRow>
            <MaxTileRow>6621</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>10920</MinTileRow>
            <MaxTileRow>13243</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>21841</MinTileRow>
            <MaxTileRow>26486</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>43682</MinTileRow>
            <MaxTileRow>52972</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>87364</MinTileRow>
            <MaxTileRow>105945</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>174728</MinTileRow>
            <MaxTileRow>211890</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>349456</MinTileRow>
            <MaxTileRow>423781</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>698912</MinTileRow>
            <MaxTileRow>847563</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1397825</MinTileRow>
            <MaxTileRow>1695127</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>18</MinTileRow>
            <MaxTileRow>21</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>37</MinTileRow>
            <MaxTileRow>43</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>75</MinTileRow>
            <MaxTileRow>87</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>150</MinTileRow>
            <MaxTileRow>175</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>300</MinTileRow>
            <MaxTileRow>351</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>601</MinTileRow>
            <MaxTileRow>702</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1202</MinTileRow>
            <MaxTileRow>1405</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2405</MinTileRow>
            <MaxTileRow>2810</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4811</MinTileRow>
            <MaxTileRow>5620</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9623</MinTileRow>
            <MaxTileRow>11241</MaxTileRow>
            <MinTileCol>14</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19246</MinTileRow>
            <MaxTileRow>22482</MaxTileRow>
            <MinTileCol>28</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>38492</MinTileRow>
            <MaxTileRow>44964</MaxTileRow>
            <MinTileCol>57</MinTileCol>
            <MaxTileCol>65534</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>76984</MinTileRow>
            <MaxTileRow>89929</MaxTileRow>
            <MinTileCol>115</MinTileCol>
            <MaxTileCol>131068</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>153969</MinTileRow>
            <MaxTileRow>179859</MaxTileRow>
            <MinTileCol>231</MinTileCol>
            <MaxTileCol>262136</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>307939</MinTileRow>
            <MaxTileRow>359718</MaxTileRow>
            <MinTileCol>462</MinTileCol>
            <MaxTileCol>524273</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>615879</MinTileRow>
            <MaxTileRow>719437</MaxTileRow>
            <MinTileCol>924</MinTileCol>
            <MaxTileCol>1048546</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1231759</MinTileRow>
            <MaxTileRow>1438875</MaxTileRow>
            <MinTileCol>1848</MinTileCol>
            <MaxTileCol>2097092</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2463519</MinTileRow>
            <MaxTileRow>2877750</MaxTileRow>
            <MinTileCol>3696</MinTileCol>
            <MaxTileCol>4194185</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>4927039</MinTileRow>
            <MaxTileRow>5755501</MaxTileRow>
            <MinTileCol>7392</MinTileCol>
            <MaxTileCol>8388370</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>9854078</MinTileRow>
            <MaxTileRow>11511002</MaxTileRow>
            <MinTileCol>14785</MinTileCol>
            <MaxTileCol>16776740</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>19708156</MinTileRow>
            <MaxTileRow>23022005</MaxTileRow>
            <MinTileCol>29571</MinTileCol>
            <MaxTileCol>33553481</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>39416313</MinTileRow>
            <MaxTileRow>46044011</MaxTileRow>
            <MinTileCol>59143</MinTileCol>
            <MaxTileCol>67106962</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>78832627</MinTileRow>
            <MaxTileRow>92088023</MaxTileRow>
            <MinTileCol>118287</MinTileCol>
            <MaxTileCol>134213925</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>157665255</MinTileRow>
            <MaxTileRow>184176046</MaxTileRow>
            <MinTileCol>236575</MinTileCol>
            <MaxTileCol>268427851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>315330511</MinTileRow>
            <MaxTileRow>368352093</MaxTileRow>
            <MinTileCol>473151</MinTileCol>
            <MaxTileCol>536855703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>630661022</MinTileRow>
            <MaxTileRow>736704187</MaxTileRow>
            <MinTileCol>946302</MinTileCol>
            <MaxTileCol>1073711406</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:nz_ocean_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:nz_ocean_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:nz_ocean_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:nz_ocean_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:nz_ocean_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:nz_ocean_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:nz_ocean_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:nz_ocean_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:nz_ocean_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:nz_ocean_boundary/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:nz_ocean_boundary/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>GPS_Access_Vehicle</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:GPS_Access_Vehicle</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:gps_access</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=74&amp;height=220&amp;layer=gns%3AGPS_Access_Vehicle" width="74" height="220" maxScaleDenominator="1000000.0"/>
      </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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Access_Vehicle/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Access_Vehicle/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Access_Vehicle/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Access_Vehicle/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Access_Vehicle/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Access_Vehicle/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Access_Vehicle/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Access_Vehicle/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Access_Vehicle/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Access_Vehicle/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Access_Vehicle/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_si_sfr_gainloss</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.07698958345998 -47.637075279868114</ows:LowerCorner>
        <ows:UpperCorner>174.7169297281135 -40.16398214292425</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_si_sfr_gainloss</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_sfr_gainloss</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=239&amp;height=118&amp;layer=twotw%3Atwotw_si_sfr_gainloss" width="239" height="118"/>
      </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>23</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>185</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>504</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>370</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1008</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>740</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1968</MinTileCol>
            <MaxTileCol>2017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1480</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3937</MinTileCol>
            <MaxTileCol>4035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2961</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7875</MinTileCol>
            <MaxTileCol>8071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5923</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15750</MinTileCol>
            <MaxTileCol>16143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11847</MinTileRow>
            <MaxTileRow>12528</MaxTileRow>
            <MinTileCol>31500</MinTileCol>
            <MaxTileCol>32287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23695</MinTileRow>
            <MaxTileRow>25056</MaxTileRow>
            <MinTileCol>63001</MinTileCol>
            <MaxTileCol>64574</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47391</MinTileRow>
            <MaxTileRow>50112</MaxTileRow>
            <MinTileCol>126002</MinTileCol>
            <MaxTileCol>129148</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94782</MinTileRow>
            <MaxTileRow>100224</MaxTileRow>
            <MinTileCol>252005</MinTileCol>
            <MaxTileCol>258296</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>189565</MinTileRow>
            <MaxTileRow>200448</MaxTileRow>
            <MinTileCol>504011</MinTileCol>
            <MaxTileCol>516593</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>379130</MinTileRow>
            <MaxTileRow>400897</MaxTileRow>
            <MinTileCol>1008022</MinTileCol>
            <MaxTileCol>1033187</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>758260</MinTileRow>
            <MaxTileRow>801794</MaxTileRow>
            <MinTileCol>2016044</MinTileCol>
            <MaxTileCol>2066375</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1516520</MinTileRow>
            <MaxTileRow>1603588</MaxTileRow>
            <MinTileCol>4032089</MinTileCol>
            <MaxTileCol>4132751</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>39</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>159</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>318</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>504</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>636</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1008</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1273</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1968</MinTileCol>
            <MaxTileCol>2017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2547</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3937</MinTileCol>
            <MaxTileCol>4035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5095</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7875</MinTileCol>
            <MaxTileCol>8071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10191</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15750</MinTileCol>
            <MaxTileCol>16143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20382</MinTileRow>
            <MaxTileRow>21328</MaxTileRow>
            <MinTileCol>31500</MinTileCol>
            <MaxTileCol>32287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40764</MinTileRow>
            <MaxTileRow>42656</MaxTileRow>
            <MinTileCol>63001</MinTileCol>
            <MaxTileCol>64574</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81528</MinTileRow>
            <MaxTileRow>85312</MaxTileRow>
            <MinTileCol>126002</MinTileCol>
            <MaxTileCol>129148</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>163057</MinTileRow>
            <MaxTileRow>170625</MaxTileRow>
            <MinTileCol>252005</MinTileCol>
            <MaxTileCol>258296</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>326115</MinTileRow>
            <MaxTileRow>341250</MaxTileRow>
            <MinTileCol>504011</MinTileCol>
            <MaxTileCol>516593</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>652231</MinTileRow>
            <MaxTileRow>682501</MaxTileRow>
            <MinTileCol>1008022</MinTileCol>
            <MaxTileCol>1033187</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1304462</MinTileRow>
            <MaxTileRow>1365003</MaxTileRow>
            <MinTileCol>2016044</MinTileCol>
            <MaxTileCol>2066375</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2608924</MinTileRow>
            <MaxTileRow>2730006</MaxTileRow>
            <MinTileCol>4032089</MinTileCol>
            <MaxTileCol>4132751</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5217849</MinTileRow>
            <MaxTileRow>5460012</MaxTileRow>
            <MinTileCol>8064178</MinTileCol>
            <MaxTileCol>8265503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10435699</MinTileRow>
            <MaxTileRow>10920025</MaxTileRow>
            <MinTileCol>16128356</MinTileCol>
            <MaxTileCol>16531007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20871399</MinTileRow>
            <MaxTileRow>21840050</MaxTileRow>
            <MinTileCol>32256713</MinTileCol>
            <MaxTileCol>33062014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41742799</MinTileRow>
            <MaxTileRow>43680101</MaxTileRow>
            <MinTileCol>64513426</MinTileCol>
            <MaxTileCol>66124028</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83485598</MinTileRow>
            <MaxTileRow>87360202</MaxTileRow>
            <MinTileCol>129026853</MinTileCol>
            <MaxTileCol>132248056</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166971196</MinTileRow>
            <MaxTileRow>174720405</MaxTileRow>
            <MinTileCol>258053706</MinTileCol>
            <MaxTileCol>264496113</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>333942393</MinTileRow>
            <MaxTileRow>349440810</MaxTileRow>
            <MinTileCol>516107413</MinTileCol>
            <MaxTileCol>528992226</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>667884786</MinTileRow>
            <MaxTileRow>698881621</MaxTileRow>
            <MinTileCol>1032214827</MinTileCol>
            <MaxTileCol>1057984453</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_sfr_gainloss/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_sfr_gainloss/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_si_sfr_gainloss/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>MINERAL.GEOTHERMAL_FIELDS</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.83243602204257 -38.735765878728856</ows:LowerCorner>
        <ows:UpperCorner>176.76838014539334 -35.32340588222596</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:MINERAL.GEOTHERMAL_FIELDS</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AMINERAL.GEOTHERMAL_FIELDS" 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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>91</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>183</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>366</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>712</MinTileRow>
            <MaxTileRow>732</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1425</MinTileRow>
            <MaxTileRow>1464</MaxTileRow>
            <MinTileCol>4025</MinTileCol>
            <MaxTileCol>4059</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2851</MinTileRow>
            <MaxTileRow>2929</MaxTileRow>
            <MinTileCol>8051</MinTileCol>
            <MaxTileCol>8118</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5703</MinTileRow>
            <MaxTileRow>5858</MaxTileRow>
            <MinTileCol>16103</MinTileCol>
            <MaxTileCol>16236</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11407</MinTileRow>
            <MaxTileRow>11717</MaxTileRow>
            <MinTileCol>32206</MinTileCol>
            <MaxTileCol>32473</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22814</MinTileRow>
            <MaxTileRow>23435</MaxTileRow>
            <MinTileCol>64413</MinTileCol>
            <MaxTileCol>64947</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45628</MinTileRow>
            <MaxTileRow>46871</MaxTileRow>
            <MinTileCol>128826</MinTileCol>
            <MaxTileCol>129895</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91257</MinTileRow>
            <MaxTileRow>93742</MaxTileRow>
            <MinTileCol>257652</MinTileCol>
            <MaxTileCol>259790</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182515</MinTileRow>
            <MaxTileRow>187485</MaxTileRow>
            <MinTileCol>515305</MinTileCol>
            <MaxTileCol>519581</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>365030</MinTileRow>
            <MaxTileRow>374970</MaxTileRow>
            <MinTileCol>1030611</MinTileCol>
            <MaxTileCol>1039163</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>730061</MinTileRow>
            <MaxTileRow>749940</MaxTileRow>
            <MinTileCol>2061223</MinTileCol>
            <MaxTileCol>2078326</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1460123</MinTileRow>
            <MaxTileRow>1499880</MaxTileRow>
            <MinTileCol>4122446</MinTileCol>
            <MaxTileCol>4156652</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>78</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>157</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>315</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>631</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1239</MinTileRow>
            <MaxTileRow>1263</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2478</MinTileRow>
            <MaxTileRow>2526</MaxTileRow>
            <MinTileCol>4025</MinTileCol>
            <MaxTileCol>4059</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4956</MinTileRow>
            <MaxTileRow>5053</MaxTileRow>
            <MinTileCol>8051</MinTileCol>
            <MaxTileCol>8118</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9912</MinTileRow>
            <MaxTileRow>10106</MaxTileRow>
            <MinTileCol>16103</MinTileCol>
            <MaxTileCol>16236</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19824</MinTileRow>
            <MaxTileRow>20213</MaxTileRow>
            <MinTileCol>32206</MinTileCol>
            <MaxTileCol>32473</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39649</MinTileRow>
            <MaxTileRow>40427</MaxTileRow>
            <MinTileCol>64413</MinTileCol>
            <MaxTileCol>64947</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79298</MinTileRow>
            <MaxTileRow>80855</MaxTileRow>
            <MinTileCol>128826</MinTileCol>
            <MaxTileCol>129895</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158597</MinTileRow>
            <MaxTileRow>161710</MaxTileRow>
            <MinTileCol>257652</MinTileCol>
            <MaxTileCol>259790</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317194</MinTileRow>
            <MaxTileRow>323421</MaxTileRow>
            <MinTileCol>515305</MinTileCol>
            <MaxTileCol>519581</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634389</MinTileRow>
            <MaxTileRow>646843</MaxTileRow>
            <MinTileCol>1030611</MinTileCol>
            <MaxTileCol>1039163</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1268779</MinTileRow>
            <MaxTileRow>1293687</MaxTileRow>
            <MinTileCol>2061223</MinTileCol>
            <MaxTileCol>2078326</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2537558</MinTileRow>
            <MaxTileRow>2587374</MaxTileRow>
            <MinTileCol>4122446</MinTileCol>
            <MaxTileCol>4156652</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5075116</MinTileRow>
            <MaxTileRow>5174748</MaxTileRow>
            <MinTileCol>8244893</MinTileCol>
            <MaxTileCol>8313305</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10150232</MinTileRow>
            <MaxTileRow>10349497</MaxTileRow>
            <MinTileCol>16489786</MinTileCol>
            <MaxTileCol>16626611</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20300465</MinTileRow>
            <MaxTileRow>20698994</MaxTileRow>
            <MinTileCol>32979573</MinTileCol>
            <MaxTileCol>33253223</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40600931</MinTileRow>
            <MaxTileRow>41397989</MaxTileRow>
            <MinTileCol>65959146</MinTileCol>
            <MaxTileCol>66506446</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81201863</MinTileRow>
            <MaxTileRow>82795979</MaxTileRow>
            <MinTileCol>131918293</MinTileCol>
            <MaxTileCol>133012892</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162403727</MinTileRow>
            <MaxTileRow>165591959</MaxTileRow>
            <MinTileCol>263836586</MinTileCol>
            <MaxTileCol>266025785</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>324807454</MinTileRow>
            <MaxTileRow>331183919</MaxTileRow>
            <MinTileCol>527673173</MinTileCol>
            <MaxTileCol>532051571</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>649614909</MinTileRow>
            <MaxTileRow>662367839</MaxTileRow>
            <MinTileCol>1055346347</MinTileCol>
            <MaxTileCol>1064103142</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GEOTHERMAL_FIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GEOTHERMAL_FIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GEOTHERMAL_FIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GEOTHERMAL_FIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GEOTHERMAL_FIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GEOTHERMAL_FIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GEOTHERMAL_FIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GEOTHERMAL_FIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GEOTHERMAL_FIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GEOTHERMAL_FIELDS/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.GEOTHERMAL_FIELDS/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>Hydrochemistry of the Lake Rotorua catchment</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.10929454371202 -38.1763952585007</ows:LowerCorner>
        <ows:UpperCorner>176.34734021428454 -38.01264190966173</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>ggw:HydrochemistryoftheLakeRotoruacatchment</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>point</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=ggw%3AHydrochemistryoftheLakeRotoruacatchment" 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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>91</MinTileRow>
            <MaxTileRow>91</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>182</MinTileRow>
            <MaxTileRow>182</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>364</MinTileRow>
            <MaxTileRow>364</MaxTileRow>
            <MinTileCol>1012</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>728</MinTileRow>
            <MaxTileRow>729</MaxTileRow>
            <MinTileCol>2025</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1456</MinTileRow>
            <MaxTileRow>1458</MaxTileRow>
            <MinTileCol>4051</MinTileCol>
            <MaxTileCol>4054</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2912</MinTileRow>
            <MaxTileRow>2916</MaxTileRow>
            <MinTileCol>8103</MinTileCol>
            <MaxTileCol>8108</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5825</MinTileRow>
            <MaxTileRow>5833</MaxTileRow>
            <MinTileCol>16206</MinTileCol>
            <MaxTileCol>16217</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11651</MinTileRow>
            <MaxTileRow>11666</MaxTileRow>
            <MinTileCol>32413</MinTileCol>
            <MaxTileCol>32435</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23303</MinTileRow>
            <MaxTileRow>23333</MaxTileRow>
            <MinTileCol>64827</MinTileCol>
            <MaxTileCol>64871</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46607</MinTileRow>
            <MaxTileRow>46667</MaxTileRow>
            <MinTileCol>129655</MinTileCol>
            <MaxTileCol>129742</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>93215</MinTileRow>
            <MaxTileRow>93335</MaxTileRow>
            <MinTileCol>259310</MinTileCol>
            <MaxTileCol>259484</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>186431</MinTileRow>
            <MaxTileRow>186670</MaxTileRow>
            <MinTileCol>518621</MinTileCol>
            <MaxTileCol>518968</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>372863</MinTileRow>
            <MaxTileRow>373340</MaxTileRow>
            <MinTileCol>1037243</MinTileCol>
            <MaxTileCol>1037936</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>745727</MinTileRow>
            <MaxTileRow>746681</MaxTileRow>
            <MinTileCol>2074486</MinTileCol>
            <MaxTileCol>2075873</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1491455</MinTileRow>
            <MaxTileRow>1493363</MaxTileRow>
            <MinTileCol>4148973</MinTileCol>
            <MaxTileCol>4151747</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>78</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>157</MinTileRow>
            <MaxTileRow>157</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>314</MinTileRow>
            <MaxTileRow>314</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>629</MinTileRow>
            <MaxTileRow>629</MaxTileRow>
            <MinTileCol>1012</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1258</MinTileRow>
            <MaxTileRow>1259</MaxTileRow>
            <MinTileCol>2025</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2516</MinTileRow>
            <MaxTileRow>2518</MaxTileRow>
            <MinTileCol>4051</MinTileCol>
            <MaxTileCol>4054</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5032</MinTileRow>
            <MaxTileRow>5037</MaxTileRow>
            <MinTileCol>8103</MinTileCol>
            <MaxTileCol>8108</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10064</MinTileRow>
            <MaxTileRow>10074</MaxTileRow>
            <MinTileCol>16206</MinTileCol>
            <MaxTileCol>16217</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20129</MinTileRow>
            <MaxTileRow>20148</MaxTileRow>
            <MinTileCol>32413</MinTileCol>
            <MaxTileCol>32435</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40259</MinTileRow>
            <MaxTileRow>40297</MaxTileRow>
            <MinTileCol>64827</MinTileCol>
            <MaxTileCol>64871</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80519</MinTileRow>
            <MaxTileRow>80595</MaxTileRow>
            <MinTileCol>129655</MinTileCol>
            <MaxTileCol>129742</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>161039</MinTileRow>
            <MaxTileRow>161190</MaxTileRow>
            <MinTileCol>259310</MinTileCol>
            <MaxTileCol>259484</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>322078</MinTileRow>
            <MaxTileRow>322381</MaxTileRow>
            <MinTileCol>518621</MinTileCol>
            <MaxTileCol>518968</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>644156</MinTileRow>
            <MaxTileRow>644762</MaxTileRow>
            <MinTileCol>1037243</MinTileCol>
            <MaxTileCol>1037936</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1288313</MinTileRow>
            <MaxTileRow>1289525</MaxTileRow>
            <MinTileCol>2074486</MinTileCol>
            <MaxTileCol>2075873</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2576627</MinTileRow>
            <MaxTileRow>2579051</MaxTileRow>
            <MinTileCol>4148973</MinTileCol>
            <MaxTileCol>4151747</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5153255</MinTileRow>
            <MaxTileRow>5158103</MaxTileRow>
            <MinTileCol>8297947</MinTileCol>
            <MaxTileCol>8303494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10306510</MinTileRow>
            <MaxTileRow>10316207</MaxTileRow>
            <MinTileCol>16595895</MinTileCol>
            <MaxTileCol>16606989</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20613021</MinTileRow>
            <MaxTileRow>20632415</MaxTileRow>
            <MinTileCol>33191791</MinTileCol>
            <MaxTileCol>33213979</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41226042</MinTileRow>
            <MaxTileRow>41264830</MaxTileRow>
            <MinTileCol>66383583</MinTileCol>
            <MaxTileCol>66427958</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82452085</MinTileRow>
            <MaxTileRow>82529661</MaxTileRow>
            <MinTileCol>132767167</MinTileCol>
            <MaxTileCol>132855917</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>164904170</MinTileRow>
            <MaxTileRow>165059322</MaxTileRow>
            <MinTileCol>265534335</MinTileCol>
            <MaxTileCol>265711835</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>329808340</MinTileRow>
            <MaxTileRow>330118644</MaxTileRow>
            <MinTileCol>531068671</MinTileCol>
            <MaxTileCol>531423670</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>659616681</MinTileRow>
            <MaxTileRow>660237288</MaxTileRow>
            <MinTileCol>1062137343</MinTileCol>
            <MaxTileCol>1062847341</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:HydrochemistryoftheLakeRotoruacatchment/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:HydrochemistryoftheLakeRotoruacatchment/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:HydrochemistryoftheLakeRotoruacatchment/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:HydrochemistryoftheLakeRotoruacatchment/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:HydrochemistryoftheLakeRotoruacatchment/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:HydrochemistryoftheLakeRotoruacatchment/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:HydrochemistryoftheLakeRotoruacatchment/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:HydrochemistryoftheLakeRotoruacatchment/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:HydrochemistryoftheLakeRotoruacatchment/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:HydrochemistryoftheLakeRotoruacatchment/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:HydrochemistryoftheLakeRotoruacatchment/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_std_100_125</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_std_100_125</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_std_100_125" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_100_125/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_100_125/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_median_75_100</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_median_75_100</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_median_75_100" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_75_100/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_75_100/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_ANU</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>144.97015106 -47.89094366</ows:LowerCorner>
        <ows:UpperCorner>176.34531828994756 -16.45199022</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_ANU</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_anu</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_ANU" 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>4</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>14</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>28</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>18</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>57</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>37</MinTileRow>
            <MaxTileRow>49</MaxTileRow>
            <MinTileCol>115</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>75</MinTileRow>
            <MaxTileRow>98</MaxTileRow>
            <MinTileCol>231</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>151</MinTileRow>
            <MaxTileRow>196</MaxTileRow>
            <MinTileCol>462</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>302</MinTileRow>
            <MaxTileRow>392</MaxTileRow>
            <MinTileCol>924</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>605</MinTileRow>
            <MaxTileRow>784</MaxTileRow>
            <MinTileCol>1848</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1211</MinTileRow>
            <MaxTileRow>1568</MaxTileRow>
            <MinTileCol>3697</MinTileCol>
            <MaxTileCol>4054</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2422</MinTileRow>
            <MaxTileRow>3137</MaxTileRow>
            <MinTileCol>7394</MinTileCol>
            <MaxTileCol>8108</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>4844</MinTileRow>
            <MaxTileRow>6275</MaxTileRow>
            <MinTileCol>14789</MinTileCol>
            <MaxTileCol>16217</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>9689</MinTileRow>
            <MaxTileRow>12551</MaxTileRow>
            <MinTileCol>29579</MinTileCol>
            <MaxTileCol>32435</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>19378</MinTileRow>
            <MaxTileRow>25102</MaxTileRow>
            <MinTileCol>59159</MinTileCol>
            <MaxTileCol>64870</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>38757</MinTileRow>
            <MaxTileRow>50204</MaxTileRow>
            <MinTileCol>118318</MinTileCol>
            <MaxTileCol>129741</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>77515</MinTileRow>
            <MaxTileRow>100409</MaxTileRow>
            <MinTileCol>236636</MinTileCol>
            <MaxTileCol>259482</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>155031</MinTileRow>
            <MaxTileRow>200818</MaxTileRow>
            <MinTileCol>473272</MinTileCol>
            <MaxTileCol>518965</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>310063</MinTileRow>
            <MaxTileRow>401636</MaxTileRow>
            <MinTileCol>946544</MinTileCol>
            <MaxTileCol>1037930</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>620127</MinTileRow>
            <MaxTileRow>803272</MaxTileRow>
            <MinTileCol>1893088</MinTileCol>
            <MaxTileCol>2075861</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1240255</MinTileRow>
            <MaxTileRow>1606545</MaxTileRow>
            <MinTileCol>3786176</MinTileCol>
            <MaxTileCol>4151723</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>8</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>14</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>17</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>28</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>34</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>57</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>69</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>115</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>139</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>231</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>279</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>462</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>559</MinTileRow>
            <MaxTileRow>667</MaxTileRow>
            <MinTileCol>924</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1118</MinTileRow>
            <MaxTileRow>1335</MaxTileRow>
            <MinTileCol>1848</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2237</MinTileRow>
            <MaxTileRow>2670</MaxTileRow>
            <MinTileCol>3697</MinTileCol>
            <MaxTileCol>4054</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4475</MinTileRow>
            <MaxTileRow>5340</MaxTileRow>
            <MinTileCol>7394</MinTileCol>
            <MaxTileCol>8108</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>8951</MinTileRow>
            <MaxTileRow>10681</MaxTileRow>
            <MinTileCol>14789</MinTileCol>
            <MaxTileCol>16217</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>17902</MinTileRow>
            <MaxTileRow>21362</MaxTileRow>
            <MinTileCol>29579</MinTileCol>
            <MaxTileCol>32435</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>35805</MinTileRow>
            <MaxTileRow>42725</MaxTileRow>
            <MinTileCol>59159</MinTileCol>
            <MaxTileCol>64870</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>71610</MinTileRow>
            <MaxTileRow>85450</MaxTileRow>
            <MinTileCol>118318</MinTileCol>
            <MaxTileCol>129741</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>143220</MinTileRow>
            <MaxTileRow>170900</MaxTileRow>
            <MinTileCol>236636</MinTileCol>
            <MaxTileCol>259482</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>286440</MinTileRow>
            <MaxTileRow>341800</MaxTileRow>
            <MinTileCol>473272</MinTileCol>
            <MaxTileCol>518965</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>572880</MinTileRow>
            <MaxTileRow>683601</MaxTileRow>
            <MinTileCol>946544</MinTileCol>
            <MaxTileCol>1037930</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1145760</MinTileRow>
            <MaxTileRow>1367203</MaxTileRow>
            <MinTileCol>1893088</MinTileCol>
            <MaxTileCol>2075861</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2291521</MinTileRow>
            <MaxTileRow>2734406</MaxTileRow>
            <MinTileCol>3786176</MinTileCol>
            <MaxTileCol>4151723</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>4583042</MinTileRow>
            <MaxTileRow>5468813</MaxTileRow>
            <MinTileCol>7572353</MinTileCol>
            <MaxTileCol>8303447</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>9166084</MinTileRow>
            <MaxTileRow>10937626</MaxTileRow>
            <MinTileCol>15144706</MinTileCol>
            <MaxTileCol>16606895</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>18332169</MinTileRow>
            <MaxTileRow>21875252</MaxTileRow>
            <MinTileCol>30289413</MinTileCol>
            <MaxTileCol>33213790</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>36664339</MinTileRow>
            <MaxTileRow>43750505</MaxTileRow>
            <MinTileCol>60578826</MinTileCol>
            <MaxTileCol>66427581</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>73328678</MinTileRow>
            <MaxTileRow>87501010</MaxTileRow>
            <MinTileCol>121157653</MinTileCol>
            <MaxTileCol>132855163</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>146657357</MinTileRow>
            <MaxTileRow>175002021</MaxTileRow>
            <MinTileCol>242315307</MinTileCol>
            <MaxTileCol>265710327</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>293314714</MinTileRow>
            <MaxTileRow>350004043</MaxTileRow>
            <MinTileCol>484630614</MinTileCol>
            <MaxTileCol>531420655</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>586629429</MinTileRow>
            <MaxTileRow>700008086</MaxTileRow>
            <MinTileCol>969261229</MinTileCol>
            <MaxTileCol>1062841311</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_ANU/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_ANU/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_ANU/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_ANU/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_ANU/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_ANU/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_ANU/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_ANU/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_ANU/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_ANU/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_ANU/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>af250_faults_pg</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.22829599036473 -46.576693440754575</ows:LowerCorner>
        <ows:UpperCorner>176.0599448556485 -39.258038100748344</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:af250_faults_pg</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>generic</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Aaf250_faults_pg" 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>45</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>91</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>183</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>495</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>367</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>990</MinTileCol>
            <MaxTileCol>1012</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>735</MinTileRow>
            <MaxTileRow>776</MaxTileRow>
            <MinTileCol>1981</MinTileCol>
            <MaxTileCol>2025</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1470</MinTileRow>
            <MaxTileRow>1553</MaxTileRow>
            <MinTileCol>3962</MinTileCol>
            <MaxTileCol>4051</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2941</MinTileRow>
            <MaxTileRow>3107</MaxTileRow>
            <MinTileCol>7924</MinTileCol>
            <MaxTileCol>8102</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5882</MinTileRow>
            <MaxTileRow>6215</MaxTileRow>
            <MinTileCol>15848</MinTileCol>
            <MaxTileCol>16204</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11765</MinTileRow>
            <MaxTileRow>12431</MaxTileRow>
            <MinTileCol>31696</MinTileCol>
            <MaxTileCol>32409</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23530</MinTileRow>
            <MaxTileRow>24863</MaxTileRow>
            <MinTileCol>63393</MinTileCol>
            <MaxTileCol>64818</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47061</MinTileRow>
            <MaxTileRow>49726</MaxTileRow>
            <MinTileCol>126786</MinTileCol>
            <MaxTileCol>129637</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94122</MinTileRow>
            <MaxTileRow>99452</MaxTileRow>
            <MinTileCol>253572</MinTileCol>
            <MaxTileCol>259274</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188245</MinTileRow>
            <MaxTileRow>198904</MaxTileRow>
            <MinTileCol>507144</MinTileCol>
            <MaxTileCol>518549</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>376491</MinTileRow>
            <MaxTileRow>397808</MaxTileRow>
            <MinTileCol>1014288</MinTileCol>
            <MaxTileCol>1037099</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>752982</MinTileRow>
            <MaxTileRow>795616</MaxTileRow>
            <MinTileCol>2028576</MinTileCol>
            <MaxTileCol>2074199</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1505965</MinTileRow>
            <MaxTileRow>1591233</MaxTileRow>
            <MinTileCol>4057153</MinTileCol>
            <MaxTileCol>4148399</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>39</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>316</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>495</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>633</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>990</MinTileCol>
            <MaxTileCol>1012</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1267</MinTileRow>
            <MaxTileRow>1324</MaxTileRow>
            <MinTileCol>1981</MinTileCol>
            <MaxTileCol>2025</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2534</MinTileRow>
            <MaxTileRow>2648</MaxTileRow>
            <MinTileCol>3962</MinTileCol>
            <MaxTileCol>4051</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5068</MinTileRow>
            <MaxTileRow>5296</MaxTileRow>
            <MinTileCol>7924</MinTileCol>
            <MaxTileCol>8102</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10137</MinTileRow>
            <MaxTileRow>10593</MaxTileRow>
            <MinTileCol>15848</MinTileCol>
            <MaxTileCol>16204</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20275</MinTileRow>
            <MaxTileRow>21186</MaxTileRow>
            <MinTileCol>31696</MinTileCol>
            <MaxTileCol>32409</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40550</MinTileRow>
            <MaxTileRow>42372</MaxTileRow>
            <MinTileCol>63393</MinTileCol>
            <MaxTileCol>64818</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81100</MinTileRow>
            <MaxTileRow>84745</MaxTileRow>
            <MinTileCol>126786</MinTileCol>
            <MaxTileCol>129637</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162200</MinTileRow>
            <MaxTileRow>169490</MaxTileRow>
            <MinTileCol>253572</MinTileCol>
            <MaxTileCol>259274</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324400</MinTileRow>
            <MaxTileRow>338981</MaxTileRow>
            <MinTileCol>507144</MinTileCol>
            <MaxTileCol>518549</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>648800</MinTileRow>
            <MaxTileRow>677963</MaxTileRow>
            <MinTileCol>1014288</MinTileCol>
            <MaxTileCol>1037099</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1297601</MinTileRow>
            <MaxTileRow>1355927</MaxTileRow>
            <MinTileCol>2028576</MinTileCol>
            <MaxTileCol>2074199</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2595203</MinTileRow>
            <MaxTileRow>2711854</MaxTileRow>
            <MinTileCol>4057153</MinTileCol>
            <MaxTileCol>4148399</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5190407</MinTileRow>
            <MaxTileRow>5423708</MaxTileRow>
            <MinTileCol>8114307</MinTileCol>
            <MaxTileCol>8296798</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10380815</MinTileRow>
            <MaxTileRow>10847416</MaxTileRow>
            <MinTileCol>16228614</MinTileCol>
            <MaxTileCol>16593596</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20761631</MinTileRow>
            <MaxTileRow>21694833</MaxTileRow>
            <MinTileCol>32457229</MinTileCol>
            <MaxTileCol>33187192</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41523262</MinTileRow>
            <MaxTileRow>43389667</MaxTileRow>
            <MinTileCol>64914459</MinTileCol>
            <MaxTileCol>66374384</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83046525</MinTileRow>
            <MaxTileRow>86779334</MaxTileRow>
            <MinTileCol>129828918</MinTileCol>
            <MaxTileCol>132748768</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166093050</MinTileRow>
            <MaxTileRow>173558669</MaxTileRow>
            <MinTileCol>259657837</MinTileCol>
            <MaxTileCol>265497537</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332186100</MinTileRow>
            <MaxTileRow>347117339</MaxTileRow>
            <MinTileCol>519315674</MinTileCol>
            <MaxTileCol>530995075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>664372201</MinTileRow>
            <MaxTileRow>694234678</MaxTileRow>
            <MinTileCol>1038631349</MinTileCol>
            <MaxTileCol>1061990151</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_faults_pg/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_faults_pg/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_faults_pg/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_faults_pg/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_faults_pg/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_faults_pg/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_faults_pg/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_faults_pg/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_faults_pg/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_faults_pg/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_faults_pg/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>import_point_job_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-180.0 -90.0</ows:LowerCorner>
        <ows:UpperCorner>180.0 90.0</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:import_point_job_view</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>generic</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Aimport_point_job_view" 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>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_point_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_point_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_point_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_point_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_point_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_point_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_point_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_point_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_point_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_point_job_view/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_point_job_view/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZL-Urban_Rotorua_geological_units</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.06070733405883 -38.23227486696933</ows:LowerCorner>
        <ows:UpperCorner>176.42736160604017 -38.00850200411731</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZL-Urban_Rotorua_geological_units</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>Urban_Rotorua</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=65&amp;height=900&amp;layer=gns%3ANZL-Urban_Rotorua_geological_units" width="65" height="900"/>
      </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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>91</MinTileRow>
            <MaxTileRow>91</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>182</MinTileRow>
            <MaxTileRow>182</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>364</MinTileRow>
            <MaxTileRow>364</MaxTileRow>
            <MinTileCol>1012</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>728</MinTileRow>
            <MaxTileRow>729</MaxTileRow>
            <MinTileCol>2025</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1456</MinTileRow>
            <MaxTileRow>1458</MaxTileRow>
            <MinTileCol>4051</MinTileCol>
            <MaxTileCol>4055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2912</MinTileRow>
            <MaxTileRow>2917</MaxTileRow>
            <MinTileCol>8102</MinTileCol>
            <MaxTileCol>8110</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5825</MinTileRow>
            <MaxTileRow>5835</MaxTileRow>
            <MinTileCol>16204</MinTileCol>
            <MaxTileCol>16221</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11651</MinTileRow>
            <MaxTileRow>11671</MaxTileRow>
            <MinTileCol>32409</MinTileCol>
            <MaxTileCol>32442</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23303</MinTileRow>
            <MaxTileRow>23343</MaxTileRow>
            <MinTileCol>64818</MinTileCol>
            <MaxTileCol>64885</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46606</MinTileRow>
            <MaxTileRow>46687</MaxTileRow>
            <MinTileCol>129637</MinTileCol>
            <MaxTileCol>129771</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>93212</MinTileRow>
            <MaxTileRow>93375</MaxTileRow>
            <MinTileCol>259275</MinTileCol>
            <MaxTileCol>259542</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>186425</MinTileRow>
            <MaxTileRow>186751</MaxTileRow>
            <MinTileCol>518550</MinTileCol>
            <MaxTileCol>519084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>372851</MinTileRow>
            <MaxTileRow>373503</MaxTileRow>
            <MinTileCol>1037101</MinTileCol>
            <MaxTileCol>1038169</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>745703</MinTileRow>
            <MaxTileRow>747007</MaxTileRow>
            <MinTileCol>2074203</MinTileCol>
            <MaxTileCol>2076339</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1491407</MinTileRow>
            <MaxTileRow>1494014</MaxTileRow>
            <MinTileCol>4148407</MinTileCol>
            <MaxTileCol>4152679</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>78</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>157</MinTileRow>
            <MaxTileRow>157</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>314</MinTileRow>
            <MaxTileRow>314</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>629</MinTileRow>
            <MaxTileRow>629</MaxTileRow>
            <MinTileCol>1012</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1258</MinTileRow>
            <MaxTileRow>1259</MaxTileRow>
            <MinTileCol>2025</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2516</MinTileRow>
            <MaxTileRow>2519</MaxTileRow>
            <MinTileCol>4051</MinTileCol>
            <MaxTileCol>4055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5032</MinTileRow>
            <MaxTileRow>5038</MaxTileRow>
            <MinTileCol>8102</MinTileCol>
            <MaxTileCol>8110</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10064</MinTileRow>
            <MaxTileRow>10077</MaxTileRow>
            <MinTileCol>16204</MinTileCol>
            <MaxTileCol>16221</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20129</MinTileRow>
            <MaxTileRow>20155</MaxTileRow>
            <MinTileCol>32409</MinTileCol>
            <MaxTileCol>32442</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40258</MinTileRow>
            <MaxTileRow>40310</MaxTileRow>
            <MinTileCol>64818</MinTileCol>
            <MaxTileCol>64885</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80517</MinTileRow>
            <MaxTileRow>80621</MaxTileRow>
            <MinTileCol>129637</MinTileCol>
            <MaxTileCol>129771</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>161035</MinTileRow>
            <MaxTileRow>161242</MaxTileRow>
            <MinTileCol>259275</MinTileCol>
            <MaxTileCol>259542</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>322070</MinTileRow>
            <MaxTileRow>322485</MaxTileRow>
            <MinTileCol>518550</MinTileCol>
            <MaxTileCol>519084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>644141</MinTileRow>
            <MaxTileRow>644970</MaxTileRow>
            <MinTileCol>1037101</MinTileCol>
            <MaxTileCol>1038169</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1288283</MinTileRow>
            <MaxTileRow>1289940</MaxTileRow>
            <MinTileCol>2074203</MinTileCol>
            <MaxTileCol>2076339</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2576566</MinTileRow>
            <MaxTileRow>2579880</MaxTileRow>
            <MinTileCol>4148407</MinTileCol>
            <MaxTileCol>4152679</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5153132</MinTileRow>
            <MaxTileRow>5159760</MaxTileRow>
            <MinTileCol>8296815</MinTileCol>
            <MaxTileCol>8305359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10306265</MinTileRow>
            <MaxTileRow>10319521</MaxTileRow>
            <MinTileCol>16593631</MinTileCol>
            <MaxTileCol>16610718</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20612531</MinTileRow>
            <MaxTileRow>20639043</MaxTileRow>
            <MinTileCol>33187263</MinTileCol>
            <MaxTileCol>33221437</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41225063</MinTileRow>
            <MaxTileRow>41278086</MaxTileRow>
            <MinTileCol>66374526</MinTileCol>
            <MaxTileCol>66442875</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82450126</MinTileRow>
            <MaxTileRow>82556173</MaxTileRow>
            <MinTileCol>132749053</MinTileCol>
            <MaxTileCol>132885751</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>164900252</MinTileRow>
            <MaxTileRow>165112346</MaxTileRow>
            <MinTileCol>265498106</MinTileCol>
            <MaxTileCol>265771503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>329800504</MinTileRow>
            <MaxTileRow>330224692</MaxTileRow>
            <MinTileCol>530996213</MinTileCol>
            <MaxTileCol>531543007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>659601009</MinTileRow>
            <MaxTileRow>660449384</MaxTileRow>
            <MinTileCol>1061992426</MinTileCol>
            <MaxTileCol>1063086015</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Rotorua_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Rotorua_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Rotorua_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Rotorua_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Rotorua_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Rotorua_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Rotorua_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Rotorua_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Rotorua_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Rotorua_geological_units/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Rotorua_geological_units/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>MIS.GNS_BUILDING_FOOTPRINT</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>170.51345525897457 -45.88756418587862</ows:LowerCorner>
        <ows:UpperCorner>176.46453068965067 -38.63183534095169</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:MIS.GNS_BUILDING_FOOTPRINT</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AMIS.GNS_BUILDING_FOOTPRINT" 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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>22</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>91</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>249</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>182</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>498</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>365</MinTileRow>
            <MaxTileRow>386</MaxTileRow>
            <MinTileCol>997</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>731</MinTileRow>
            <MaxTileRow>773</MaxTileRow>
            <MinTileCol>1994</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1463</MinTileRow>
            <MaxTileRow>1546</MaxTileRow>
            <MinTileCol>3988</MinTileCol>
            <MaxTileCol>4055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2927</MinTileRow>
            <MaxTileRow>3092</MaxTileRow>
            <MinTileCol>7976</MinTileCol>
            <MaxTileCol>8111</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5854</MinTileRow>
            <MaxTileRow>6184</MaxTileRow>
            <MinTileCol>15952</MinTileCol>
            <MaxTileCol>16223</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11708</MinTileRow>
            <MaxTileRow>12368</MaxTileRow>
            <MinTileCol>31904</MinTileCol>
            <MaxTileCol>32446</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23416</MinTileRow>
            <MaxTileRow>24737</MaxTileRow>
            <MinTileCol>63809</MinTileCol>
            <MaxTileCol>64892</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46833</MinTileRow>
            <MaxTileRow>49475</MaxTileRow>
            <MinTileCol>127618</MinTileCol>
            <MaxTileCol>129784</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>93666</MinTileRow>
            <MaxTileRow>98950</MaxTileRow>
            <MinTileCol>255236</MinTileCol>
            <MaxTileCol>259569</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>187333</MinTileRow>
            <MaxTileRow>197900</MaxTileRow>
            <MinTileCol>510472</MinTileCol>
            <MaxTileCol>519139</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>374667</MinTileRow>
            <MaxTileRow>395801</MaxTileRow>
            <MinTileCol>1020944</MinTileCol>
            <MaxTileCol>1038278</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>749334</MinTileRow>
            <MaxTileRow>791602</MaxTileRow>
            <MinTileCol>2041888</MinTileCol>
            <MaxTileCol>2076556</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1498669</MinTileRow>
            <MaxTileRow>1583204</MaxTileRow>
            <MinTileCol>4083777</MinTileCol>
            <MaxTileCol>4153112</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>157</MinTileRow>
            <MaxTileRow>164</MaxTileRow>
            <MinTileCol>249</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>315</MinTileRow>
            <MaxTileRow>329</MaxTileRow>
            <MinTileCol>498</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>631</MinTileRow>
            <MaxTileRow>659</MaxTileRow>
            <MinTileCol>997</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1262</MinTileRow>
            <MaxTileRow>1318</MaxTileRow>
            <MinTileCol>1994</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2525</MinTileRow>
            <MaxTileRow>2636</MaxTileRow>
            <MinTileCol>3988</MinTileCol>
            <MaxTileCol>4055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5050</MinTileRow>
            <MaxTileRow>5273</MaxTileRow>
            <MinTileCol>7976</MinTileCol>
            <MaxTileCol>8111</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10100</MinTileRow>
            <MaxTileRow>10547</MaxTileRow>
            <MinTileCol>15952</MinTileCol>
            <MaxTileCol>16223</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20201</MinTileRow>
            <MaxTileRow>21095</MaxTileRow>
            <MinTileCol>31904</MinTileCol>
            <MaxTileCol>32446</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40403</MinTileRow>
            <MaxTileRow>42191</MaxTileRow>
            <MinTileCol>63809</MinTileCol>
            <MaxTileCol>64892</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80806</MinTileRow>
            <MaxTileRow>84382</MaxTileRow>
            <MinTileCol>127618</MinTileCol>
            <MaxTileCol>129784</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>161613</MinTileRow>
            <MaxTileRow>168765</MaxTileRow>
            <MinTileCol>255236</MinTileCol>
            <MaxTileCol>259569</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>323227</MinTileRow>
            <MaxTileRow>337530</MaxTileRow>
            <MinTileCol>510472</MinTileCol>
            <MaxTileCol>519139</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>646455</MinTileRow>
            <MaxTileRow>675061</MaxTileRow>
            <MinTileCol>1020944</MinTileCol>
            <MaxTileCol>1038278</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1292911</MinTileRow>
            <MaxTileRow>1350123</MaxTileRow>
            <MinTileCol>2041888</MinTileCol>
            <MaxTileCol>2076556</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2585823</MinTileRow>
            <MaxTileRow>2700247</MaxTileRow>
            <MinTileCol>4083777</MinTileCol>
            <MaxTileCol>4153112</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5171646</MinTileRow>
            <MaxTileRow>5400494</MaxTileRow>
            <MinTileCol>8167555</MinTileCol>
            <MaxTileCol>8306225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10343292</MinTileRow>
            <MaxTileRow>10800988</MaxTileRow>
            <MinTileCol>16335110</MinTileCol>
            <MaxTileCol>16612451</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20686585</MinTileRow>
            <MaxTileRow>21601976</MaxTileRow>
            <MinTileCol>32670221</MinTileCol>
            <MaxTileCol>33224902</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41373170</MinTileRow>
            <MaxTileRow>43203953</MaxTileRow>
            <MinTileCol>65340443</MinTileCol>
            <MaxTileCol>66449804</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82746341</MinTileRow>
            <MaxTileRow>86407906</MaxTileRow>
            <MinTileCol>130680887</MinTileCol>
            <MaxTileCol>132899609</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>165492682</MinTileRow>
            <MaxTileRow>172815813</MaxTileRow>
            <MinTileCol>261361775</MinTileCol>
            <MaxTileCol>265799219</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>330985365</MinTileRow>
            <MaxTileRow>345631627</MaxTileRow>
            <MinTileCol>522723551</MinTileCol>
            <MaxTileCol>531598438</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>661970731</MinTileRow>
            <MaxTileRow>691263255</MaxTileRow>
            <MinTileCol>1045447102</MinTileCol>
            <MaxTileCol>1063196876</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MIS.GNS_BUILDING_FOOTPRINT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MIS.GNS_BUILDING_FOOTPRINT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MIS.GNS_BUILDING_FOOTPRINT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MIS.GNS_BUILDING_FOOTPRINT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MIS.GNS_BUILDING_FOOTPRINT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MIS.GNS_BUILDING_FOOTPRINT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MIS.GNS_BUILDING_FOOTPRINT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MIS.GNS_BUILDING_FOOTPRINT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MIS.GNS_BUILDING_FOOTPRINT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MIS.GNS_BUILDING_FOOTPRINT/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MIS.GNS_BUILDING_FOOTPRINT/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>hum_subsurface</ows:Title>
      <ows:Abstract>New Zealand Aotearoa aquifers with mean intersecting well temperatures captured.</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.58065216092257 -41.49646378740987</ows:LowerCorner>
        <ows:UpperCorner>178.88150839378756 -34.28762815447173</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:hum_subsurface</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:gfg_aquifer</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Ahum_subsurface" 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>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>707</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1414</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4011</MinTileCol>
            <MaxTileCol>4083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2828</MinTileRow>
            <MaxTileRow>2992</MaxTileRow>
            <MinTileCol>8023</MinTileCol>
            <MaxTileCol>8166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5656</MinTileRow>
            <MaxTileRow>5984</MaxTileRow>
            <MinTileCol>16046</MinTileCol>
            <MaxTileCol>16333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11312</MinTileRow>
            <MaxTileRow>11969</MaxTileRow>
            <MinTileCol>32092</MinTileCol>
            <MaxTileCol>32666</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22625</MinTileRow>
            <MaxTileRow>23938</MaxTileRow>
            <MinTileCol>64185</MinTileCol>
            <MaxTileCol>65332</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45251</MinTileRow>
            <MaxTileRow>47876</MaxTileRow>
            <MinTileCol>128370</MinTileCol>
            <MaxTileCol>130664</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90503</MinTileRow>
            <MaxTileRow>95752</MaxTileRow>
            <MinTileCol>256741</MinTileCol>
            <MaxTileCol>261329</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>181006</MinTileRow>
            <MaxTileRow>191505</MaxTileRow>
            <MinTileCol>513482</MinTileCol>
            <MaxTileCol>522659</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>362013</MinTileRow>
            <MaxTileRow>383011</MaxTileRow>
            <MinTileCol>1026965</MinTileCol>
            <MaxTileCol>1045318</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>724027</MinTileRow>
            <MaxTileRow>766022</MaxTileRow>
            <MinTileCol>2053931</MinTileCol>
            <MaxTileCol>2090636</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1448055</MinTileRow>
            <MaxTileRow>1532044</MaxTileRow>
            <MinTileCol>4107862</MinTileCol>
            <MaxTileCol>4181272</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>320</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>641</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1231</MinTileRow>
            <MaxTileRow>1283</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2463</MinTileRow>
            <MaxTileRow>2567</MaxTileRow>
            <MinTileCol>4011</MinTileCol>
            <MaxTileCol>4083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4927</MinTileRow>
            <MaxTileRow>5135</MaxTileRow>
            <MinTileCol>8023</MinTileCol>
            <MaxTileCol>8166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9854</MinTileRow>
            <MaxTileRow>10271</MaxTileRow>
            <MinTileCol>16046</MinTileCol>
            <MaxTileCol>16333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19709</MinTileRow>
            <MaxTileRow>20542</MaxTileRow>
            <MinTileCol>32092</MinTileCol>
            <MaxTileCol>32666</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39419</MinTileRow>
            <MaxTileRow>41085</MaxTileRow>
            <MinTileCol>64185</MinTileCol>
            <MaxTileCol>65332</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78839</MinTileRow>
            <MaxTileRow>82170</MaxTileRow>
            <MinTileCol>128370</MinTileCol>
            <MaxTileCol>130664</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157678</MinTileRow>
            <MaxTileRow>164340</MaxTileRow>
            <MinTileCol>256741</MinTileCol>
            <MaxTileCol>261329</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315357</MinTileRow>
            <MaxTileRow>328680</MaxTileRow>
            <MinTileCol>513482</MinTileCol>
            <MaxTileCol>522659</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630715</MinTileRow>
            <MaxTileRow>657360</MaxTileRow>
            <MinTileCol>1026965</MinTileCol>
            <MaxTileCol>1045318</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1261430</MinTileRow>
            <MaxTileRow>1314721</MaxTileRow>
            <MinTileCol>2053931</MinTileCol>
            <MaxTileCol>2090636</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2522860</MinTileRow>
            <MaxTileRow>2629443</MaxTileRow>
            <MinTileCol>4107862</MinTileCol>
            <MaxTileCol>4181272</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5045721</MinTileRow>
            <MaxTileRow>5258887</MaxTileRow>
            <MinTileCol>8215724</MinTileCol>
            <MaxTileCol>8362545</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10091443</MinTileRow>
            <MaxTileRow>10517774</MaxTileRow>
            <MinTileCol>16431449</MinTileCol>
            <MaxTileCol>16725090</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20182886</MinTileRow>
            <MaxTileRow>21035548</MaxTileRow>
            <MinTileCol>32862898</MinTileCol>
            <MaxTileCol>33450181</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40365772</MinTileRow>
            <MaxTileRow>42071096</MaxTileRow>
            <MinTileCol>65725797</MinTileCol>
            <MaxTileCol>66900362</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80731544</MinTileRow>
            <MaxTileRow>84142193</MaxTileRow>
            <MinTileCol>131451594</MinTileCol>
            <MaxTileCol>133800724</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161463089</MinTileRow>
            <MaxTileRow>168284387</MaxTileRow>
            <MinTileCol>262903189</MinTileCol>
            <MaxTileCol>267601448</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322926178</MinTileRow>
            <MaxTileRow>336568774</MaxTileRow>
            <MinTileCol>525806378</MinTileCol>
            <MaxTileCol>535202896</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645852357</MinTileRow>
            <MaxTileRow>673137549</MaxTileRow>
            <MinTileCol>1051612757</MinTileCol>
            <MaxTileCol>1070405792</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:hum_subsurface/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:hum_subsurface/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:hum_subsurface/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:hum_subsurface/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:hum_subsurface/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:hum_subsurface/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:hum_subsurface/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:hum_subsurface/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:hum_subsurface/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:hum_subsurface/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:hum_subsurface/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>MINERAL.MINERAL_DRILLHOLE</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>167.7804803955958 -46.44869712413941</ows:LowerCorner>
        <ows:UpperCorner>176.7831441816433 -35.10604917237639</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:MINERAL.MINERAL_DRILLHOLE</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:mineral_drillhole_clean</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=22&amp;height=40&amp;layer=gns%3AMINERAL.MINERAL_DRILLHOLE" width="22" height="40" maxScaleDenominator="2000000.0"/>
      </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>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>177</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>355</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>1014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>711</MinTileRow>
            <MaxTileRow>776</MaxTileRow>
            <MinTileCol>1978</MinTileCol>
            <MaxTileCol>2029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1423</MinTileRow>
            <MaxTileRow>1552</MaxTileRow>
            <MinTileCol>3956</MinTileCol>
            <MaxTileCol>4059</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2846</MinTileRow>
            <MaxTileRow>3104</MaxTileRow>
            <MinTileCol>7913</MinTileCol>
            <MaxTileCol>8118</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5693</MinTileRow>
            <MaxTileRow>6209</MaxTileRow>
            <MinTileCol>15827</MinTileCol>
            <MaxTileCol>16237</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11387</MinTileRow>
            <MaxTileRow>12419</MaxTileRow>
            <MinTileCol>31655</MinTileCol>
            <MaxTileCol>32475</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22774</MinTileRow>
            <MaxTileRow>24839</MaxTileRow>
            <MinTileCol>63311</MinTileCol>
            <MaxTileCol>64950</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45549</MinTileRow>
            <MaxTileRow>49679</MaxTileRow>
            <MinTileCol>126623</MinTileCol>
            <MaxTileCol>129900</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91099</MinTileRow>
            <MaxTileRow>99358</MaxTileRow>
            <MinTileCol>253246</MinTileCol>
            <MaxTileCol>259801</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182198</MinTileRow>
            <MaxTileRow>198717</MaxTileRow>
            <MinTileCol>506492</MinTileCol>
            <MaxTileCol>519603</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>364397</MinTileRow>
            <MaxTileRow>397435</MaxTileRow>
            <MinTileCol>1012984</MinTileCol>
            <MaxTileCol>1039206</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>728795</MinTileRow>
            <MaxTileRow>794871</MaxTileRow>
            <MinTileCol>2025968</MinTileCol>
            <MaxTileCol>2078412</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1457591</MinTileRow>
            <MaxTileRow>1589742</MaxTileRow>
            <MinTileCol>4051936</MinTileCol>
            <MaxTileCol>4156824</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>77</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>618</MinTileRow>
            <MaxTileRow>661</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>1014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1237</MinTileRow>
            <MaxTileRow>1323</MaxTileRow>
            <MinTileCol>1978</MinTileCol>
            <MaxTileCol>2029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2475</MinTileRow>
            <MaxTileRow>2646</MaxTileRow>
            <MinTileCol>3956</MinTileCol>
            <MaxTileCol>4059</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4950</MinTileRow>
            <MaxTileRow>5292</MaxTileRow>
            <MinTileCol>7913</MinTileCol>
            <MaxTileCol>8118</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9900</MinTileRow>
            <MaxTileRow>10584</MaxTileRow>
            <MinTileCol>15827</MinTileCol>
            <MaxTileCol>16237</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19800</MinTileRow>
            <MaxTileRow>21169</MaxTileRow>
            <MinTileCol>31655</MinTileCol>
            <MaxTileCol>32475</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39600</MinTileRow>
            <MaxTileRow>42338</MaxTileRow>
            <MinTileCol>63311</MinTileCol>
            <MaxTileCol>64950</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79201</MinTileRow>
            <MaxTileRow>84677</MaxTileRow>
            <MinTileCol>126623</MinTileCol>
            <MaxTileCol>129900</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158403</MinTileRow>
            <MaxTileRow>169355</MaxTileRow>
            <MinTileCol>253246</MinTileCol>
            <MaxTileCol>259801</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>316807</MinTileRow>
            <MaxTileRow>338710</MaxTileRow>
            <MinTileCol>506492</MinTileCol>
            <MaxTileCol>519603</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>633614</MinTileRow>
            <MaxTileRow>677421</MaxTileRow>
            <MinTileCol>1012984</MinTileCol>
            <MaxTileCol>1039206</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1267229</MinTileRow>
            <MaxTileRow>1354843</MaxTileRow>
            <MinTileCol>2025968</MinTileCol>
            <MaxTileCol>2078412</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2534458</MinTileRow>
            <MaxTileRow>2709687</MaxTileRow>
            <MinTileCol>4051936</MinTileCol>
            <MaxTileCol>4156824</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5068917</MinTileRow>
            <MaxTileRow>5419374</MaxTileRow>
            <MinTileCol>8103872</MinTileCol>
            <MaxTileCol>8313649</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10137834</MinTileRow>
            <MaxTileRow>10838749</MaxTileRow>
            <MinTileCol>16207745</MinTileCol>
            <MaxTileCol>16627299</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20275668</MinTileRow>
            <MaxTileRow>21677498</MaxTileRow>
            <MinTileCol>32415490</MinTileCol>
            <MaxTileCol>33254599</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40551337</MinTileRow>
            <MaxTileRow>43354996</MaxTileRow>
            <MinTileCol>64830980</MinTileCol>
            <MaxTileCol>66509198</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81102675</MinTileRow>
            <MaxTileRow>86709993</MaxTileRow>
            <MinTileCol>129661960</MinTileCol>
            <MaxTileCol>133018397</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162205350</MinTileRow>
            <MaxTileRow>173419986</MaxTileRow>
            <MinTileCol>259323921</MinTileCol>
            <MaxTileCol>266036794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>324410701</MinTileRow>
            <MaxTileRow>346839972</MaxTileRow>
            <MinTileCol>518647843</MinTileCol>
            <MaxTileCol>532073588</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>648821402</MinTileRow>
            <MaxTileRow>693679945</MaxTileRow>
            <MinTileCol>1037295687</MinTileCol>
            <MaxTileCol>1064147177</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.MINERAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.MINERAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.MINERAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.MINERAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.MINERAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.MINERAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.MINERAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.MINERAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.MINERAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.MINERAL_DRILLHOLE/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.MINERAL_DRILLHOLE/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_median_100_125</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_median_100_125</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_median_100_125" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_100_125/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_100_125/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_100_125/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>pet_site_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-179.98940008 -86.63</ows:LowerCorner>
        <ows:UpperCorner>180.0 67.20929088</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:pet_site_view</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>point</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Apet_site_view" 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>0</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>7</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>15</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>31</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>8</MinTileRow>
            <MaxTileRow>62</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>16</MinTileRow>
            <MaxTileRow>125</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>32</MinTileRow>
            <MaxTileRow>251</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>64</MinTileRow>
            <MaxTileRow>502</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>129</MinTileRow>
            <MaxTileRow>1004</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>259</MinTileRow>
            <MaxTileRow>2009</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>518</MinTileRow>
            <MaxTileRow>4019</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>1037</MinTileRow>
            <MaxTileRow>8038</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>2074</MinTileRow>
            <MaxTileRow>16077</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>4148</MinTileRow>
            <MaxTileRow>32154</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>8297</MinTileRow>
            <MaxTileRow>64309</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>16595</MinTileRow>
            <MaxTileRow>128618</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>33191</MinTileRow>
            <MaxTileRow>257236</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>66382</MinTileRow>
            <MaxTileRow>514472</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>132765</MinTileRow>
            <MaxTileRow>1028944</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>265531</MinTileRow>
            <MaxTileRow>2057888</MaxTileRow>
            <MinTileCol>123</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>0</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>7</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>3</MinTileRow>
            <MaxTileRow>15</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>7</MinTileRow>
            <MaxTileRow>31</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>15</MinTileRow>
            <MaxTileRow>63</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>31</MinTileRow>
            <MaxTileRow>127</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>62</MinTileRow>
            <MaxTileRow>255</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>125</MinTileRow>
            <MaxTileRow>511</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>250</MinTileRow>
            <MaxTileRow>1023</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>501</MinTileRow>
            <MaxTileRow>2047</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>1003</MinTileRow>
            <MaxTileRow>4095</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>2007</MinTileRow>
            <MaxTileRow>8191</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>4015</MinTileRow>
            <MaxTileRow>16383</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>8030</MinTileRow>
            <MaxTileRow>32767</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>16061</MinTileRow>
            <MaxTileRow>65535</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>32123</MinTileRow>
            <MaxTileRow>131071</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>64246</MinTileRow>
            <MaxTileRow>262143</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>128492</MinTileRow>
            <MaxTileRow>524287</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>256984</MinTileRow>
            <MaxTileRow>1048575</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>513968</MinTileRow>
            <MaxTileRow>2097151</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>1027937</MinTileRow>
            <MaxTileRow>4194303</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>4194303</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>2055875</MinTileRow>
            <MaxTileRow>8388607</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>8388607</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>4111751</MinTileRow>
            <MaxTileRow>16777215</MaxTileRow>
            <MinTileCol>493</MinTileCol>
            <MaxTileCol>16777215</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>8223502</MinTileRow>
            <MaxTileRow>33554431</MaxTileRow>
            <MinTileCol>987</MinTileCol>
            <MaxTileCol>33554431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>16447005</MinTileRow>
            <MaxTileRow>67108863</MaxTileRow>
            <MinTileCol>1975</MinTileCol>
            <MaxTileCol>67108863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>32894011</MinTileRow>
            <MaxTileRow>134217727</MaxTileRow>
            <MinTileCol>3951</MinTileCol>
            <MaxTileCol>134217727</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>65788022</MinTileRow>
            <MaxTileRow>268435455</MaxTileRow>
            <MinTileCol>7903</MinTileCol>
            <MaxTileCol>268435455</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>131576045</MinTileRow>
            <MaxTileRow>536870911</MaxTileRow>
            <MinTileCol>15807</MinTileCol>
            <MaxTileCol>536870911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>263152091</MinTileRow>
            <MaxTileRow>1073741823</MaxTileRow>
            <MinTileCol>31615</MinTileCol>
            <MaxTileCol>1073741823</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZL-Urban_Wanganui_geological_units</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>174.95939002472943 -39.95361939284646</ows:LowerCorner>
        <ows:UpperCorner>175.09247088757562 -39.88852987831129</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZL-Urban_Wanganui_geological_units</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>Urban_Wanganui</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=52&amp;height=360&amp;layer=gns%3ANZL-Urban_Wanganui_geological_units" width="52" height="360"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>504</MinTileCol>
            <MaxTileCol>505</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>369</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1009</MinTileCol>
            <MaxTileCol>1010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>738</MinTileRow>
            <MaxTileRow>739</MaxTileRow>
            <MinTileCol>2019</MinTileCol>
            <MaxTileCol>2020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1477</MinTileRow>
            <MaxTileRow>1478</MaxTileRow>
            <MinTileCol>4038</MinTileCol>
            <MaxTileCol>4040</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2955</MinTileRow>
            <MaxTileRow>2957</MaxTileRow>
            <MinTileCol>8077</MinTileCol>
            <MaxTileCol>8080</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5911</MinTileRow>
            <MaxTileRow>5914</MaxTileRow>
            <MinTileCol>16154</MinTileCol>
            <MaxTileCol>16160</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11822</MinTileRow>
            <MaxTileRow>11828</MaxTileRow>
            <MinTileCol>32309</MinTileCol>
            <MaxTileCol>32321</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23645</MinTileRow>
            <MaxTileRow>23657</MaxTileRow>
            <MinTileCol>64618</MinTileCol>
            <MaxTileCol>64642</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47290</MinTileRow>
            <MaxTileRow>47314</MaxTileRow>
            <MinTileCol>129236</MinTileCol>
            <MaxTileCol>129285</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94581</MinTileRow>
            <MaxTileRow>94629</MaxTileRow>
            <MinTileCol>258473</MinTileCol>
            <MaxTileCol>258570</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>189163</MinTileRow>
            <MaxTileRow>189258</MaxTileRow>
            <MinTileCol>516947</MinTileCol>
            <MaxTileCol>517140</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>378327</MinTileRow>
            <MaxTileRow>378517</MaxTileRow>
            <MinTileCol>1033894</MinTileCol>
            <MaxTileCol>1034281</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>756655</MinTileRow>
            <MaxTileRow>757034</MaxTileRow>
            <MinTileCol>2067788</MinTileCol>
            <MaxTileCol>2068563</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1513311</MinTileRow>
            <MaxTileRow>1514069</MaxTileRow>
            <MinTileCol>4135576</MinTileCol>
            <MaxTileCol>4137127</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>159</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>318</MaxTileRow>
            <MinTileCol>504</MinTileCol>
            <MaxTileCol>505</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>635</MinTileRow>
            <MaxTileRow>636</MaxTileRow>
            <MinTileCol>1009</MinTileCol>
            <MaxTileCol>1010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1271</MinTileRow>
            <MaxTileRow>1272</MaxTileRow>
            <MinTileCol>2019</MinTileCol>
            <MaxTileCol>2020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2543</MinTileRow>
            <MaxTileRow>2544</MaxTileRow>
            <MinTileCol>4038</MinTileCol>
            <MaxTileCol>4040</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5087</MinTileRow>
            <MaxTileRow>5089</MaxTileRow>
            <MinTileCol>8077</MinTileCol>
            <MaxTileCol>8080</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10174</MinTileRow>
            <MaxTileRow>10178</MaxTileRow>
            <MinTileCol>16154</MinTileCol>
            <MaxTileCol>16160</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20349</MinTileRow>
            <MaxTileRow>20357</MaxTileRow>
            <MinTileCol>32309</MinTileCol>
            <MaxTileCol>32321</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40698</MinTileRow>
            <MaxTileRow>40714</MaxTileRow>
            <MinTileCol>64618</MinTileCol>
            <MaxTileCol>64642</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81397</MinTileRow>
            <MaxTileRow>81428</MaxTileRow>
            <MinTileCol>129236</MinTileCol>
            <MaxTileCol>129285</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162795</MinTileRow>
            <MaxTileRow>162857</MaxTileRow>
            <MinTileCol>258473</MinTileCol>
            <MaxTileCol>258570</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>325591</MinTileRow>
            <MaxTileRow>325715</MaxTileRow>
            <MinTileCol>516947</MinTileCol>
            <MaxTileCol>517140</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>651183</MinTileRow>
            <MaxTileRow>651430</MaxTileRow>
            <MinTileCol>1033894</MinTileCol>
            <MaxTileCol>1034281</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1302366</MinTileRow>
            <MaxTileRow>1302861</MaxTileRow>
            <MinTileCol>2067788</MinTileCol>
            <MaxTileCol>2068563</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2604733</MinTileRow>
            <MaxTileRow>2605722</MaxTileRow>
            <MinTileCol>4135576</MinTileCol>
            <MaxTileCol>4137127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5209467</MinTileRow>
            <MaxTileRow>5211445</MaxTileRow>
            <MinTileCol>8271153</MinTileCol>
            <MaxTileCol>8274254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10418935</MinTileRow>
            <MaxTileRow>10422891</MaxTileRow>
            <MinTileCol>16542306</MinTileCol>
            <MaxTileCol>16548508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20837871</MinTileRow>
            <MaxTileRow>20845782</MaxTileRow>
            <MinTileCol>33084613</MinTileCol>
            <MaxTileCol>33097017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41675743</MinTileRow>
            <MaxTileRow>41691564</MaxTileRow>
            <MinTileCol>66169226</MinTileCol>
            <MaxTileCol>66194034</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83351486</MinTileRow>
            <MaxTileRow>83383128</MaxTileRow>
            <MinTileCol>132338452</MinTileCol>
            <MaxTileCol>132388068</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166702972</MinTileRow>
            <MaxTileRow>166766256</MaxTileRow>
            <MinTileCol>264676904</MinTileCol>
            <MaxTileCol>264776137</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>333405945</MinTileRow>
            <MaxTileRow>333532512</MaxTileRow>
            <MinTileCol>529353809</MinTileCol>
            <MaxTileCol>529552274</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>666811890</MinTileRow>
            <MaxTileRow>667065025</MaxTileRow>
            <MinTileCol>1058707619</MinTileCol>
            <MaxTileCol>1059104548</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wanganui_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wanganui_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wanganui_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wanganui_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wanganui_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wanganui_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wanganui_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wanganui_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wanganui_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wanganui_geological_units/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Wanganui_geological_units/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>heat_pump_location_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.26021952317015 -47.435887890429704</ows:LowerCorner>
        <ows:UpperCorner>176.1161589480216 -36.724335856161325</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:heat_pump_location_view</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:geothermal_use_heat_pump_districts</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Aheat_pump_location_view" 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>45</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>90</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>180</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>360</MinTileRow>
            <MaxTileRow>390</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1012</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>720</MinTileRow>
            <MaxTileRow>781</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2025</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1441</MinTileRow>
            <MaxTileRow>1563</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4051</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2883</MinTileRow>
            <MaxTileRow>3127</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8103</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5767</MinTileRow>
            <MaxTileRow>6254</MaxTileRow>
            <MinTileCol>15758</MinTileCol>
            <MaxTileCol>16207</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11534</MinTileRow>
            <MaxTileRow>12509</MaxTileRow>
            <MinTileCol>31517</MinTileCol>
            <MaxTileCol>32414</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23069</MinTileRow>
            <MaxTileRow>25019</MaxTileRow>
            <MinTileCol>63034</MinTileCol>
            <MaxTileCol>64828</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46138</MinTileRow>
            <MaxTileRow>50038</MaxTileRow>
            <MinTileCol>126069</MinTileCol>
            <MaxTileCol>129657</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>92277</MinTileRow>
            <MaxTileRow>100077</MaxTileRow>
            <MinTileCol>252138</MinTileCol>
            <MaxTileCol>259315</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>184555</MinTileRow>
            <MaxTileRow>200155</MaxTileRow>
            <MinTileCol>504277</MinTileCol>
            <MaxTileCol>518631</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>369111</MinTileRow>
            <MaxTileRow>400311</MaxTileRow>
            <MinTileCol>1008555</MinTileCol>
            <MaxTileCol>1037263</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>738222</MinTileRow>
            <MaxTileRow>800622</MaxTileRow>
            <MinTileCol>2017111</MinTileCol>
            <MaxTileCol>2074526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1476445</MinTileRow>
            <MaxTileRow>1601244</MaxTileRow>
            <MinTileCol>4034223</MinTileCol>
            <MaxTileCol>4149053</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>39</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>156</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>312</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>624</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1012</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1248</MinTileRow>
            <MaxTileRow>1331</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2025</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2497</MinTileRow>
            <MaxTileRow>2662</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4051</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4995</MinTileRow>
            <MaxTileRow>5325</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8103</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9991</MinTileRow>
            <MaxTileRow>10650</MaxTileRow>
            <MinTileCol>15758</MinTileCol>
            <MaxTileCol>16207</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19982</MinTileRow>
            <MaxTileRow>21301</MaxTileRow>
            <MinTileCol>31517</MinTileCol>
            <MaxTileCol>32414</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39964</MinTileRow>
            <MaxTileRow>42602</MaxTileRow>
            <MinTileCol>63034</MinTileCol>
            <MaxTileCol>64828</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79929</MinTileRow>
            <MaxTileRow>85204</MaxTileRow>
            <MinTileCol>126069</MinTileCol>
            <MaxTileCol>129657</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>159858</MinTileRow>
            <MaxTileRow>170408</MaxTileRow>
            <MinTileCol>252138</MinTileCol>
            <MaxTileCol>259315</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>319717</MinTileRow>
            <MaxTileRow>340816</MaxTileRow>
            <MinTileCol>504277</MinTileCol>
            <MaxTileCol>518631</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>639435</MinTileRow>
            <MaxTileRow>681633</MaxTileRow>
            <MinTileCol>1008555</MinTileCol>
            <MaxTileCol>1037263</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1278870</MinTileRow>
            <MaxTileRow>1363267</MaxTileRow>
            <MinTileCol>2017111</MinTileCol>
            <MaxTileCol>2074526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2557740</MinTileRow>
            <MaxTileRow>2726534</MaxTileRow>
            <MinTileCol>4034223</MinTileCol>
            <MaxTileCol>4149053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5115481</MinTileRow>
            <MaxTileRow>5453068</MaxTileRow>
            <MinTileCol>8068447</MinTileCol>
            <MaxTileCol>8298107</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10230962</MinTileRow>
            <MaxTileRow>10906137</MaxTileRow>
            <MinTileCol>16136895</MinTileCol>
            <MaxTileCol>16596215</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20461924</MinTileRow>
            <MaxTileRow>21812274</MaxTileRow>
            <MinTileCol>32273791</MinTileCol>
            <MaxTileCol>33192431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40923848</MinTileRow>
            <MaxTileRow>43624549</MaxTileRow>
            <MinTileCol>64547583</MinTileCol>
            <MaxTileCol>66384863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81847696</MinTileRow>
            <MaxTileRow>87249099</MaxTileRow>
            <MinTileCol>129095166</MinTileCol>
            <MaxTileCol>132769727</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>163695392</MinTileRow>
            <MaxTileRow>174498198</MaxTileRow>
            <MinTileCol>258190333</MinTileCol>
            <MaxTileCol>265539454</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>327390784</MinTileRow>
            <MaxTileRow>348996396</MaxTileRow>
            <MinTileCol>516380666</MinTileCol>
            <MaxTileCol>531078908</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>654781569</MinTileRow>
            <MaxTileRow>697992793</MaxTileRow>
            <MinTileCol>1032761332</MinTileCol>
            <MaxTileCol>1062157816</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:heat_pump_location_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:heat_pump_location_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:heat_pump_location_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:heat_pump_location_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:heat_pump_location_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:heat_pump_location_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:heat_pump_location_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:heat_pump_location_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:heat_pump_location_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:heat_pump_location_view/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:heat_pump_location_view/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_median_0_10</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_median_0_10</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_median_0_10" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_0_10/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_0_10/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>groundwater-dev</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>174.85195925364434 -40.73110991138067</ows:LowerCorner>
        <ows:UpperCorner>176.2536030815573 -39.79654484186884</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:groundwater-dev</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw:twotw_groundwater_updated</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=151&amp;height=640&amp;layer=twotw%3Agroundwater-dev" width="151" height="640"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>185</MaxTileRow>
            <MinTileCol>504</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>369</MinTileRow>
            <MaxTileRow>371</MaxTileRow>
            <MinTileCol>1009</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>738</MinTileRow>
            <MaxTileRow>743</MaxTileRow>
            <MinTileCol>2018</MinTileCol>
            <MaxTileCol>2026</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1476</MinTileRow>
            <MaxTileRow>1487</MaxTileRow>
            <MinTileCol>4037</MinTileCol>
            <MaxTileCol>4053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2953</MinTileRow>
            <MaxTileRow>2974</MaxTileRow>
            <MinTileCol>8074</MinTileCol>
            <MaxTileCol>8106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5907</MinTileRow>
            <MaxTileRow>5949</MaxTileRow>
            <MinTileCol>16149</MinTileCol>
            <MaxTileCol>16213</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11814</MinTileRow>
            <MaxTileRow>11899</MaxTileRow>
            <MinTileCol>32299</MinTileCol>
            <MaxTileCol>32426</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23628</MinTileRow>
            <MaxTileRow>23798</MaxTileRow>
            <MinTileCol>64598</MinTileCol>
            <MaxTileCol>64853</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47257</MinTileRow>
            <MaxTileRow>47597</MaxTileRow>
            <MinTileCol>129197</MinTileCol>
            <MaxTileCol>129707</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94514</MinTileRow>
            <MaxTileRow>95195</MaxTileRow>
            <MinTileCol>258395</MinTileCol>
            <MaxTileCol>259415</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>189029</MinTileRow>
            <MaxTileRow>190390</MaxTileRow>
            <MinTileCol>516790</MinTileCol>
            <MaxTileCol>518831</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>378059</MinTileRow>
            <MaxTileRow>380781</MaxTileRow>
            <MinTileCol>1033581</MinTileCol>
            <MaxTileCol>1037663</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>756119</MinTileRow>
            <MaxTileRow>761563</MaxTileRow>
            <MinTileCol>2067162</MinTileCol>
            <MaxTileCol>2075327</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1512239</MinTileRow>
            <MaxTileRow>1523127</MaxTileRow>
            <MinTileCol>4134324</MinTileCol>
            <MaxTileCol>4150655</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>159</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>319</MaxTileRow>
            <MinTileCol>504</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>635</MinTileRow>
            <MaxTileRow>639</MaxTileRow>
            <MinTileCol>1009</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1271</MinTileRow>
            <MaxTileRow>1278</MaxTileRow>
            <MinTileCol>2018</MinTileCol>
            <MaxTileCol>2026</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2542</MinTileRow>
            <MaxTileRow>2556</MaxTileRow>
            <MinTileCol>4037</MinTileCol>
            <MaxTileCol>4053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5084</MinTileRow>
            <MaxTileRow>5112</MaxTileRow>
            <MinTileCol>8074</MinTileCol>
            <MaxTileCol>8106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10169</MinTileRow>
            <MaxTileRow>10225</MaxTileRow>
            <MinTileCol>16149</MinTileCol>
            <MaxTileCol>16213</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20338</MinTileRow>
            <MaxTileRow>20450</MaxTileRow>
            <MinTileCol>32299</MinTileCol>
            <MaxTileCol>32426</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40677</MinTileRow>
            <MaxTileRow>40900</MaxTileRow>
            <MinTileCol>64598</MinTileCol>
            <MaxTileCol>64853</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81354</MinTileRow>
            <MaxTileRow>81800</MaxTileRow>
            <MinTileCol>129197</MinTileCol>
            <MaxTileCol>129707</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162708</MinTileRow>
            <MaxTileRow>163600</MaxTileRow>
            <MinTileCol>258395</MinTileCol>
            <MaxTileCol>259415</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>325417</MinTileRow>
            <MaxTileRow>327200</MaxTileRow>
            <MinTileCol>516790</MinTileCol>
            <MaxTileCol>518831</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>650834</MinTileRow>
            <MaxTileRow>654401</MaxTileRow>
            <MinTileCol>1033581</MinTileCol>
            <MaxTileCol>1037663</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1301669</MinTileRow>
            <MaxTileRow>1308803</MaxTileRow>
            <MinTileCol>2067162</MinTileCol>
            <MaxTileCol>2075327</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2603338</MinTileRow>
            <MaxTileRow>2617607</MaxTileRow>
            <MinTileCol>4134324</MinTileCol>
            <MaxTileCol>4150655</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5206676</MinTileRow>
            <MaxTileRow>5235215</MaxTileRow>
            <MinTileCol>8268649</MinTileCol>
            <MaxTileCol>8301310</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10413352</MinTileRow>
            <MaxTileRow>10470430</MaxTileRow>
            <MinTileCol>16537299</MinTileCol>
            <MaxTileCol>16602621</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20826705</MinTileRow>
            <MaxTileRow>20940861</MaxTileRow>
            <MinTileCol>33074599</MinTileCol>
            <MaxTileCol>33205242</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41653410</MinTileRow>
            <MaxTileRow>41881723</MaxTileRow>
            <MinTileCol>66149199</MinTileCol>
            <MaxTileCol>66410485</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83306820</MinTileRow>
            <MaxTileRow>83763446</MaxTileRow>
            <MinTileCol>132298399</MinTileCol>
            <MaxTileCol>132820970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166613641</MinTileRow>
            <MaxTileRow>167526893</MaxTileRow>
            <MinTileCol>264596798</MinTileCol>
            <MaxTileCol>265641940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>333227283</MinTileRow>
            <MaxTileRow>335053786</MaxTileRow>
            <MinTileCol>529193597</MinTileCol>
            <MaxTileCol>531283880</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>666454566</MinTileRow>
            <MaxTileRow>670107573</MaxTileRow>
            <MinTileCol>1058387194</MinTileCol>
            <MaxTileCol>1062567760</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater-dev/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater-dev/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater-dev/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater-dev/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater-dev/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater-dev/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater-dev/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater-dev/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater-dev/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater-dev/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater-dev/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_AKL</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-178.83300003 -77.44023005</ows:LowerCorner>
        <ows:UpperCorner>178.65031629701298 21.57829993</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_AKL</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_auckland</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_AKL" 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>0</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>3</MinTileRow>
            <MaxTileRow>7</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>14</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>29</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>59</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>119</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>97</MinTileRow>
            <MaxTileRow>238</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>194</MinTileRow>
            <MaxTileRow>476</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>389</MinTileRow>
            <MaxTileRow>952</MaxTileRow>
            <MinTileCol>6</MinTileCol>
            <MaxTileCol>2040</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>778</MinTileRow>
            <MaxTileRow>1905</MaxTileRow>
            <MinTileCol>13</MinTileCol>
            <MaxTileCol>4080</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>1556</MinTileRow>
            <MaxTileRow>3810</MaxTileRow>
            <MinTileCol>26</MinTileCol>
            <MaxTileCol>8161</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>3113</MinTileRow>
            <MaxTileRow>7620</MaxTileRow>
            <MinTileCol>53</MinTileCol>
            <MaxTileCol>16322</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>6227</MinTileRow>
            <MaxTileRow>15240</MaxTileRow>
            <MinTileCol>106</MinTileCol>
            <MaxTileCol>32645</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>12455</MinTileRow>
            <MaxTileRow>30481</MaxTileRow>
            <MinTileCol>212</MinTileCol>
            <MaxTileCol>65290</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>24911</MinTileRow>
            <MaxTileRow>60963</MaxTileRow>
            <MinTileCol>424</MinTileCol>
            <MaxTileCol>130580</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>49823</MinTileRow>
            <MaxTileRow>121926</MaxTileRow>
            <MinTileCol>849</MinTileCol>
            <MaxTileCol>261161</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>99646</MinTileRow>
            <MaxTileRow>243852</MaxTileRow>
            <MinTileCol>1699</MinTileCol>
            <MaxTileCol>522322</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>199292</MinTileRow>
            <MaxTileRow>487705</MaxTileRow>
            <MinTileCol>3399</MinTileCol>
            <MaxTileCol>1044644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>398585</MinTileRow>
            <MaxTileRow>975410</MaxTileRow>
            <MinTileCol>6798</MinTileCol>
            <MaxTileCol>2089289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>797170</MinTileRow>
            <MaxTileRow>1950820</MaxTileRow>
            <MinTileCol>13596</MinTileCol>
            <MaxTileCol>4178579</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>0</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>3</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>7</MinTileRow>
            <MaxTileRow>13</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>14</MinTileRow>
            <MaxTileRow>27</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>28</MinTileRow>
            <MaxTileRow>54</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>56</MinTileRow>
            <MaxTileRow>108</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>112</MinTileRow>
            <MaxTileRow>217</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>224</MinTileRow>
            <MaxTileRow>435</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>449</MinTileRow>
            <MaxTileRow>871</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>898</MinTileRow>
            <MaxTileRow>1743</MaxTileRow>
            <MinTileCol>6</MinTileCol>
            <MaxTileCol>2040</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>1796</MinTileRow>
            <MaxTileRow>3486</MaxTileRow>
            <MinTileCol>13</MinTileCol>
            <MaxTileCol>4080</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>3592</MinTileRow>
            <MaxTileRow>6973</MaxTileRow>
            <MinTileCol>26</MinTileCol>
            <MaxTileCol>8161</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>7185</MinTileRow>
            <MaxTileRow>13946</MaxTileRow>
            <MinTileCol>53</MinTileCol>
            <MaxTileCol>16322</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>14371</MinTileRow>
            <MaxTileRow>27893</MaxTileRow>
            <MinTileCol>106</MinTileCol>
            <MaxTileCol>32645</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>28743</MinTileRow>
            <MaxTileRow>55786</MaxTileRow>
            <MinTileCol>212</MinTileCol>
            <MaxTileCol>65290</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>57486</MinTileRow>
            <MaxTileRow>111572</MaxTileRow>
            <MinTileCol>424</MinTileCol>
            <MaxTileCol>130580</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>114973</MinTileRow>
            <MaxTileRow>223145</MaxTileRow>
            <MinTileCol>849</MinTileCol>
            <MaxTileCol>261161</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>229947</MinTileRow>
            <MaxTileRow>446291</MaxTileRow>
            <MinTileCol>1699</MinTileCol>
            <MaxTileCol>522322</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>459895</MinTileRow>
            <MaxTileRow>892582</MaxTileRow>
            <MinTileCol>3399</MinTileCol>
            <MaxTileCol>1044644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>919791</MinTileRow>
            <MaxTileRow>1785164</MaxTileRow>
            <MinTileCol>6798</MinTileCol>
            <MaxTileCol>2089289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>1839583</MinTileRow>
            <MaxTileRow>3570328</MaxTileRow>
            <MinTileCol>13596</MinTileCol>
            <MaxTileCol>4178579</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>3679167</MinTileRow>
            <MaxTileRow>7140656</MaxTileRow>
            <MinTileCol>27193</MinTileCol>
            <MaxTileCol>8357158</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>7358334</MinTileRow>
            <MaxTileRow>14281313</MaxTileRow>
            <MinTileCol>54386</MinTileCol>
            <MaxTileCol>16714316</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>14716669</MinTileRow>
            <MaxTileRow>28562627</MaxTileRow>
            <MinTileCol>108772</MinTileCol>
            <MaxTileCol>33428632</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>29433338</MinTileRow>
            <MaxTileRow>57125254</MaxTileRow>
            <MinTileCol>217544</MinTileCol>
            <MaxTileCol>66857264</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>58866677</MinTileRow>
            <MaxTileRow>114250508</MaxTileRow>
            <MinTileCol>435089</MinTileCol>
            <MaxTileCol>133714529</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>117733354</MinTileRow>
            <MaxTileRow>228501016</MaxTileRow>
            <MinTileCol>870178</MinTileCol>
            <MaxTileCol>267429058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>235466708</MinTileRow>
            <MaxTileRow>457002033</MaxTileRow>
            <MinTileCol>1740356</MinTileCol>
            <MaxTileCol>534858117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>470933417</MinTileRow>
            <MaxTileRow>914004067</MaxTileRow>
            <MinTileCol>3480712</MinTileCol>
            <MaxTileCol>1069716235</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_AKL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_AKL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_AKL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_AKL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_AKL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_AKL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_AKL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_AKL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_AKL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_AKL/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_AKL/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>coast_1m</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.26684207442347 -47.41094588266178</ows:LowerCorner>
        <ows:UpperCorner>179.48308183891515 -34.01455604994557</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:coast_1m</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:coast_1m</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Acoast_1m" 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>352</MinTileRow>
            <MaxTileRow>390</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>705</MinTileRow>
            <MaxTileRow>781</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1411</MinTileRow>
            <MaxTileRow>1563</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4090</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2822</MinTileRow>
            <MaxTileRow>3126</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8180</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5644</MinTileRow>
            <MaxTileRow>6253</MaxTileRow>
            <MinTileCol>15758</MinTileCol>
            <MaxTileCol>16360</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11288</MinTileRow>
            <MaxTileRow>12507</MaxTileRow>
            <MinTileCol>31517</MinTileCol>
            <MaxTileCol>32720</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22576</MinTileRow>
            <MaxTileRow>25014</MaxTileRow>
            <MinTileCol>63035</MinTileCol>
            <MaxTileCol>65441</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45152</MinTileRow>
            <MaxTileRow>50029</MaxTileRow>
            <MinTileCol>126071</MinTileCol>
            <MaxTileCol>130883</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90304</MinTileRow>
            <MaxTileRow>100059</MaxTileRow>
            <MinTileCol>252143</MinTileCol>
            <MaxTileCol>261767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180609</MinTileRow>
            <MaxTileRow>200119</MaxTileRow>
            <MinTileCol>504287</MinTileCol>
            <MaxTileCol>523535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361218</MinTileRow>
            <MaxTileRow>400238</MaxTileRow>
            <MinTileCol>1008575</MinTileCol>
            <MaxTileCol>1047070</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>722437</MinTileRow>
            <MaxTileRow>800476</MaxTileRow>
            <MinTileCol>2017150</MinTileCol>
            <MaxTileCol>2094140</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1444874</MinTileRow>
            <MaxTileRow>1600953</MaxTileRow>
            <MinTileCol>4034301</MinTileCol>
            <MaxTileCol>4188281</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>614</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1331</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2459</MinTileRow>
            <MaxTileRow>2662</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4090</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4919</MinTileRow>
            <MaxTileRow>5324</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8180</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9839</MinTileRow>
            <MaxTileRow>10648</MaxTileRow>
            <MinTileCol>15758</MinTileCol>
            <MaxTileCol>16360</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19679</MinTileRow>
            <MaxTileRow>21297</MaxTileRow>
            <MinTileCol>31517</MinTileCol>
            <MaxTileCol>32720</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39359</MinTileRow>
            <MaxTileRow>42595</MaxTileRow>
            <MinTileCol>63035</MinTileCol>
            <MaxTileCol>65441</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78719</MinTileRow>
            <MaxTileRow>85190</MaxTileRow>
            <MinTileCol>126071</MinTileCol>
            <MaxTileCol>130883</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157438</MinTileRow>
            <MaxTileRow>170381</MaxTileRow>
            <MinTileCol>252143</MinTileCol>
            <MaxTileCol>261767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314877</MinTileRow>
            <MaxTileRow>340763</MaxTileRow>
            <MinTileCol>504287</MinTileCol>
            <MaxTileCol>523535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629754</MinTileRow>
            <MaxTileRow>681526</MaxTileRow>
            <MinTileCol>1008575</MinTileCol>
            <MaxTileCol>1047070</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1259508</MinTileRow>
            <MaxTileRow>1363052</MaxTileRow>
            <MinTileCol>2017150</MinTileCol>
            <MaxTileCol>2094140</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2519016</MinTileRow>
            <MaxTileRow>2726104</MaxTileRow>
            <MinTileCol>4034301</MinTileCol>
            <MaxTileCol>4188281</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5038032</MinTileRow>
            <MaxTileRow>5452209</MaxTileRow>
            <MinTileCol>8068602</MinTileCol>
            <MaxTileCol>8376562</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10076065</MinTileRow>
            <MaxTileRow>10904419</MaxTileRow>
            <MinTileCol>16137204</MinTileCol>
            <MaxTileCol>16753125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20152130</MinTileRow>
            <MaxTileRow>21808838</MaxTileRow>
            <MinTileCol>32274408</MinTileCol>
            <MaxTileCol>33506251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40304260</MinTileRow>
            <MaxTileRow>43617677</MaxTileRow>
            <MinTileCol>64548817</MinTileCol>
            <MaxTileCol>67012503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80608521</MinTileRow>
            <MaxTileRow>87235354</MaxTileRow>
            <MinTileCol>129097635</MinTileCol>
            <MaxTileCol>134025006</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161217043</MinTileRow>
            <MaxTileRow>174470709</MaxTileRow>
            <MinTileCol>258195271</MinTileCol>
            <MaxTileCol>268050013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322434086</MinTileRow>
            <MaxTileRow>348941419</MaxTileRow>
            <MinTileCol>516390542</MinTileCol>
            <MaxTileCol>536100027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644868173</MinTileRow>
            <MaxTileRow>697882839</MaxTileRow>
            <MinTileCol>1032781085</MinTileCol>
            <MaxTileCol>1072200055</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coast_1m/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coast_1m/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coast_1m/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coast_1m/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coast_1m/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coast_1m/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coast_1m/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coast_1m/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coast_1m/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coast_1m/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:coast_1m/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>v_all_features</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-177.992261029438 -46.4180423705066</ows:LowerCorner>
        <ows:UpperCorner>180.0 -12.7119809472943</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>ggw:v_all_features</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>point</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=ggw%3Av_all_features" 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>4</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>18</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>36</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>73</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>146</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>292</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>5</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>584</MinTileRow>
            <MaxTileRow>776</MaxTileRow>
            <MinTileCol>11</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1168</MinTileRow>
            <MaxTileRow>1552</MaxTileRow>
            <MinTileCol>22</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2337</MinTileRow>
            <MaxTileRow>3104</MaxTileRow>
            <MinTileCol>45</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>4674</MinTileRow>
            <MaxTileRow>6208</MaxTileRow>
            <MinTileCol>91</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>9349</MinTileRow>
            <MaxTileRow>12417</MaxTileRow>
            <MinTileCol>182</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>18698</MinTileRow>
            <MaxTileRow>24834</MaxTileRow>
            <MinTileCol>365</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>37396</MinTileRow>
            <MaxTileRow>49668</MaxTileRow>
            <MinTileCol>730</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>74792</MinTileRow>
            <MaxTileRow>99336</MaxTileRow>
            <MinTileCol>1461</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>149585</MinTileRow>
            <MaxTileRow>198673</MaxTileRow>
            <MinTileCol>2923</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>299170</MinTileRow>
            <MaxTileRow>397346</MaxTileRow>
            <MinTileCol>5847</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>598340</MinTileRow>
            <MaxTileRow>794692</MaxTileRow>
            <MinTileCol>11695</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1196681</MinTileRow>
            <MaxTileRow>1589385</MaxTileRow>
            <MinTileCol>23391</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>8</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>17</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>34</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>68</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>137</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>274</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>548</MinTileRow>
            <MaxTileRow>661</MaxTileRow>
            <MinTileCol>5</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1096</MinTileRow>
            <MaxTileRow>1322</MaxTileRow>
            <MinTileCol>11</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2193</MinTileRow>
            <MaxTileRow>2645</MaxTileRow>
            <MinTileCol>22</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4387</MinTileRow>
            <MaxTileRow>5291</MaxTileRow>
            <MinTileCol>45</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>8775</MinTileRow>
            <MaxTileRow>10582</MaxTileRow>
            <MinTileCol>91</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>17550</MinTileRow>
            <MaxTileRow>21165</MaxTileRow>
            <MinTileCol>182</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>35101</MinTileRow>
            <MaxTileRow>42330</MaxTileRow>
            <MinTileCol>365</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>70202</MinTileRow>
            <MaxTileRow>84661</MaxTileRow>
            <MinTileCol>730</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>140405</MinTileRow>
            <MaxTileRow>169323</MaxTileRow>
            <MinTileCol>1461</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>280810</MinTileRow>
            <MaxTileRow>338646</MaxTileRow>
            <MinTileCol>2923</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>561621</MinTileRow>
            <MaxTileRow>677292</MaxTileRow>
            <MinTileCol>5847</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1123243</MinTileRow>
            <MaxTileRow>1354584</MaxTileRow>
            <MinTileCol>11695</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2246487</MinTileRow>
            <MaxTileRow>2709169</MaxTileRow>
            <MinTileCol>23391</MinTileCol>
            <MaxTileCol>4194303</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>4492975</MinTileRow>
            <MaxTileRow>5418338</MaxTileRow>
            <MinTileCol>46783</MinTileCol>
            <MaxTileCol>8388607</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>8985950</MinTileRow>
            <MaxTileRow>10836676</MaxTileRow>
            <MinTileCol>93567</MinTileCol>
            <MaxTileCol>16777215</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>17971900</MinTileRow>
            <MaxTileRow>21673352</MaxTileRow>
            <MinTileCol>187134</MinTileCol>
            <MaxTileCol>33554431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>35943800</MinTileRow>
            <MaxTileRow>43346705</MaxTileRow>
            <MinTileCol>374269</MinTileCol>
            <MaxTileCol>67108863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>71887601</MinTileRow>
            <MaxTileRow>86693410</MaxTileRow>
            <MinTileCol>748539</MinTileCol>
            <MaxTileCol>134217727</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>143775203</MinTileRow>
            <MaxTileRow>173386820</MaxTileRow>
            <MinTileCol>1497078</MinTileCol>
            <MaxTileCol>268435455</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>287550406</MinTileRow>
            <MaxTileRow>346773640</MaxTileRow>
            <MinTileCol>2994157</MinTileCol>
            <MaxTileCol>536870911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>575100812</MinTileRow>
            <MaxTileRow>693547281</MaxTileRow>
            <MinTileCol>5988314</MinTileCol>
            <MaxTileCol>1073741823</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:v_all_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:v_all_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:v_all_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:v_all_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:v_all_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:v_all_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:v_all_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:v_all_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:v_all_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:v_all_features/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:v_all_features/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_mean_20_30</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_mean_20_30</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_mean_20_30" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_20_30/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_20_30/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>pg_germ_site_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-176.7856667 -46.93159863</ows:LowerCorner>
        <ows:UpperCorner>178.47717526563068 -34.39715571157692</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:pg_germ_site_view</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:germ_sites</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=133&amp;height=560&amp;layer=gns%3Apg_germ_site_view" width="133" height="560"/>
      </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>1</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>4</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>389</MaxTileRow>
            <MinTileCol>9</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>707</MinTileRow>
            <MaxTileRow>778</MaxTileRow>
            <MinTileCol>18</MinTileCol>
            <MaxTileCol>2039</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1415</MinTileRow>
            <MaxTileRow>1557</MaxTileRow>
            <MinTileCol>36</MinTileCol>
            <MaxTileCol>4078</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2830</MinTileRow>
            <MaxTileRow>3115</MaxTileRow>
            <MinTileCol>73</MinTileCol>
            <MaxTileCol>8157</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5661</MinTileRow>
            <MaxTileRow>6231</MaxTileRow>
            <MinTileCol>146</MinTileCol>
            <MaxTileCol>16314</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11322</MinTileRow>
            <MaxTileRow>12463</MaxTileRow>
            <MinTileCol>292</MinTileCol>
            <MaxTileCol>32629</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22645</MinTileRow>
            <MaxTileRow>24927</MaxTileRow>
            <MinTileCol>585</MinTileCol>
            <MaxTileCol>65258</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45291</MinTileRow>
            <MaxTileRow>49855</MaxTileRow>
            <MinTileCol>1170</MinTileCol>
            <MaxTileCol>130517</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90583</MinTileRow>
            <MaxTileRow>99710</MaxTileRow>
            <MinTileCol>2340</MinTileCol>
            <MaxTileCol>261035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>181166</MinTileRow>
            <MaxTileRow>199421</MaxTileRow>
            <MinTileCol>4681</MinTileCol>
            <MaxTileCol>522070</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>362332</MinTileRow>
            <MaxTileRow>398842</MaxTileRow>
            <MinTileCol>9362</MinTileCol>
            <MaxTileCol>1044140</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>724665</MinTileRow>
            <MaxTileRow>797684</MaxTileRow>
            <MinTileCol>18724</MinTileCol>
            <MaxTileCol>2088280</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1449331</MinTileRow>
            <MaxTileRow>1595368</MaxTileRow>
            <MinTileCol>37449</MinTileCol>
            <MaxTileCol>4176561</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>77</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>308</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>4</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>616</MinTileRow>
            <MaxTileRow>663</MaxTileRow>
            <MinTileCol>9</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1232</MinTileRow>
            <MaxTileRow>1327</MaxTileRow>
            <MinTileCol>18</MinTileCol>
            <MaxTileCol>2039</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2465</MinTileRow>
            <MaxTileRow>2654</MaxTileRow>
            <MinTileCol>36</MinTileCol>
            <MaxTileCol>4078</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4930</MinTileRow>
            <MaxTileRow>5308</MaxTileRow>
            <MinTileCol>73</MinTileCol>
            <MaxTileCol>8157</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9860</MinTileRow>
            <MaxTileRow>10616</MaxTileRow>
            <MinTileCol>146</MinTileCol>
            <MaxTileCol>16314</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19721</MinTileRow>
            <MaxTileRow>21233</MaxTileRow>
            <MinTileCol>292</MinTileCol>
            <MaxTileCol>32629</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39443</MinTileRow>
            <MaxTileRow>42467</MaxTileRow>
            <MinTileCol>585</MinTileCol>
            <MaxTileCol>65258</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78887</MinTileRow>
            <MaxTileRow>84934</MaxTileRow>
            <MinTileCol>1170</MinTileCol>
            <MaxTileCol>130517</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157775</MinTileRow>
            <MaxTileRow>169868</MaxTileRow>
            <MinTileCol>2340</MinTileCol>
            <MaxTileCol>261035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315550</MinTileRow>
            <MaxTileRow>339736</MaxTileRow>
            <MinTileCol>4681</MinTileCol>
            <MaxTileCol>522070</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>631101</MinTileRow>
            <MaxTileRow>679472</MaxTileRow>
            <MinTileCol>9362</MinTileCol>
            <MaxTileCol>1044140</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1262203</MinTileRow>
            <MaxTileRow>1358944</MaxTileRow>
            <MinTileCol>18724</MinTileCol>
            <MaxTileCol>2088280</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2524406</MinTileRow>
            <MaxTileRow>2717889</MaxTileRow>
            <MinTileCol>37449</MinTileCol>
            <MaxTileCol>4176561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5048812</MinTileRow>
            <MaxTileRow>5435779</MaxTileRow>
            <MinTileCol>74899</MinTileCol>
            <MaxTileCol>8353123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10097625</MinTileRow>
            <MaxTileRow>10871558</MaxTileRow>
            <MinTileCol>149798</MinTileCol>
            <MaxTileCol>16706247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20195250</MinTileRow>
            <MaxTileRow>21743116</MaxTileRow>
            <MinTileCol>299597</MinTileCol>
            <MaxTileCol>33412494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40390500</MinTileRow>
            <MaxTileRow>43486232</MaxTileRow>
            <MinTileCol>599195</MinTileCol>
            <MaxTileCol>66824988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80781000</MinTileRow>
            <MaxTileRow>86972464</MaxTileRow>
            <MinTileCol>1198390</MinTileCol>
            <MaxTileCol>133649977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161562001</MinTileRow>
            <MaxTileRow>173944928</MaxTileRow>
            <MinTileCol>2396780</MinTileCol>
            <MaxTileCol>267299955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>323124002</MinTileRow>
            <MaxTileRow>347889857</MaxTileRow>
            <MinTileCol>4793561</MinTileCol>
            <MaxTileCol>534599911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>646248004</MinTileRow>
            <MaxTileRow>695779715</MaxTileRow>
            <MinTileCol>9587122</MinTileCol>
            <MaxTileCol>1069199822</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_germ_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_germ_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_germ_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_germ_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_germ_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_germ_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_germ_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_germ_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_germ_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_germ_site_view/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_germ_site_view/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>GIS.REGIONAL_COUNCIL_CLIP_SIMP</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.26684207442347 -47.410949604525925</ows:LowerCorner>
        <ows:UpperCorner>179.4525149142857 -34.26446843949737</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:GIS.REGIONAL_COUNCIL_CLIP_SIMP</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AGIS.REGIONAL_COUNCIL_CLIP_SIMP" 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>11310</MinTileRow>
            <MaxTileRow>12507</MaxTileRow>
            <MinTileCol>31517</MinTileCol>
            <MaxTileCol>32718</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22621</MinTileRow>
            <MaxTileRow>25014</MaxTileRow>
            <MinTileCol>63035</MinTileCol>
            <MaxTileCol>65436</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45243</MinTileRow>
            <MaxTileRow>50029</MaxTileRow>
            <MinTileCol>126071</MinTileCol>
            <MaxTileCol>130872</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90486</MinTileRow>
            <MaxTileRow>100059</MaxTileRow>
            <MinTileCol>252143</MinTileCol>
            <MaxTileCol>261745</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180973</MinTileRow>
            <MaxTileRow>200119</MaxTileRow>
            <MinTileCol>504287</MinTileCol>
            <MaxTileCol>523490</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361946</MinTileRow>
            <MaxTileRow>400238</MaxTileRow>
            <MinTileCol>1008575</MinTileCol>
            <MaxTileCol>1046981</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>723892</MinTileRow>
            <MaxTileRow>800476</MaxTileRow>
            <MinTileCol>2017150</MinTileCol>
            <MaxTileCol>2093962</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1447785</MinTileRow>
            <MaxTileRow>1600953</MaxTileRow>
            <MinTileCol>4034301</MinTileCol>
            <MaxTileCol>4187925</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>10648</MaxTileRow>
            <MinTileCol>15758</MinTileCol>
            <MaxTileCol>16359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19707</MinTileRow>
            <MaxTileRow>21297</MaxTileRow>
            <MinTileCol>31517</MinTileCol>
            <MaxTileCol>32718</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39414</MinTileRow>
            <MaxTileRow>42595</MaxTileRow>
            <MinTileCol>63035</MinTileCol>
            <MaxTileCol>65436</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78829</MinTileRow>
            <MaxTileRow>85190</MaxTileRow>
            <MinTileCol>126071</MinTileCol>
            <MaxTileCol>130872</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157658</MinTileRow>
            <MaxTileRow>170381</MaxTileRow>
            <MinTileCol>252143</MinTileCol>
            <MaxTileCol>261745</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315316</MinTileRow>
            <MaxTileRow>340763</MaxTileRow>
            <MinTileCol>504287</MinTileCol>
            <MaxTileCol>523490</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630633</MinTileRow>
            <MaxTileRow>681526</MaxTileRow>
            <MinTileCol>1008575</MinTileCol>
            <MaxTileCol>1046981</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1261267</MinTileRow>
            <MaxTileRow>1363052</MaxTileRow>
            <MinTileCol>2017150</MinTileCol>
            <MaxTileCol>2093962</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2522534</MinTileRow>
            <MaxTileRow>2726104</MaxTileRow>
            <MinTileCol>4034301</MinTileCol>
            <MaxTileCol>4187925</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5045068</MinTileRow>
            <MaxTileRow>5452209</MaxTileRow>
            <MinTileCol>8068602</MinTileCol>
            <MaxTileCol>8375850</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10090136</MinTileRow>
            <MaxTileRow>10904419</MaxTileRow>
            <MinTileCol>16137204</MinTileCol>
            <MaxTileCol>16751701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20180273</MinTileRow>
            <MaxTileRow>21808839</MaxTileRow>
            <MinTileCol>32274408</MinTileCol>
            <MaxTileCol>33503402</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40360547</MinTileRow>
            <MaxTileRow>43617678</MaxTileRow>
            <MinTileCol>64548817</MinTileCol>
            <MaxTileCol>67006805</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80721095</MinTileRow>
            <MaxTileRow>87235356</MaxTileRow>
            <MinTileCol>129097635</MinTileCol>
            <MaxTileCol>134013610</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161442190</MinTileRow>
            <MaxTileRow>174470713</MaxTileRow>
            <MinTileCol>258195271</MinTileCol>
            <MaxTileCol>268027221</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322884381</MinTileRow>
            <MaxTileRow>348941427</MaxTileRow>
            <MinTileCol>516390542</MinTileCol>
            <MaxTileCol>536054443</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645768763</MinTileRow>
            <MaxTileRow>697882855</MaxTileRow>
            <MinTileCol>1032781085</MinTileCol>
            <MaxTileCol>1072108886</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.REGIONAL_COUNCIL_CLIP_SIMP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.REGIONAL_COUNCIL_CLIP_SIMP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.REGIONAL_COUNCIL_CLIP_SIMP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.REGIONAL_COUNCIL_CLIP_SIMP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.REGIONAL_COUNCIL_CLIP_SIMP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.REGIONAL_COUNCIL_CLIP_SIMP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.REGIONAL_COUNCIL_CLIP_SIMP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.REGIONAL_COUNCIL_CLIP_SIMP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.REGIONAL_COUNCIL_CLIP_SIMP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.REGIONAL_COUNCIL_CLIP_SIMP/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.REGIONAL_COUNCIL_CLIP_SIMP/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>GERM_ERML_VIEW_ORA</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:GERM_ERML_VIEW_ORA</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:germ_erml_view</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=77&amp;height=60&amp;layer=gns%3AGERM_ERML_VIEW_ORA" width="77" height="60"/>
      </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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_ORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_ORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_ORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_ORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_ORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_ORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_ORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_ORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_ORA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_ORA/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_ORA/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZ Place Names (NZGB)</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-180.0 -90.0</ows:LowerCorner>
        <ows:UpperCorner>180.0 90.0</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:data.linz.govt.nz_layer-51681</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>point</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Adata.linz.govt.nz_layer-51681" 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>NZTM</TileMatrixSet>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:data.linz.govt.nz_layer-51681/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:data.linz.govt.nz_layer-51681/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:data.linz.govt.nz_layer-51681/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:data.linz.govt.nz_layer-51681/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:data.linz.govt.nz_layer-51681/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:data.linz.govt.nz_layer-51681/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:data.linz.govt.nz_layer-51681/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:data.linz.govt.nz_layer-51681/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:data.linz.govt.nz_layer-51681/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:data.linz.govt.nz_layer-51681/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:data.linz.govt.nz_layer-51681/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_WIOF</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_WIOF</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_wiof</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_WIOF" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WIOF/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WIOF/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WIOF/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WIOF/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WIOF/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WIOF/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WIOF/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WIOF/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WIOF/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WIOF/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WIOF/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>pg_regchem_site_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:pg_regchem_site_view</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:point_blue</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Apg_regchem_site_view" width="20" height="20" minScaleDenominator="50000.0"/>
      </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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_regchem_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_regchem_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_regchem_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_regchem_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_regchem_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_regchem_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_regchem_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_regchem_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_regchem_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_regchem_site_view/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_regchem_site_view/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>MINERAL.PERMIT</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-180.0 -46.92407149724304</ows:LowerCorner>
        <ows:UpperCorner>180.0 -25.873845658830252</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:MINERAL.PERMIT</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:mineral_permit</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=118&amp;height=80&amp;layer=gns%3AMINERAL.PERMIT" width="118" height="80"/>
      </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>20</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>389</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>778</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1318</MinTileRow>
            <MaxTileRow>1557</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2636</MinTileRow>
            <MaxTileRow>3115</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5273</MinTileRow>
            <MaxTileRow>6231</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>10547</MinTileRow>
            <MaxTileRow>12463</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>21094</MinTileRow>
            <MaxTileRow>24926</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>42188</MinTileRow>
            <MaxTileRow>49852</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>84376</MinTileRow>
            <MaxTileRow>99705</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>168753</MinTileRow>
            <MaxTileRow>199410</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>337507</MinTileRow>
            <MaxTileRow>398820</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>675014</MinTileRow>
            <MaxTileRow>797640</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1350028</MinTileRow>
            <MaxTileRow>1595281</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>18</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>36</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>73</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>147</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>294</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>588</MinTileRow>
            <MaxTileRow>663</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1176</MinTileRow>
            <MaxTileRow>1327</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2352</MinTileRow>
            <MaxTileRow>2654</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4705</MinTileRow>
            <MaxTileRow>5308</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>8190</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9411</MinTileRow>
            <MaxTileRow>10616</MaxTileRow>
            <MinTileCol>4</MinTileCol>
            <MaxTileCol>16380</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>18823</MinTileRow>
            <MaxTileRow>21232</MaxTileRow>
            <MinTileCol>8</MinTileCol>
            <MaxTileCol>32761</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>37646</MinTileRow>
            <MaxTileRow>42465</MaxTileRow>
            <MinTileCol>16</MinTileCol>
            <MaxTileCol>65522</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>75293</MinTileRow>
            <MaxTileRow>84930</MaxTileRow>
            <MinTileCol>33</MinTileCol>
            <MaxTileCol>131045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>150587</MinTileRow>
            <MaxTileRow>169860</MaxTileRow>
            <MinTileCol>67</MinTileCol>
            <MaxTileCol>262090</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>301175</MinTileRow>
            <MaxTileRow>339720</MaxTileRow>
            <MinTileCol>134</MinTileCol>
            <MaxTileCol>524180</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>602351</MinTileRow>
            <MaxTileRow>679440</MaxTileRow>
            <MinTileCol>269</MinTileCol>
            <MaxTileCol>1048360</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1204702</MinTileRow>
            <MaxTileRow>1358880</MaxTileRow>
            <MinTileCol>539</MinTileCol>
            <MaxTileCol>2096721</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2409405</MinTileRow>
            <MaxTileRow>2717761</MaxTileRow>
            <MinTileCol>1079</MinTileCol>
            <MaxTileCol>4193443</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>4818810</MinTileRow>
            <MaxTileRow>5435522</MaxTileRow>
            <MinTileCol>2158</MinTileCol>
            <MaxTileCol>8386886</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>9637621</MinTileRow>
            <MaxTileRow>10871044</MaxTileRow>
            <MinTileCol>4317</MinTileCol>
            <MaxTileCol>16773772</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>19275242</MinTileRow>
            <MaxTileRow>21742088</MaxTileRow>
            <MinTileCol>8634</MinTileCol>
            <MaxTileCol>33547545</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>38550485</MinTileRow>
            <MaxTileRow>43484177</MaxTileRow>
            <MinTileCol>17268</MinTileCol>
            <MaxTileCol>67095090</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>77100970</MinTileRow>
            <MaxTileRow>86968355</MaxTileRow>
            <MinTileCol>34536</MinTileCol>
            <MaxTileCol>134190181</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>154201941</MinTileRow>
            <MaxTileRow>173936710</MaxTileRow>
            <MinTileCol>69072</MinTileCol>
            <MaxTileCol>268380362</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>308403882</MinTileRow>
            <MaxTileRow>347873420</MaxTileRow>
            <MinTileCol>138144</MinTileCol>
            <MaxTileCol>536760724</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>616807764</MinTileRow>
            <MaxTileRow>695746841</MaxTileRow>
            <MinTileCol>276289</MinTileCol>
            <MaxTileCol>1073521449</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.PERMIT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.PERMIT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.PERMIT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.PERMIT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.PERMIT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.PERMIT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.PERMIT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.PERMIT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.PERMIT/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.PERMIT/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.PERMIT/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZL_GNS_1M_Miscellaneous_Units</ows:Title>
      <ows:Abstract>This dataset is the 1:1 000 000 miscellaneous (non-geological) polygons data for New Zealand. The dataset is a product of the Geological Map of New Zealand 1: 1 000 000 project and was produced by GNS Science. The dataset is stored in an ESRI vector geodatabase and exported to Geoserver and ArcGIS Server. The dataset comprises polygons with each polygon having attributes describing its type and source. The data should not be used at scales beyond that for which it was prepared. The spatial accuracy is estimated to be no better than +/- 500 m.</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.499664306641 -46.6596755981445</ows:LowerCorner>
        <ows:UpperCorner>178.345336914062 -37.112720489502</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZL_GNS_1M_Miscellaneous_Units</ows:Identifier>
      <ows:Metadata xlink:type="simple" xlink:href="https://data.gns.cri.nz/rgmad/datadict/GMNZ1M/2014/NZL_GNS_1M_miscellaneous_polygons.html"/>
      <Style isDefault="true">
        <ows:Identifier>gns:gmnz_misc_units</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=52&amp;height=40&amp;layer=gns%3ANZL_GNS_1M_Miscellaneous_Units" width="52" height="40" minScaleDenominator="1.0" maxScaleDenominator="3000000.0"/>
      </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>45</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>90</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>180</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>361</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>723</MinTileRow>
            <MaxTileRow>777</MaxTileRow>
            <MinTileCol>1971</MinTileCol>
            <MaxTileCol>2038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1446</MinTileRow>
            <MaxTileRow>1554</MaxTileRow>
            <MinTileCol>3942</MinTileCol>
            <MaxTileCol>4077</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2892</MinTileRow>
            <MaxTileRow>3109</MaxTileRow>
            <MinTileCol>7884</MinTileCol>
            <MaxTileCol>8154</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5785</MinTileRow>
            <MaxTileRow>6219</MaxTileRow>
            <MinTileCol>15769</MinTileCol>
            <MaxTileCol>16308</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11570</MinTileRow>
            <MaxTileRow>12439</MaxTileRow>
            <MinTileCol>31539</MinTileCol>
            <MaxTileCol>32617</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23140</MinTileRow>
            <MaxTileRow>24878</MaxTileRow>
            <MinTileCol>63078</MinTileCol>
            <MaxTileCol>65234</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46280</MinTileRow>
            <MaxTileRow>49756</MaxTileRow>
            <MinTileCol>126156</MinTileCol>
            <MaxTileCol>130469</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>92560</MinTileRow>
            <MaxTileRow>99512</MaxTileRow>
            <MinTileCol>252313</MinTileCol>
            <MaxTileCol>260939</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>185121</MinTileRow>
            <MaxTileRow>199025</MaxTileRow>
            <MinTileCol>504626</MinTileCol>
            <MaxTileCol>521878</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>370242</MinTileRow>
            <MaxTileRow>398050</MaxTileRow>
            <MinTileCol>1009253</MinTileCol>
            <MaxTileCol>1043756</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>740485</MinTileRow>
            <MaxTileRow>796100</MaxTileRow>
            <MinTileCol>2018506</MinTileCol>
            <MaxTileCol>2087512</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1480970</MinTileRow>
            <MaxTileRow>1592200</MaxTileRow>
            <MinTileCol>4037013</MinTileCol>
            <MaxTileCol>4175025</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>39</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>156</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>312</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>625</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1251</MinTileRow>
            <MaxTileRow>1324</MaxTileRow>
            <MinTileCol>1971</MinTileCol>
            <MaxTileCol>2038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2503</MinTileRow>
            <MaxTileRow>2649</MaxTileRow>
            <MinTileCol>3942</MinTileCol>
            <MaxTileCol>4077</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5006</MinTileRow>
            <MaxTileRow>5299</MaxTileRow>
            <MinTileCol>7884</MinTileCol>
            <MaxTileCol>8154</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10013</MinTileRow>
            <MaxTileRow>10598</MaxTileRow>
            <MinTileCol>15769</MinTileCol>
            <MaxTileCol>16308</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20026</MinTileRow>
            <MaxTileRow>21197</MaxTileRow>
            <MinTileCol>31539</MinTileCol>
            <MaxTileCol>32617</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40053</MinTileRow>
            <MaxTileRow>42394</MaxTileRow>
            <MinTileCol>63078</MinTileCol>
            <MaxTileCol>65234</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80106</MinTileRow>
            <MaxTileRow>84789</MaxTileRow>
            <MinTileCol>126156</MinTileCol>
            <MaxTileCol>130469</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>160212</MinTileRow>
            <MaxTileRow>169578</MaxTileRow>
            <MinTileCol>252313</MinTileCol>
            <MaxTileCol>260939</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>320425</MinTileRow>
            <MaxTileRow>339157</MaxTileRow>
            <MinTileCol>504626</MinTileCol>
            <MaxTileCol>521878</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>640850</MinTileRow>
            <MaxTileRow>678315</MaxTileRow>
            <MinTileCol>1009253</MinTileCol>
            <MaxTileCol>1043756</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1281700</MinTileRow>
            <MaxTileRow>1356630</MaxTileRow>
            <MinTileCol>2018506</MinTileCol>
            <MaxTileCol>2087512</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2563400</MinTileRow>
            <MaxTileRow>2713261</MaxTileRow>
            <MinTileCol>4037013</MinTileCol>
            <MaxTileCol>4175025</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5126800</MinTileRow>
            <MaxTileRow>5426523</MaxTileRow>
            <MinTileCol>8074027</MinTileCol>
            <MaxTileCol>8350051</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10253601</MinTileRow>
            <MaxTileRow>10853047</MaxTileRow>
            <MinTileCol>16148054</MinTileCol>
            <MaxTileCol>16700103</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20507203</MinTileRow>
            <MaxTileRow>21706094</MaxTileRow>
            <MinTileCol>32296109</MinTileCol>
            <MaxTileCol>33400206</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41014406</MinTileRow>
            <MaxTileRow>43412188</MaxTileRow>
            <MinTileCol>64592219</MinTileCol>
            <MaxTileCol>66800412</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82028812</MinTileRow>
            <MaxTileRow>86824377</MaxTileRow>
            <MinTileCol>129184438</MinTileCol>
            <MaxTileCol>133600824</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>164057625</MinTileRow>
            <MaxTileRow>173648755</MaxTileRow>
            <MinTileCol>258368876</MinTileCol>
            <MaxTileCol>267201649</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>328115250</MinTileRow>
            <MaxTileRow>347297510</MaxTileRow>
            <MinTileCol>516737752</MinTileCol>
            <MaxTileCol>534403299</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>656230501</MinTileRow>
            <MaxTileRow>694595021</MaxTileRow>
            <MinTileCol>1033475504</MinTileCol>
            <MaxTileCol>1068806599</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Units/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL_GNS_1M_Miscellaneous_Units/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>af250_download</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.37241407149682 -46.59949935443541</ows:LowerCorner>
        <ows:UpperCorner>179.07534767261117 -36.8473781152114</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:af250_download</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:af250</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Aaf250_download" 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>45</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>90</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>180</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>360</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>721</MinTileRow>
            <MaxTileRow>777</MaxTileRow>
            <MinTileCol>1970</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1443</MinTileRow>
            <MaxTileRow>1554</MaxTileRow>
            <MinTileCol>3940</MinTileCol>
            <MaxTileCol>4085</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2886</MinTileRow>
            <MaxTileRow>3108</MaxTileRow>
            <MinTileCol>7881</MinTileCol>
            <MaxTileCol>8170</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5772</MinTileRow>
            <MaxTileRow>6216</MaxTileRow>
            <MinTileCol>15763</MinTileCol>
            <MaxTileCol>16341</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11545</MinTileRow>
            <MaxTileRow>12433</MaxTileRow>
            <MinTileCol>31527</MinTileCol>
            <MaxTileCol>32683</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23091</MinTileRow>
            <MaxTileRow>24867</MaxTileRow>
            <MinTileCol>63055</MinTileCol>
            <MaxTileCol>65367</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46183</MinTileRow>
            <MaxTileRow>49734</MaxTileRow>
            <MinTileCol>126110</MinTileCol>
            <MaxTileCol>130735</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>92367</MinTileRow>
            <MaxTileRow>99468</MaxTileRow>
            <MinTileCol>252220</MinTileCol>
            <MaxTileCol>261470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>184734</MinTileRow>
            <MaxTileRow>198937</MaxTileRow>
            <MinTileCol>504441</MinTileCol>
            <MaxTileCol>522941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>369469</MinTileRow>
            <MaxTileRow>397874</MaxTileRow>
            <MinTileCol>1008882</MinTileCol>
            <MaxTileCol>1045882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>738939</MinTileRow>
            <MaxTileRow>795749</MaxTileRow>
            <MinTileCol>2017765</MinTileCol>
            <MaxTileCol>2091765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1477879</MinTileRow>
            <MaxTileRow>1591499</MaxTileRow>
            <MinTileCol>4035531</MinTileCol>
            <MaxTileCol>4183531</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>39</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>156</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>312</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>624</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1249</MinTileRow>
            <MaxTileRow>1324</MaxTileRow>
            <MinTileCol>1970</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2499</MinTileRow>
            <MaxTileRow>2648</MaxTileRow>
            <MinTileCol>3940</MinTileCol>
            <MaxTileCol>4085</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4999</MinTileRow>
            <MaxTileRow>5297</MaxTileRow>
            <MinTileCol>7881</MinTileCol>
            <MaxTileCol>8170</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9998</MinTileRow>
            <MaxTileRow>10594</MaxTileRow>
            <MinTileCol>15763</MinTileCol>
            <MaxTileCol>16341</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19996</MinTileRow>
            <MaxTileRow>21189</MaxTileRow>
            <MinTileCol>31527</MinTileCol>
            <MaxTileCol>32683</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39992</MinTileRow>
            <MaxTileRow>42378</MaxTileRow>
            <MinTileCol>63055</MinTileCol>
            <MaxTileCol>65367</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79985</MinTileRow>
            <MaxTileRow>84757</MaxTileRow>
            <MinTileCol>126110</MinTileCol>
            <MaxTileCol>130735</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>159970</MinTileRow>
            <MaxTileRow>169515</MaxTileRow>
            <MinTileCol>252220</MinTileCol>
            <MaxTileCol>261470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>319941</MinTileRow>
            <MaxTileRow>339030</MaxTileRow>
            <MinTileCol>504441</MinTileCol>
            <MaxTileCol>522941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>639882</MinTileRow>
            <MaxTileRow>678060</MaxTileRow>
            <MinTileCol>1008882</MinTileCol>
            <MaxTileCol>1045882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1279765</MinTileRow>
            <MaxTileRow>1356120</MaxTileRow>
            <MinTileCol>2017765</MinTileCol>
            <MaxTileCol>2091765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2559530</MinTileRow>
            <MaxTileRow>2712240</MaxTileRow>
            <MinTileCol>4035531</MinTileCol>
            <MaxTileCol>4183531</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5119060</MinTileRow>
            <MaxTileRow>5424481</MaxTileRow>
            <MinTileCol>8071062</MinTileCol>
            <MaxTileCol>8367062</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10238121</MinTileRow>
            <MaxTileRow>10848963</MaxTileRow>
            <MinTileCol>16142124</MinTileCol>
            <MaxTileCol>16734124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20476243</MinTileRow>
            <MaxTileRow>21697926</MaxTileRow>
            <MinTileCol>32284248</MinTileCol>
            <MaxTileCol>33468248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40952487</MinTileRow>
            <MaxTileRow>43395853</MaxTileRow>
            <MinTileCol>64568497</MinTileCol>
            <MaxTileCol>66936496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81904975</MinTileRow>
            <MaxTileRow>86791707</MaxTileRow>
            <MinTileCol>129136995</MinTileCol>
            <MaxTileCol>133872992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>163809950</MinTileRow>
            <MaxTileRow>173583414</MaxTileRow>
            <MinTileCol>258273991</MinTileCol>
            <MaxTileCol>267745985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>327619900</MinTileRow>
            <MaxTileRow>347166828</MaxTileRow>
            <MinTileCol>516547982</MinTileCol>
            <MaxTileCol>535491970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>655239801</MinTileRow>
            <MaxTileRow>694333656</MaxTileRow>
            <MinTileCol>1033095965</MinTileCol>
            <MaxTileCol>1070983941</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_download/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_download/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_download/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_download/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_download/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_download/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_download/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_download/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_download/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_download/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:af250_download/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_std_layer10</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_std_layer10</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_std_layer10" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer10/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer10/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>pg_gps_site_shape_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-178.42315379 -77.85005918</ows:LowerCorner>
        <ows:UpperCorner>178.8116839286988 -29.04070473</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:pg_gps_site_shape_view</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>point</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Apg_gps_site_shape_view" 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>7</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>14</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>21</MinTileRow>
            <MaxTileRow>29</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>42</MinTileRow>
            <MaxTileRow>59</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>84</MinTileRow>
            <MaxTileRow>119</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>169</MinTileRow>
            <MaxTileRow>238</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>338</MinTileRow>
            <MaxTileRow>477</MaxTileRow>
            <MinTileCol>4</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>677</MinTileRow>
            <MaxTileRow>954</MaxTileRow>
            <MinTileCol>8</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1354</MinTileRow>
            <MaxTileRow>1909</MaxTileRow>
            <MinTileCol>17</MinTileCol>
            <MaxTileCol>4082</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2708</MinTileRow>
            <MaxTileRow>3819</MaxTileRow>
            <MinTileCol>35</MinTileCol>
            <MaxTileCol>8164</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5417</MinTileRow>
            <MaxTileRow>7639</MaxTileRow>
            <MinTileCol>71</MinTileCol>
            <MaxTileCol>16329</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>10835</MinTileRow>
            <MaxTileRow>15278</MaxTileRow>
            <MinTileCol>143</MinTileCol>
            <MaxTileCol>32659</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>21670</MinTileRow>
            <MaxTileRow>30556</MaxTileRow>
            <MinTileCol>287</MinTileCol>
            <MaxTileCol>65319</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>43341</MinTileRow>
            <MaxTileRow>61112</MaxTileRow>
            <MinTileCol>574</MinTileCol>
            <MaxTileCol>130639</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>86682</MinTileRow>
            <MaxTileRow>122224</MaxTileRow>
            <MinTileCol>1148</MinTileCol>
            <MaxTileCol>261278</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>173365</MinTileRow>
            <MaxTileRow>244449</MaxTileRow>
            <MinTileCol>2296</MinTileCol>
            <MaxTileCol>522557</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>346731</MinTileRow>
            <MaxTileRow>488898</MaxTileRow>
            <MinTileCol>4592</MinTileCol>
            <MaxTileCol>1045114</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>693462</MinTileRow>
            <MaxTileRow>977797</MaxTileRow>
            <MinTileCol>9185</MinTileCol>
            <MaxTileCol>2090229</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1386924</MinTileRow>
            <MaxTileRow>1955594</MaxTileRow>
            <MinTileCol>18371</MinTileCol>
            <MaxTileCol>4180459</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>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>13</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>18</MinTileRow>
            <MaxTileRow>27</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>37</MinTileRow>
            <MaxTileRow>54</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>74</MinTileRow>
            <MaxTileRow>109</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>149</MinTileRow>
            <MaxTileRow>219</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>299</MinTileRow>
            <MaxTileRow>438</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>598</MinTileRow>
            <MaxTileRow>877</MaxTileRow>
            <MinTileCol>4</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1196</MinTileRow>
            <MaxTileRow>1754</MaxTileRow>
            <MinTileCol>8</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2393</MinTileRow>
            <MaxTileRow>3508</MaxTileRow>
            <MinTileCol>17</MinTileCol>
            <MaxTileCol>4082</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4787</MinTileRow>
            <MaxTileRow>7016</MaxTileRow>
            <MinTileCol>35</MinTileCol>
            <MaxTileCol>8164</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9574</MinTileRow>
            <MaxTileRow>14033</MaxTileRow>
            <MinTileCol>71</MinTileCol>
            <MaxTileCol>16329</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19148</MinTileRow>
            <MaxTileRow>28067</MaxTileRow>
            <MinTileCol>143</MinTileCol>
            <MaxTileCol>32659</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>38296</MinTileRow>
            <MaxTileRow>56135</MaxTileRow>
            <MinTileCol>287</MinTileCol>
            <MaxTileCol>65319</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>76593</MinTileRow>
            <MaxTileRow>112270</MaxTileRow>
            <MinTileCol>574</MinTileCol>
            <MaxTileCol>130639</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>153187</MinTileRow>
            <MaxTileRow>224540</MaxTileRow>
            <MinTileCol>1148</MinTileCol>
            <MaxTileCol>261278</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>306374</MinTileRow>
            <MaxTileRow>449080</MaxTileRow>
            <MinTileCol>2296</MinTileCol>
            <MaxTileCol>522557</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>612748</MinTileRow>
            <MaxTileRow>898161</MaxTileRow>
            <MinTileCol>4592</MinTileCol>
            <MaxTileCol>1045114</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1225496</MinTileRow>
            <MaxTileRow>1796323</MaxTileRow>
            <MinTileCol>9185</MinTileCol>
            <MaxTileCol>2090229</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2450993</MinTileRow>
            <MaxTileRow>3592646</MaxTileRow>
            <MinTileCol>18371</MinTileCol>
            <MaxTileCol>4180459</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>4901987</MinTileRow>
            <MaxTileRow>7185292</MaxTileRow>
            <MinTileCol>36743</MinTileCol>
            <MaxTileCol>8360918</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>9803975</MinTileRow>
            <MaxTileRow>14370585</MaxTileRow>
            <MinTileCol>73486</MinTileCol>
            <MaxTileCol>16721836</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>19607951</MinTileRow>
            <MaxTileRow>28741171</MaxTileRow>
            <MinTileCol>146972</MinTileCol>
            <MaxTileCol>33443672</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>39215902</MinTileRow>
            <MaxTileRow>57482342</MaxTileRow>
            <MinTileCol>293945</MinTileCol>
            <MaxTileCol>66887345</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>78431804</MinTileRow>
            <MaxTileRow>114964684</MaxTileRow>
            <MinTileCol>587890</MinTileCol>
            <MaxTileCol>133774691</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>156863609</MinTileRow>
            <MaxTileRow>229929369</MaxTileRow>
            <MinTileCol>1175781</MinTileCol>
            <MaxTileCol>267549383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>313727218</MinTileRow>
            <MaxTileRow>459858739</MaxTileRow>
            <MinTileCol>2351563</MinTileCol>
            <MaxTileCol>535098766</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>627454436</MinTileRow>
            <MaxTileRow>919717478</MaxTileRow>
            <MinTileCol>4703126</MinTileCol>
            <MaxTileCol>1070197533</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_gps_site_shape_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_gps_site_shape_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_gps_site_shape_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_gps_site_shape_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_gps_site_shape_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_gps_site_shape_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_gps_site_shape_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_gps_site_shape_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_gps_site_shape_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_gps_site_shape_view/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_gps_site_shape_view/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>BOPRC Surface Features</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.23862663907633 -38.32512857475407</ows:LowerCorner>
        <ows:UpperCorner>176.72199847718164 -38.00349280078888</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>ggw:BOPRC_surface_features</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>point</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=ggw%3ABOPRC_surface_features" 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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>91</MinTileRow>
            <MaxTileRow>91</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>182</MinTileRow>
            <MaxTileRow>182</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>364</MinTileRow>
            <MaxTileRow>365</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>728</MinTileRow>
            <MaxTileRow>730</MaxTileRow>
            <MinTileCol>2026</MinTileCol>
            <MaxTileCol>2029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1456</MinTileRow>
            <MaxTileRow>1460</MaxTileRow>
            <MinTileCol>4053</MinTileCol>
            <MaxTileCol>4058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2912</MinTileRow>
            <MaxTileRow>2920</MaxTileRow>
            <MinTileCol>8106</MinTileCol>
            <MaxTileCol>8117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5825</MinTileRow>
            <MaxTileRow>5840</MaxTileRow>
            <MinTileCol>16212</MinTileCol>
            <MaxTileCol>16234</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11651</MinTileRow>
            <MaxTileRow>11680</MaxTileRow>
            <MinTileCol>32425</MinTileCol>
            <MaxTileCol>32469</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23302</MinTileRow>
            <MaxTileRow>23360</MaxTileRow>
            <MinTileCol>64851</MinTileCol>
            <MaxTileCol>64939</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46604</MinTileRow>
            <MaxTileRow>46721</MaxTileRow>
            <MinTileCol>129702</MinTileCol>
            <MaxTileCol>129878</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>93209</MinTileRow>
            <MaxTileRow>93443</MaxTileRow>
            <MinTileCol>259405</MinTileCol>
            <MaxTileCol>259757</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>186418</MinTileRow>
            <MaxTileRow>186887</MaxTileRow>
            <MinTileCol>518810</MinTileCol>
            <MaxTileCol>519514</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>372837</MinTileRow>
            <MaxTileRow>373774</MaxTileRow>
            <MinTileCol>1037620</MinTileCol>
            <MaxTileCol>1039028</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>745674</MinTileRow>
            <MaxTileRow>747548</MaxTileRow>
            <MinTileCol>2075240</MinTileCol>
            <MaxTileCol>2078056</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1491348</MinTileRow>
            <MaxTileRow>1495096</MaxTileRow>
            <MinTileCol>4150480</MinTileCol>
            <MaxTileCol>4156112</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>78</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>157</MinTileRow>
            <MaxTileRow>157</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>314</MinTileRow>
            <MaxTileRow>315</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>629</MinTileRow>
            <MaxTileRow>630</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1258</MinTileRow>
            <MaxTileRow>1260</MaxTileRow>
            <MinTileCol>2026</MinTileCol>
            <MaxTileCol>2029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2516</MinTileRow>
            <MaxTileRow>2520</MaxTileRow>
            <MinTileCol>4053</MinTileCol>
            <MaxTileCol>4058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5032</MinTileRow>
            <MaxTileRow>5041</MaxTileRow>
            <MinTileCol>8106</MinTileCol>
            <MaxTileCol>8117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10064</MinTileRow>
            <MaxTileRow>10083</MaxTileRow>
            <MinTileCol>16212</MinTileCol>
            <MaxTileCol>16234</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20128</MinTileRow>
            <MaxTileRow>20166</MaxTileRow>
            <MinTileCol>32425</MinTileCol>
            <MaxTileCol>32469</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40257</MinTileRow>
            <MaxTileRow>40332</MaxTileRow>
            <MinTileCol>64851</MinTileCol>
            <MaxTileCol>64939</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80515</MinTileRow>
            <MaxTileRow>80664</MaxTileRow>
            <MinTileCol>129702</MinTileCol>
            <MaxTileCol>129878</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>161030</MinTileRow>
            <MaxTileRow>161328</MaxTileRow>
            <MinTileCol>259405</MinTileCol>
            <MaxTileCol>259757</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>322061</MinTileRow>
            <MaxTileRow>322657</MaxTileRow>
            <MinTileCol>518810</MinTileCol>
            <MaxTileCol>519514</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>644123</MinTileRow>
            <MaxTileRow>645314</MaxTileRow>
            <MinTileCol>1037620</MinTileCol>
            <MaxTileCol>1039028</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1288246</MinTileRow>
            <MaxTileRow>1290629</MaxTileRow>
            <MinTileCol>2075240</MinTileCol>
            <MaxTileCol>2078056</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2576492</MinTileRow>
            <MaxTileRow>2581258</MaxTileRow>
            <MinTileCol>4150480</MinTileCol>
            <MaxTileCol>4156112</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5152984</MinTileRow>
            <MaxTileRow>5162517</MaxTileRow>
            <MinTileCol>8300961</MinTileCol>
            <MaxTileCol>8312225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10305969</MinTileRow>
            <MaxTileRow>10325034</MaxTileRow>
            <MinTileCol>16601923</MinTileCol>
            <MaxTileCol>16624450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20611939</MinTileRow>
            <MaxTileRow>20650068</MaxTileRow>
            <MinTileCol>33203846</MinTileCol>
            <MaxTileCol>33248900</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41223878</MinTileRow>
            <MaxTileRow>41300136</MaxTileRow>
            <MinTileCol>66407693</MinTileCol>
            <MaxTileCol>66497800</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82447756</MinTileRow>
            <MaxTileRow>82600272</MaxTileRow>
            <MinTileCol>132815386</MinTileCol>
            <MaxTileCol>132995600</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>164895512</MinTileRow>
            <MaxTileRow>165200545</MaxTileRow>
            <MinTileCol>265630772</MinTileCol>
            <MaxTileCol>265991200</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>329791024</MinTileRow>
            <MaxTileRow>330401090</MaxTileRow>
            <MinTileCol>531261545</MinTileCol>
            <MaxTileCol>531982401</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>659582048</MinTileRow>
            <MaxTileRow>660802180</MaxTileRow>
            <MinTileCol>1062523091</MinTileCol>
            <MaxTileCol>1063964803</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRC_surface_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRC_surface_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRC_surface_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRC_surface_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRC_surface_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRC_surface_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRC_surface_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRC_surface_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRC_surface_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRC_surface_features/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:BOPRC_surface_features/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_std_layer12</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_std_layer12</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_std_layer12" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer12/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer12/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_std_200_250</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_std_200_250</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_std_200_250" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_200_250/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_200_250/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_std_layer11</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_std_layer11</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_std_layer11" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer11/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer11/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>groundwater</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>167.5847406543163 -46.691850273914156</ows:LowerCorner>
        <ows:UpperCorner>179.21326409891793 -34.703543098641596</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:groundwater</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw:twotw_groundwater_updated</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=151&amp;height=640&amp;layer=twotw%3Agroundwater" width="151" height="640"/>
      </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>WebMercatorQuad</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>9</TileMatrix>
            <MinTileRow>308</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>10</TileMatrix>
            <MinTileRow>617</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>988</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>11</TileMatrix>
            <MinTileRow>1234</MinTileRow>
            <MaxTileRow>1325</MaxTileRow>
            <MinTileCol>1977</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>12</TileMatrix>
            <MinTileRow>2469</MinTileRow>
            <MaxTileRow>2650</MaxTileRow>
            <MinTileCol>3954</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>13</TileMatrix>
            <MinTileRow>4938</MinTileRow>
            <MaxTileRow>5300</MaxTileRow>
            <MinTileCol>7909</MinTileCol>
            <MaxTileCol>8174</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>14</TileMatrix>
            <MinTileRow>9877</MinTileRow>
            <MaxTileRow>10600</MaxTileRow>
            <MinTileCol>15818</MinTileCol>
            <MaxTileCol>16348</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>15</TileMatrix>
            <MinTileRow>19755</MinTileRow>
            <MaxTileRow>21201</MaxTileRow>
            <MinTileCol>31637</MinTileCol>
            <MaxTileCol>32696</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>16</TileMatrix>
            <MinTileRow>39511</MinTileRow>
            <MaxTileRow>42403</MaxTileRow>
            <MinTileCol>63275</MinTileCol>
            <MaxTileCol>65392</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>17</TileMatrix>
            <MinTileRow>79023</MinTileRow>
            <MaxTileRow>84806</MaxTileRow>
            <MinTileCol>126551</MinTileCol>
            <MaxTileCol>130785</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>18</TileMatrix>
            <MinTileRow>158046</MinTileRow>
            <MaxTileRow>169613</MaxTileRow>
            <MinTileCol>253103</MinTileCol>
            <MaxTileCol>261571</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>19</TileMatrix>
            <MinTileRow>316092</MinTileRow>
            <MaxTileRow>339226</MaxTileRow>
            <MinTileCol>506206</MinTileCol>
            <MaxTileCol>523142</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>20</TileMatrix>
            <MinTileRow>632185</MinTileRow>
            <MaxTileRow>678452</MaxTileRow>
            <MinTileCol>1012413</MinTileCol>
            <MaxTileCol>1046284</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>21</TileMatrix>
            <MinTileRow>1264370</MinTileRow>
            <MaxTileRow>1356904</MaxTileRow>
            <MinTileCol>2024827</MinTileCol>
            <MaxTileCol>2092568</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>22</TileMatrix>
            <MinTileRow>2528740</MinTileRow>
            <MaxTileRow>2713808</MaxTileRow>
            <MinTileCol>4049655</MinTileCol>
            <MaxTileCol>4185137</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>23</TileMatrix>
            <MinTileRow>5057480</MinTileRow>
            <MaxTileRow>5427616</MaxTileRow>
            <MinTileCol>8099311</MinTileCol>
            <MaxTileCol>8370275</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>24</TileMatrix>
            <MinTileRow>10114961</MinTileRow>
            <MaxTileRow>10855232</MaxTileRow>
            <MinTileCol>16198622</MinTileCol>
            <MaxTileCol>16740551</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <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>247</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>177</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>354</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>988</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>709</MinTileRow>
            <MaxTileRow>777</MaxTileRow>
            <MinTileCol>1977</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1418</MinTileRow>
            <MaxTileRow>1555</MaxTileRow>
            <MinTileCol>3954</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2837</MinTileRow>
            <MaxTileRow>3110</MaxTileRow>
            <MinTileCol>7909</MinTileCol>
            <MaxTileCol>8174</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5675</MinTileRow>
            <MaxTileRow>6220</MaxTileRow>
            <MinTileCol>15818</MinTileCol>
            <MaxTileCol>16348</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11350</MinTileRow>
            <MaxTileRow>12441</MaxTileRow>
            <MinTileCol>31637</MinTileCol>
            <MaxTileCol>32696</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22701</MinTileRow>
            <MaxTileRow>24883</MaxTileRow>
            <MinTileCol>63275</MinTileCol>
            <MaxTileCol>65392</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45403</MinTileRow>
            <MaxTileRow>49767</MaxTileRow>
            <MinTileCol>126551</MinTileCol>
            <MaxTileCol>130785</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90806</MinTileRow>
            <MaxTileRow>99535</MaxTileRow>
            <MinTileCol>253103</MinTileCol>
            <MaxTileCol>261571</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>181612</MinTileRow>
            <MaxTileRow>199071</MaxTileRow>
            <MinTileCol>506206</MinTileCol>
            <MaxTileCol>523142</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>363225</MinTileRow>
            <MaxTileRow>398143</MaxTileRow>
            <MinTileCol>1012413</MinTileCol>
            <MaxTileCol>1046284</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>726450</MinTileRow>
            <MaxTileRow>796287</MaxTileRow>
            <MinTileCol>2024827</MinTileCol>
            <MaxTileCol>2092568</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1452901</MinTileRow>
            <MaxTileRow>1592575</MaxTileRow>
            <MinTileCol>4049655</MinTileCol>
            <MaxTileCol>4185137</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>77</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>308</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>617</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>988</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1234</MinTileRow>
            <MaxTileRow>1325</MaxTileRow>
            <MinTileCol>1977</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2469</MinTileRow>
            <MaxTileRow>2650</MaxTileRow>
            <MinTileCol>3954</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4938</MinTileRow>
            <MaxTileRow>5300</MaxTileRow>
            <MinTileCol>7909</MinTileCol>
            <MaxTileCol>8174</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9877</MinTileRow>
            <MaxTileRow>10600</MaxTileRow>
            <MinTileCol>15818</MinTileCol>
            <MaxTileCol>16348</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19755</MinTileRow>
            <MaxTileRow>21201</MaxTileRow>
            <MinTileCol>31637</MinTileCol>
            <MaxTileCol>32696</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39511</MinTileRow>
            <MaxTileRow>42403</MaxTileRow>
            <MinTileCol>63275</MinTileCol>
            <MaxTileCol>65392</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79023</MinTileRow>
            <MaxTileRow>84806</MaxTileRow>
            <MinTileCol>126551</MinTileCol>
            <MaxTileCol>130785</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158046</MinTileRow>
            <MaxTileRow>169613</MaxTileRow>
            <MinTileCol>253103</MinTileCol>
            <MaxTileCol>261571</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>316092</MinTileRow>
            <MaxTileRow>339226</MaxTileRow>
            <MinTileCol>506206</MinTileCol>
            <MaxTileCol>523142</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>632185</MinTileRow>
            <MaxTileRow>678452</MaxTileRow>
            <MinTileCol>1012413</MinTileCol>
            <MaxTileCol>1046284</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1264370</MinTileRow>
            <MaxTileRow>1356904</MaxTileRow>
            <MinTileCol>2024827</MinTileCol>
            <MaxTileCol>2092568</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2528740</MinTileRow>
            <MaxTileRow>2713808</MaxTileRow>
            <MinTileCol>4049655</MinTileCol>
            <MaxTileCol>4185137</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5057480</MinTileRow>
            <MaxTileRow>5427616</MaxTileRow>
            <MinTileCol>8099311</MinTileCol>
            <MaxTileCol>8370275</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10114961</MinTileRow>
            <MaxTileRow>10855232</MaxTileRow>
            <MinTileCol>16198622</MinTileCol>
            <MaxTileCol>16740551</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20229922</MinTileRow>
            <MaxTileRow>21710465</MaxTileRow>
            <MinTileCol>32397245</MinTileCol>
            <MaxTileCol>33481102</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40459845</MinTileRow>
            <MaxTileRow>43420930</MaxTileRow>
            <MinTileCol>64794491</MinTileCol>
            <MaxTileCol>66962205</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80919691</MinTileRow>
            <MaxTileRow>86841860</MaxTileRow>
            <MinTileCol>129588983</MinTileCol>
            <MaxTileCol>133924411</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161839383</MinTileRow>
            <MaxTileRow>173683721</MaxTileRow>
            <MinTileCol>259177967</MinTileCol>
            <MaxTileCol>267848823</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>323678766</MinTileRow>
            <MaxTileRow>347367443</MaxTileRow>
            <MinTileCol>518355935</MinTileCol>
            <MaxTileCol>535697646</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>647357532</MinTileRow>
            <MaxTileRow>694734886</MaxTileRow>
            <MinTileCol>1036711870</MinTileCol>
            <MaxTileCol>1071395292</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:groundwater/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_median_50_75</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_median_50_75</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_median_50_75" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_50_75/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_50_75/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>gfg_boreholes</ows:Title>
      <ows:Abstract>Combined bore and well data from GNS Science Geothermal Team.</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>174.48871841357834 -39.54840233620554</ows:LowerCorner>
        <ows:UpperCorner>178.1668209825225 -36.43914611313691</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:gfg_boreholes</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:gfg_boreholes</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=103&amp;height=120&amp;layer=gns%3Agfg_boreholes" width="103" height="120"/>
      </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>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>179</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>504</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>359</MinTileRow>
            <MaxTileRow>368</MaxTileRow>
            <MinTileCol>1008</MinTileCol>
            <MaxTileCol>1018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>719</MinTileRow>
            <MaxTileRow>736</MaxTileRow>
            <MinTileCol>2016</MinTileCol>
            <MaxTileCol>2037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1438</MinTileRow>
            <MaxTileRow>1473</MaxTileRow>
            <MinTileCol>4033</MinTileCol>
            <MaxTileCol>4075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2877</MinTileRow>
            <MaxTileRow>2947</MaxTileRow>
            <MinTileCol>8066</MinTileCol>
            <MaxTileCol>8150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5754</MinTileRow>
            <MaxTileRow>5895</MaxTileRow>
            <MinTileCol>16133</MinTileCol>
            <MaxTileCol>16300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11508</MinTileRow>
            <MaxTileRow>11791</MaxTileRow>
            <MinTileCol>32266</MinTileCol>
            <MaxTileCol>32601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23017</MinTileRow>
            <MaxTileRow>23583</MaxTileRow>
            <MinTileCol>64532</MinTileCol>
            <MaxTileCol>65202</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46035</MinTileRow>
            <MaxTileRow>47167</MaxTileRow>
            <MinTileCol>129065</MinTileCol>
            <MaxTileCol>130404</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>92070</MinTileRow>
            <MaxTileRow>94334</MaxTileRow>
            <MinTileCol>258130</MinTileCol>
            <MaxTileCol>260809</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>184140</MinTileRow>
            <MaxTileRow>188668</MaxTileRow>
            <MinTileCol>516261</MinTileCol>
            <MaxTileCol>521618</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>368280</MinTileRow>
            <MaxTileRow>377337</MaxTileRow>
            <MinTileCol>1032523</MinTileCol>
            <MaxTileCol>1043236</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>736561</MinTileRow>
            <MaxTileRow>754674</MaxTileRow>
            <MinTileCol>2065046</MinTileCol>
            <MaxTileCol>2086472</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1473122</MinTileRow>
            <MaxTileRow>1509348</MaxTileRow>
            <MinTileCol>4130092</MinTileCol>
            <MaxTileCol>4172945</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>155</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>311</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>504</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>623</MinTileRow>
            <MaxTileRow>634</MaxTileRow>
            <MinTileCol>1008</MinTileCol>
            <MaxTileCol>1018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1246</MinTileRow>
            <MaxTileRow>1269</MaxTileRow>
            <MinTileCol>2016</MinTileCol>
            <MaxTileCol>2037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2493</MinTileRow>
            <MaxTileRow>2538</MaxTileRow>
            <MinTileCol>4033</MinTileCol>
            <MaxTileCol>4075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4987</MinTileRow>
            <MaxTileRow>5077</MaxTileRow>
            <MinTileCol>8066</MinTileCol>
            <MaxTileCol>8150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9975</MinTileRow>
            <MaxTileRow>10154</MaxTileRow>
            <MinTileCol>16133</MinTileCol>
            <MaxTileCol>16300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19950</MinTileRow>
            <MaxTileRow>20309</MaxTileRow>
            <MinTileCol>32266</MinTileCol>
            <MaxTileCol>32601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39900</MinTileRow>
            <MaxTileRow>40618</MaxTileRow>
            <MinTileCol>64532</MinTileCol>
            <MaxTileCol>65202</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79800</MinTileRow>
            <MaxTileRow>81236</MaxTileRow>
            <MinTileCol>129065</MinTileCol>
            <MaxTileCol>130404</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>159600</MinTileRow>
            <MaxTileRow>162473</MaxTileRow>
            <MinTileCol>258130</MinTileCol>
            <MaxTileCol>260809</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>319200</MinTileRow>
            <MaxTileRow>324947</MaxTileRow>
            <MinTileCol>516261</MinTileCol>
            <MaxTileCol>521618</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>638400</MinTileRow>
            <MaxTileRow>649895</MaxTileRow>
            <MinTileCol>1032523</MinTileCol>
            <MaxTileCol>1043236</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1276801</MinTileRow>
            <MaxTileRow>1299791</MaxTileRow>
            <MinTileCol>2065046</MinTileCol>
            <MaxTileCol>2086472</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2553602</MinTileRow>
            <MaxTileRow>2599582</MaxTileRow>
            <MinTileCol>4130092</MinTileCol>
            <MaxTileCol>4172945</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5107205</MinTileRow>
            <MaxTileRow>5199164</MaxTileRow>
            <MinTileCol>8260185</MinTileCol>
            <MaxTileCol>8345891</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10214410</MinTileRow>
            <MaxTileRow>10398328</MaxTileRow>
            <MinTileCol>16520371</MinTileCol>
            <MaxTileCol>16691783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20428821</MinTileRow>
            <MaxTileRow>20796656</MaxTileRow>
            <MinTileCol>33040743</MinTileCol>
            <MaxTileCol>33383567</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40857642</MinTileRow>
            <MaxTileRow>41593313</MaxTileRow>
            <MinTileCol>66081486</MinTileCol>
            <MaxTileCol>66767134</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81715285</MinTileRow>
            <MaxTileRow>83186626</MaxTileRow>
            <MinTileCol>132162973</MinTileCol>
            <MaxTileCol>133534269</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>163430571</MinTileRow>
            <MaxTileRow>166373252</MaxTileRow>
            <MinTileCol>264325946</MinTileCol>
            <MaxTileCol>267068538</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>326861142</MinTileRow>
            <MaxTileRow>332746505</MaxTileRow>
            <MinTileCol>528651893</MinTileCol>
            <MaxTileCol>534137077</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>653722285</MinTileRow>
            <MaxTileRow>665493010</MaxTileRow>
            <MinTileCol>1057303786</MinTileCol>
            <MaxTileCol>1068274154</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gfg_boreholes/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gfg_boreholes/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gfg_boreholes/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gfg_boreholes/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gfg_boreholes/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gfg_boreholes/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gfg_boreholes/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gfg_boreholes/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gfg_boreholes/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gfg_boreholes/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gfg_boreholes/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>Hydrology_Lake_Polygons_250K</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.2872014684494 -47.11290098687297</ows:LowerCorner>
        <ows:UpperCorner>179.27237475605028 -34.26411555457237</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:Hydrology_Lake_Polygons_250K</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:Lake_Poly</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AHydrology_Lake_Polygons_250K" 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>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>390</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>706</MinTileRow>
            <MaxTileRow>780</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1413</MinTileRow>
            <MaxTileRow>1560</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2827</MinTileRow>
            <MaxTileRow>3120</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5655</MinTileRow>
            <MaxTileRow>6240</MaxTileRow>
            <MinTileCol>15759</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11310</MinTileRow>
            <MaxTileRow>12480</MaxTileRow>
            <MinTileCol>31519</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22621</MinTileRow>
            <MaxTileRow>24960</MaxTileRow>
            <MinTileCol>63039</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45243</MinTileRow>
            <MaxTileRow>49921</MaxTileRow>
            <MinTileCol>126079</MinTileCol>
            <MaxTileCol>130807</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90486</MinTileRow>
            <MaxTileRow>99842</MaxTileRow>
            <MinTileCol>252158</MinTileCol>
            <MaxTileCol>261614</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180972</MinTileRow>
            <MaxTileRow>199685</MaxTileRow>
            <MinTileCol>504317</MinTileCol>
            <MaxTileCol>523228</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361945</MinTileRow>
            <MaxTileRow>399370</MaxTileRow>
            <MinTileCol>1008634</MinTileCol>
            <MaxTileCol>1046456</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>723890</MinTileRow>
            <MaxTileRow>798740</MaxTileRow>
            <MinTileCol>2017269</MinTileCol>
            <MaxTileCol>2092913</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1447781</MinTileRow>
            <MaxTileRow>1597481</MaxTileRow>
            <MinTileCol>4034538</MinTileCol>
            <MaxTileCol>4185826</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>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>664</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1231</MinTileRow>
            <MaxTileRow>1328</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2463</MinTileRow>
            <MaxTileRow>2657</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4926</MinTileRow>
            <MaxTileRow>5314</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9853</MinTileRow>
            <MaxTileRow>10628</MaxTileRow>
            <MinTileCol>15759</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19707</MinTileRow>
            <MaxTileRow>21257</MaxTileRow>
            <MinTileCol>31519</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39414</MinTileRow>
            <MaxTileRow>42515</MaxTileRow>
            <MinTileCol>63039</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78829</MinTileRow>
            <MaxTileRow>85030</MaxTileRow>
            <MinTileCol>126079</MinTileCol>
            <MaxTileCol>130807</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157658</MinTileRow>
            <MaxTileRow>170061</MaxTileRow>
            <MinTileCol>252158</MinTileCol>
            <MaxTileCol>261614</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315316</MinTileRow>
            <MaxTileRow>340123</MaxTileRow>
            <MinTileCol>504317</MinTileCol>
            <MaxTileCol>523228</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630632</MinTileRow>
            <MaxTileRow>680247</MaxTileRow>
            <MinTileCol>1008634</MinTileCol>
            <MaxTileCol>1046456</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1261264</MinTileRow>
            <MaxTileRow>1360494</MaxTileRow>
            <MinTileCol>2017269</MinTileCol>
            <MaxTileCol>2092913</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2522529</MinTileRow>
            <MaxTileRow>2720988</MaxTileRow>
            <MinTileCol>4034538</MinTileCol>
            <MaxTileCol>4185826</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5045058</MinTileRow>
            <MaxTileRow>5441976</MaxTileRow>
            <MinTileCol>8069076</MinTileCol>
            <MaxTileCol>8371653</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10090117</MinTileRow>
            <MaxTileRow>10883952</MaxTileRow>
            <MinTileCol>16138153</MinTileCol>
            <MaxTileCol>16743306</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20180234</MinTileRow>
            <MaxTileRow>21767904</MaxTileRow>
            <MinTileCol>32276306</MinTileCol>
            <MaxTileCol>33486612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40360468</MinTileRow>
            <MaxTileRow>43535809</MaxTileRow>
            <MinTileCol>64552613</MinTileCol>
            <MaxTileCol>66973224</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80720936</MinTileRow>
            <MaxTileRow>87071618</MaxTileRow>
            <MinTileCol>129105226</MinTileCol>
            <MaxTileCol>133946449</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161441872</MinTileRow>
            <MaxTileRow>174143236</MaxTileRow>
            <MinTileCol>258210452</MinTileCol>
            <MaxTileCol>267892899</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322883744</MinTileRow>
            <MaxTileRow>348286472</MaxTileRow>
            <MinTileCol>516420904</MinTileCol>
            <MaxTileCol>535785798</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645767489</MinTileRow>
            <MaxTileRow>696572945</MaxTileRow>
            <MinTileCol>1032841809</MinTileCol>
            <MaxTileCol>1071571597</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_250K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_250K/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_250K/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZL-Urban_Gisborne_geological_units</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>177.78854259694867 -38.85489537605654</ows:LowerCorner>
        <ows:UpperCorner>178.16404504344976 -38.4359063388147</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZL-Urban_Gisborne_geological_units</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>Urban_Gisborne</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=71&amp;height=580&amp;layer=gns%3ANZL-Urban_Gisborne_geological_units" width="71" height="580"/>
      </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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>127</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>91</MinTileRow>
            <MaxTileRow>91</MaxTileRow>
            <MinTileCol>254</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>182</MinTileRow>
            <MaxTileRow>183</MaxTileRow>
            <MinTileCol>508</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>365</MinTileRow>
            <MaxTileRow>366</MaxTileRow>
            <MinTileCol>1017</MinTileCol>
            <MaxTileCol>1018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>730</MinTileRow>
            <MaxTileRow>733</MaxTileRow>
            <MinTileCol>2035</MinTileCol>
            <MaxTileCol>2037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1461</MinTileRow>
            <MaxTileRow>1466</MaxTileRow>
            <MinTileCol>4070</MinTileCol>
            <MaxTileCol>4075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2922</MinTileRow>
            <MaxTileRow>2932</MaxTileRow>
            <MinTileCol>8141</MinTileCol>
            <MaxTileCol>8150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5845</MinTileRow>
            <MaxTileRow>5864</MaxTileRow>
            <MinTileCol>16283</MinTileCol>
            <MaxTileCol>16300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11690</MinTileRow>
            <MaxTileRow>11728</MaxTileRow>
            <MinTileCol>32566</MinTileCol>
            <MaxTileCol>32600</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23381</MinTileRow>
            <MaxTileRow>23457</MaxTileRow>
            <MinTileCol>65133</MinTileCol>
            <MaxTileCol>65201</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46762</MinTileRow>
            <MaxTileRow>46914</MaxTileRow>
            <MinTileCol>130266</MinTileCol>
            <MaxTileCol>130403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>93524</MinTileRow>
            <MaxTileRow>93829</MaxTileRow>
            <MinTileCol>260533</MinTileCol>
            <MaxTileCol>260807</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>187048</MinTileRow>
            <MaxTileRow>187658</MaxTileRow>
            <MinTileCol>521067</MinTileCol>
            <MaxTileCol>521614</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>374096</MinTileRow>
            <MaxTileRow>375317</MaxTileRow>
            <MinTileCol>1042134</MinTileCol>
            <MaxTileCol>1043228</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>748193</MinTileRow>
            <MaxTileRow>750634</MaxTileRow>
            <MinTileCol>2084269</MinTileCol>
            <MaxTileCol>2086456</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1496386</MinTileRow>
            <MaxTileRow>1501268</MaxTileRow>
            <MinTileCol>4168538</MinTileCol>
            <MaxTileCol>4172913</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>127</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>157</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>254</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>315</MinTileRow>
            <MaxTileRow>316</MaxTileRow>
            <MinTileCol>508</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>630</MinTileRow>
            <MaxTileRow>632</MaxTileRow>
            <MinTileCol>1017</MinTileCol>
            <MaxTileCol>1018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1261</MinTileRow>
            <MaxTileRow>1264</MaxTileRow>
            <MinTileCol>2035</MinTileCol>
            <MaxTileCol>2037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2522</MinTileRow>
            <MaxTileRow>2528</MaxTileRow>
            <MinTileCol>4070</MinTileCol>
            <MaxTileCol>4075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5044</MinTileRow>
            <MaxTileRow>5056</MaxTileRow>
            <MinTileCol>8141</MinTileCol>
            <MaxTileCol>8150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10089</MinTileRow>
            <MaxTileRow>10113</MaxTileRow>
            <MinTileCol>16283</MinTileCol>
            <MaxTileCol>16300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20178</MinTileRow>
            <MaxTileRow>20227</MaxTileRow>
            <MinTileCol>32566</MinTileCol>
            <MaxTileCol>32600</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40357</MinTileRow>
            <MaxTileRow>40455</MaxTileRow>
            <MinTileCol>65133</MinTileCol>
            <MaxTileCol>65201</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80715</MinTileRow>
            <MaxTileRow>80911</MaxTileRow>
            <MinTileCol>130266</MinTileCol>
            <MaxTileCol>130403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>161431</MinTileRow>
            <MaxTileRow>161822</MaxTileRow>
            <MinTileCol>260533</MinTileCol>
            <MaxTileCol>260807</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>322863</MinTileRow>
            <MaxTileRow>323644</MaxTileRow>
            <MinTileCol>521067</MinTileCol>
            <MaxTileCol>521614</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>645726</MinTileRow>
            <MaxTileRow>647288</MaxTileRow>
            <MinTileCol>1042134</MinTileCol>
            <MaxTileCol>1043228</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1291452</MinTileRow>
            <MaxTileRow>1294577</MaxTileRow>
            <MinTileCol>2084269</MinTileCol>
            <MaxTileCol>2086456</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2582904</MinTileRow>
            <MaxTileRow>2589155</MaxTileRow>
            <MinTileCol>4168538</MinTileCol>
            <MaxTileCol>4172913</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5165809</MinTileRow>
            <MaxTileRow>5178310</MaxTileRow>
            <MinTileCol>8337077</MinTileCol>
            <MaxTileCol>8345827</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10331619</MinTileRow>
            <MaxTileRow>10356620</MaxTileRow>
            <MinTileCol>16674154</MinTileCol>
            <MaxTileCol>16691654</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20663239</MinTileRow>
            <MaxTileRow>20713241</MaxTileRow>
            <MinTileCol>33348309</MinTileCol>
            <MaxTileCol>33383308</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41326479</MinTileRow>
            <MaxTileRow>41426483</MaxTileRow>
            <MinTileCol>66696618</MinTileCol>
            <MaxTileCol>66766617</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82652958</MinTileRow>
            <MaxTileRow>82852966</MaxTileRow>
            <MinTileCol>133393236</MinTileCol>
            <MaxTileCol>133533234</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>165305917</MinTileRow>
            <MaxTileRow>165705932</MaxTileRow>
            <MinTileCol>266786473</MinTileCol>
            <MaxTileCol>267066468</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>330611834</MinTileRow>
            <MaxTileRow>331411865</MaxTileRow>
            <MinTileCol>533572947</MinTileCol>
            <MaxTileCol>534132937</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>661223669</MinTileRow>
            <MaxTileRow>662823731</MaxTileRow>
            <MinTileCol>1067145895</MinTileCol>
            <MaxTileCol>1068265875</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Gisborne_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Gisborne_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Gisborne_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Gisborne_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Gisborne_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Gisborne_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Gisborne_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Gisborne_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Gisborne_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Gisborne_geological_units/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Gisborne_geological_units/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_modelled_layer11</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_modelled_layer11</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_modelled_layer11" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer11/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer11/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer11/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>Temp_Iso_0_70_mod</ows:Title>
      <ows:Abstract>Subsurface depth to reach 70 degrees Celsius, measured in meters.  Modeled nationally from well data.  Sourced from GNS Geothermal Team.</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.27046125607993 -41.91578960132826</ows:LowerCorner>
        <ows:UpperCorner>178.97157162333815 -34.03862826210299</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:Temp_Iso_0_70_mod</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:gfg_depth_to_temp</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=54&amp;height=302&amp;layer=gns%3ATemp_Iso_0_70_mod" width="54" height="302"/>
      </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>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>375</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>705</MinTileRow>
            <MaxTileRow>750</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1411</MinTileRow>
            <MaxTileRow>1500</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2822</MinTileRow>
            <MaxTileRow>3001</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8168</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5645</MinTileRow>
            <MaxTileRow>6003</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16337</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11290</MinTileRow>
            <MaxTileRow>12007</MaxTileRow>
            <MinTileCol>32064</MinTileCol>
            <MaxTileCol>32674</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22580</MinTileRow>
            <MaxTileRow>24014</MaxTileRow>
            <MinTileCol>64128</MinTileCol>
            <MaxTileCol>65348</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45161</MinTileRow>
            <MaxTileRow>48029</MaxTileRow>
            <MinTileCol>128257</MinTileCol>
            <MaxTileCol>130697</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90322</MinTileRow>
            <MaxTileRow>96058</MaxTileRow>
            <MinTileCol>256515</MinTileCol>
            <MaxTileCol>261395</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180644</MinTileRow>
            <MaxTileRow>192116</MaxTileRow>
            <MinTileCol>513031</MinTileCol>
            <MaxTileCol>522790</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361288</MinTileRow>
            <MaxTileRow>384232</MaxTileRow>
            <MinTileCol>1026062</MinTileCol>
            <MaxTileCol>1045580</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>722577</MinTileRow>
            <MaxTileRow>768465</MaxTileRow>
            <MinTileCol>2052124</MinTileCol>
            <MaxTileCol>2091160</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1445154</MinTileRow>
            <MaxTileRow>1536930</MaxTileRow>
            <MinTileCol>4104248</MinTileCol>
            <MaxTileCol>4182321</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>643</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1230</MinTileRow>
            <MaxTileRow>1287</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2460</MinTileRow>
            <MaxTileRow>2574</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4920</MinTileRow>
            <MaxTileRow>5148</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8168</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9841</MinTileRow>
            <MaxTileRow>10296</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16337</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19682</MinTileRow>
            <MaxTileRow>20593</MaxTileRow>
            <MinTileCol>32064</MinTileCol>
            <MaxTileCol>32674</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39364</MinTileRow>
            <MaxTileRow>41187</MaxTileRow>
            <MinTileCol>64128</MinTileCol>
            <MaxTileCol>65348</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78729</MinTileRow>
            <MaxTileRow>82374</MaxTileRow>
            <MinTileCol>128257</MinTileCol>
            <MaxTileCol>130697</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157459</MinTileRow>
            <MaxTileRow>164749</MaxTileRow>
            <MinTileCol>256515</MinTileCol>
            <MaxTileCol>261395</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314919</MinTileRow>
            <MaxTileRow>329498</MaxTileRow>
            <MinTileCol>513031</MinTileCol>
            <MaxTileCol>522790</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629838</MinTileRow>
            <MaxTileRow>658996</MaxTileRow>
            <MinTileCol>1026062</MinTileCol>
            <MaxTileCol>1045580</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1259677</MinTileRow>
            <MaxTileRow>1317993</MaxTileRow>
            <MinTileCol>2052124</MinTileCol>
            <MaxTileCol>2091160</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2519354</MinTileRow>
            <MaxTileRow>2635987</MaxTileRow>
            <MinTileCol>4104248</MinTileCol>
            <MaxTileCol>4182321</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5038709</MinTileRow>
            <MaxTileRow>5271975</MaxTileRow>
            <MinTileCol>8208496</MinTileCol>
            <MaxTileCol>8364643</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10077418</MinTileRow>
            <MaxTileRow>10543950</MaxTileRow>
            <MinTileCol>16416993</MinTileCol>
            <MaxTileCol>16729287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20154837</MinTileRow>
            <MaxTileRow>21087900</MaxTileRow>
            <MinTileCol>32833986</MinTileCol>
            <MaxTileCol>33458575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40309675</MinTileRow>
            <MaxTileRow>42175800</MaxTileRow>
            <MinTileCol>65667973</MinTileCol>
            <MaxTileCol>66917151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80619350</MinTileRow>
            <MaxTileRow>84351601</MaxTileRow>
            <MinTileCol>131335947</MinTileCol>
            <MaxTileCol>133834302</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161238701</MinTileRow>
            <MaxTileRow>168703202</MaxTileRow>
            <MinTileCol>262671894</MinTileCol>
            <MaxTileCol>267668604</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322477402</MinTileRow>
            <MaxTileRow>337406405</MaxTileRow>
            <MinTileCol>525343788</MinTileCol>
            <MaxTileCol>535337208</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644954805</MinTileRow>
            <MaxTileRow>674812811</MaxTileRow>
            <MinTileCol>1050687576</MinTileCol>
            <MaxTileCol>1070674416</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_70_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_70_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_70_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_70_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_70_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_70_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_70_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_70_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_70_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_70_mod/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_70_mod/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>DepthTimeTemp_0_500_mod</ows:Title>
      <ows:Abstract>Temperature at depth 500 meters subsurface, modeled across North Island only.  Data provided by GNS Geothermal Team.</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.27046125607993 -41.91578960132826</ows:LowerCorner>
        <ows:UpperCorner>178.97157162333815 -34.03862826210299</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:DepthTimeTemp_0_500_mod</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3ADepthTimeTemp_0_500_mod" 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>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>375</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>705</MinTileRow>
            <MaxTileRow>750</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1411</MinTileRow>
            <MaxTileRow>1500</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2822</MinTileRow>
            <MaxTileRow>3001</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8168</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5645</MinTileRow>
            <MaxTileRow>6003</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16337</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11290</MinTileRow>
            <MaxTileRow>12007</MaxTileRow>
            <MinTileCol>32064</MinTileCol>
            <MaxTileCol>32674</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22580</MinTileRow>
            <MaxTileRow>24014</MaxTileRow>
            <MinTileCol>64128</MinTileCol>
            <MaxTileCol>65348</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45161</MinTileRow>
            <MaxTileRow>48029</MaxTileRow>
            <MinTileCol>128257</MinTileCol>
            <MaxTileCol>130697</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90322</MinTileRow>
            <MaxTileRow>96058</MaxTileRow>
            <MinTileCol>256515</MinTileCol>
            <MaxTileCol>261395</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180644</MinTileRow>
            <MaxTileRow>192116</MaxTileRow>
            <MinTileCol>513031</MinTileCol>
            <MaxTileCol>522790</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361288</MinTileRow>
            <MaxTileRow>384232</MaxTileRow>
            <MinTileCol>1026062</MinTileCol>
            <MaxTileCol>1045580</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>722577</MinTileRow>
            <MaxTileRow>768465</MaxTileRow>
            <MinTileCol>2052124</MinTileCol>
            <MaxTileCol>2091160</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1445154</MinTileRow>
            <MaxTileRow>1536930</MaxTileRow>
            <MinTileCol>4104248</MinTileCol>
            <MaxTileCol>4182321</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>643</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1230</MinTileRow>
            <MaxTileRow>1287</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2460</MinTileRow>
            <MaxTileRow>2574</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4920</MinTileRow>
            <MaxTileRow>5148</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8168</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9841</MinTileRow>
            <MaxTileRow>10296</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16337</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19682</MinTileRow>
            <MaxTileRow>20593</MaxTileRow>
            <MinTileCol>32064</MinTileCol>
            <MaxTileCol>32674</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39364</MinTileRow>
            <MaxTileRow>41187</MaxTileRow>
            <MinTileCol>64128</MinTileCol>
            <MaxTileCol>65348</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78729</MinTileRow>
            <MaxTileRow>82374</MaxTileRow>
            <MinTileCol>128257</MinTileCol>
            <MaxTileCol>130697</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157459</MinTileRow>
            <MaxTileRow>164749</MaxTileRow>
            <MinTileCol>256515</MinTileCol>
            <MaxTileCol>261395</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314919</MinTileRow>
            <MaxTileRow>329498</MaxTileRow>
            <MinTileCol>513031</MinTileCol>
            <MaxTileCol>522790</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629838</MinTileRow>
            <MaxTileRow>658996</MaxTileRow>
            <MinTileCol>1026062</MinTileCol>
            <MaxTileCol>1045580</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1259677</MinTileRow>
            <MaxTileRow>1317993</MaxTileRow>
            <MinTileCol>2052124</MinTileCol>
            <MaxTileCol>2091160</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2519354</MinTileRow>
            <MaxTileRow>2635987</MaxTileRow>
            <MinTileCol>4104248</MinTileCol>
            <MaxTileCol>4182321</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5038709</MinTileRow>
            <MaxTileRow>5271975</MaxTileRow>
            <MinTileCol>8208496</MinTileCol>
            <MaxTileCol>8364643</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10077418</MinTileRow>
            <MaxTileRow>10543950</MaxTileRow>
            <MinTileCol>16416993</MinTileCol>
            <MaxTileCol>16729287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20154837</MinTileRow>
            <MaxTileRow>21087900</MaxTileRow>
            <MinTileCol>32833986</MinTileCol>
            <MaxTileCol>33458575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40309675</MinTileRow>
            <MaxTileRow>42175800</MaxTileRow>
            <MinTileCol>65667973</MinTileCol>
            <MaxTileCol>66917151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80619350</MinTileRow>
            <MaxTileRow>84351601</MaxTileRow>
            <MinTileCol>131335947</MinTileCol>
            <MaxTileCol>133834302</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161238701</MinTileRow>
            <MaxTileRow>168703202</MaxTileRow>
            <MinTileCol>262671894</MinTileCol>
            <MaxTileCol>267668604</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322477402</MinTileRow>
            <MaxTileRow>337406405</MaxTileRow>
            <MinTileCol>525343788</MinTileCol>
            <MaxTileCol>535337208</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644954805</MinTileRow>
            <MaxTileRow>674812811</MaxTileRow>
            <MinTileCol>1050687576</MinTileCol>
            <MaxTileCol>1070674416</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_500_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_500_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_500_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_500_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_500_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_500_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_500_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_500_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_500_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_500_mod/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_500_mod/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_modelled_layer10</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_modelled_layer10</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_modelled_layer10" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer10/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer10/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZL-Urban_Invercargill_geological_units</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.1711234670281 -46.66009321197144</ows:LowerCorner>
        <ows:UpperCorner>168.5667224884737 -46.31369180442466</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZL-Urban_Invercargill_geological_units</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>Urban_Invercargill</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=63&amp;height=780&amp;layer=gns%3ANZL-Urban_Invercargill_geological_units" width="63" height="780"/>
      </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>3</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>30</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>61</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>495</MinTileCol>
            <MaxTileCol>495</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>990</MinTileCol>
            <MaxTileCol>991</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>775</MinTileRow>
            <MaxTileRow>777</MaxTileRow>
            <MinTileCol>1980</MinTileCol>
            <MaxTileCol>1982</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1550</MinTileRow>
            <MaxTileRow>1554</MaxTileRow>
            <MinTileCol>3961</MinTileCol>
            <MaxTileCol>3965</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3101</MinTileRow>
            <MaxTileRow>3109</MaxTileRow>
            <MinTileCol>7922</MinTileCol>
            <MaxTileCol>7931</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6203</MinTileRow>
            <MaxTileRow>6219</MaxTileRow>
            <MinTileCol>15845</MinTileCol>
            <MaxTileCol>15863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12407</MinTileRow>
            <MaxTileRow>12439</MaxTileRow>
            <MinTileCol>31691</MinTileCol>
            <MaxTileCol>31727</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24815</MinTileRow>
            <MaxTileRow>24878</MaxTileRow>
            <MinTileCol>63382</MinTileCol>
            <MaxTileCol>63454</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49630</MinTileRow>
            <MaxTileRow>49756</MaxTileRow>
            <MinTileCol>126765</MinTileCol>
            <MaxTileCol>126909</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99260</MinTileRow>
            <MaxTileRow>99512</MaxTileRow>
            <MinTileCol>253530</MinTileCol>
            <MaxTileCol>253818</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198521</MinTileRow>
            <MaxTileRow>199025</MaxTileRow>
            <MinTileCol>507060</MinTileCol>
            <MaxTileCol>507637</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>397042</MinTileRow>
            <MaxTileRow>398051</MaxTileRow>
            <MinTileCol>1014121</MinTileCol>
            <MaxTileCol>1015274</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>794084</MinTileRow>
            <MaxTileRow>796102</MaxTileRow>
            <MinTileCol>2028243</MinTileCol>
            <MaxTileCol>2030548</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1588169</MinTileRow>
            <MaxTileRow>1592205</MaxTileRow>
            <MinTileCol>4056487</MinTileCol>
            <MaxTileCol>4061096</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>30</MinTileCol>
            <MaxTileCol>30</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>61</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>165</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>330</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>495</MinTileCol>
            <MaxTileCol>495</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>660</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>990</MinTileCol>
            <MaxTileCol>991</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1321</MinTileRow>
            <MaxTileRow>1324</MaxTileRow>
            <MinTileCol>1980</MinTileCol>
            <MaxTileCol>1982</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2643</MinTileRow>
            <MaxTileRow>2649</MaxTileRow>
            <MinTileCol>3961</MinTileCol>
            <MaxTileCol>3965</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5287</MinTileRow>
            <MaxTileRow>5299</MaxTileRow>
            <MinTileCol>7922</MinTileCol>
            <MaxTileCol>7931</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10575</MinTileRow>
            <MaxTileRow>10598</MaxTileRow>
            <MinTileCol>15845</MinTileCol>
            <MaxTileCol>15863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21151</MinTileRow>
            <MaxTileRow>21197</MaxTileRow>
            <MinTileCol>31691</MinTileCol>
            <MaxTileCol>31727</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42303</MinTileRow>
            <MaxTileRow>42394</MaxTileRow>
            <MinTileCol>63382</MinTileCol>
            <MaxTileCol>63454</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84606</MinTileRow>
            <MaxTileRow>84789</MaxTileRow>
            <MinTileCol>126765</MinTileCol>
            <MaxTileCol>126909</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>169212</MinTileRow>
            <MaxTileRow>169579</MaxTileRow>
            <MinTileCol>253530</MinTileCol>
            <MaxTileCol>253818</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>338425</MinTileRow>
            <MaxTileRow>339158</MaxTileRow>
            <MinTileCol>507060</MinTileCol>
            <MaxTileCol>507637</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>676851</MinTileRow>
            <MaxTileRow>678317</MaxTileRow>
            <MinTileCol>1014121</MinTileCol>
            <MaxTileCol>1015274</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1353703</MinTileRow>
            <MaxTileRow>1356634</MaxTileRow>
            <MinTileCol>2028243</MinTileCol>
            <MaxTileCol>2030548</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2707407</MinTileRow>
            <MaxTileRow>2713268</MaxTileRow>
            <MinTileCol>4056487</MinTileCol>
            <MaxTileCol>4061096</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5414814</MinTileRow>
            <MaxTileRow>5426537</MaxTileRow>
            <MinTileCol>8112975</MinTileCol>
            <MaxTileCol>8122193</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10829628</MinTileRow>
            <MaxTileRow>10853075</MaxTileRow>
            <MinTileCol>16225950</MinTileCol>
            <MaxTileCol>16244386</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21659257</MinTileRow>
            <MaxTileRow>21706151</MaxTileRow>
            <MinTileCol>32451900</MinTileCol>
            <MaxTileCol>32488773</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43318515</MinTileRow>
            <MaxTileRow>43412302</MaxTileRow>
            <MinTileCol>64903801</MinTileCol>
            <MaxTileCol>64977546</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86637030</MinTileRow>
            <MaxTileRow>86824604</MaxTileRow>
            <MinTileCol>129807603</MinTileCol>
            <MaxTileCol>129955093</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173274061</MinTileRow>
            <MaxTileRow>173649209</MaxTileRow>
            <MinTileCol>259615206</MinTileCol>
            <MaxTileCol>259910186</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346548122</MinTileRow>
            <MaxTileRow>347298418</MaxTileRow>
            <MinTileCol>519230412</MinTileCol>
            <MaxTileCol>519820372</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>693096245</MinTileRow>
            <MaxTileRow>694596836</MaxTileRow>
            <MinTileCol>1038460825</MinTileCol>
            <MaxTileCol>1039640745</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Invercargill_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Invercargill_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Invercargill_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Invercargill_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Invercargill_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Invercargill_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Invercargill_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Invercargill_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Invercargill_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Invercargill_geological_units/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Invercargill_geological_units/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_modelled_layer12</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_modelled_layer12</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_modelled_layer12" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer12/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer12/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer12/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>v_landslide3</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.450325997786 -46.9036922500752</ows:LowerCorner>
        <ows:UpperCorner>178.534936804087 -34.4210194782182</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:v_landslide3</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:Landslide_Category_New</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=107&amp;height=320&amp;layer=gns%3Av_landslide3" width="107" height="320"/>
      </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>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>389</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>707</MinTileRow>
            <MaxTileRow>778</MaxTileRow>
            <MinTileCol>1970</MinTileCol>
            <MaxTileCol>2039</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1415</MinTileRow>
            <MaxTileRow>1557</MaxTileRow>
            <MinTileCol>3941</MinTileCol>
            <MaxTileCol>4079</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2831</MinTileRow>
            <MaxTileRow>3115</MaxTileRow>
            <MinTileCol>7883</MinTileCol>
            <MaxTileCol>8158</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5662</MinTileRow>
            <MaxTileRow>6230</MaxTileRow>
            <MinTileCol>15767</MinTileCol>
            <MaxTileCol>16317</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11325</MinTileRow>
            <MaxTileRow>12461</MaxTileRow>
            <MinTileCol>31534</MinTileCol>
            <MaxTileCol>32634</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22650</MinTileRow>
            <MaxTileRow>24922</MaxTileRow>
            <MinTileCol>63069</MinTileCol>
            <MaxTileCol>65269</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45300</MinTileRow>
            <MaxTileRow>49845</MaxTileRow>
            <MinTileCol>126138</MinTileCol>
            <MaxTileCol>130538</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90600</MinTileRow>
            <MaxTileRow>99690</MaxTileRow>
            <MinTileCol>252277</MinTileCol>
            <MaxTileCol>261077</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>181201</MinTileRow>
            <MaxTileRow>199380</MaxTileRow>
            <MinTileCol>504554</MinTileCol>
            <MaxTileCol>522154</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>362402</MinTileRow>
            <MaxTileRow>398760</MaxTileRow>
            <MinTileCol>1009109</MinTileCol>
            <MaxTileCol>1044308</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>724804</MinTileRow>
            <MaxTileRow>797521</MaxTileRow>
            <MinTileCol>2018219</MinTileCol>
            <MaxTileCol>2088617</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1449609</MinTileRow>
            <MaxTileRow>1595043</MaxTileRow>
            <MinTileCol>4036438</MinTileCol>
            <MaxTileCol>4177234</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>77</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>308</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>616</MinTileRow>
            <MaxTileRow>663</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1232</MinTileRow>
            <MaxTileRow>1326</MaxTileRow>
            <MinTileCol>1970</MinTileCol>
            <MaxTileCol>2039</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2465</MinTileRow>
            <MaxTileRow>2653</MaxTileRow>
            <MinTileCol>3941</MinTileCol>
            <MaxTileCol>4079</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4931</MinTileRow>
            <MaxTileRow>5307</MaxTileRow>
            <MinTileCol>7883</MinTileCol>
            <MaxTileCol>8158</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9862</MinTileRow>
            <MaxTileRow>10614</MaxTileRow>
            <MinTileCol>15767</MinTileCol>
            <MaxTileCol>16317</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19724</MinTileRow>
            <MaxTileRow>21229</MaxTileRow>
            <MinTileCol>31534</MinTileCol>
            <MaxTileCol>32634</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39449</MinTileRow>
            <MaxTileRow>42459</MaxTileRow>
            <MinTileCol>63069</MinTileCol>
            <MaxTileCol>65269</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78898</MinTileRow>
            <MaxTileRow>84919</MaxTileRow>
            <MinTileCol>126138</MinTileCol>
            <MaxTileCol>130538</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157796</MinTileRow>
            <MaxTileRow>169838</MaxTileRow>
            <MinTileCol>252277</MinTileCol>
            <MaxTileCol>261077</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315592</MinTileRow>
            <MaxTileRow>339676</MaxTileRow>
            <MinTileCol>504554</MinTileCol>
            <MaxTileCol>522154</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>631185</MinTileRow>
            <MaxTileRow>679353</MaxTileRow>
            <MinTileCol>1009109</MinTileCol>
            <MaxTileCol>1044308</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1262371</MinTileRow>
            <MaxTileRow>1358706</MaxTileRow>
            <MinTileCol>2018219</MinTileCol>
            <MaxTileCol>2088617</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2524743</MinTileRow>
            <MaxTileRow>2717413</MaxTileRow>
            <MinTileCol>4036438</MinTileCol>
            <MaxTileCol>4177234</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5049486</MinTileRow>
            <MaxTileRow>5434827</MaxTileRow>
            <MinTileCol>8072877</MinTileCol>
            <MaxTileCol>8354469</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10098973</MinTileRow>
            <MaxTileRow>10869654</MaxTileRow>
            <MinTileCol>16145755</MinTileCol>
            <MaxTileCol>16708939</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20197946</MinTileRow>
            <MaxTileRow>21739308</MaxTileRow>
            <MinTileCol>32291510</MinTileCol>
            <MaxTileCol>33417878</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40395892</MinTileRow>
            <MaxTileRow>43478616</MaxTileRow>
            <MinTileCol>64583021</MinTileCol>
            <MaxTileCol>66835756</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80791784</MinTileRow>
            <MaxTileRow>86957232</MaxTileRow>
            <MinTileCol>129166043</MinTileCol>
            <MaxTileCol>133671512</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161583569</MinTileRow>
            <MaxTileRow>173914464</MaxTileRow>
            <MinTileCol>258332086</MinTileCol>
            <MaxTileCol>267343025</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>323167138</MinTileRow>
            <MaxTileRow>347828929</MaxTileRow>
            <MinTileCol>516664173</MinTileCol>
            <MaxTileCol>534686051</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>646334276</MinTileRow>
            <MaxTileRow>695657859</MaxTileRow>
            <MinTileCol>1033328347</MinTileCol>
            <MaxTileCol>1069372102</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:v_landslide3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:v_landslide3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:v_landslide3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:v_landslide3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:v_landslide3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:v_landslide3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:v_landslide3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:v_landslide3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:v_landslide3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:v_landslide3/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:v_landslide3/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_mean_30_50</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_mean_30_50</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_mean_30_50" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_30_50/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_30_50/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_median_200_250</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_median_200_250</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_median_200_250" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_200_250/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_200_250/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_200_250/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>DepthTimeTemp_0_2000_mod</ows:Title>
      <ows:Abstract>Temperature at depth 2000 meters subsurface, modeled across North Island only.  Data provided by GNS Geothermal Team.</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.27046125607993 -41.91578960132826</ows:LowerCorner>
        <ows:UpperCorner>178.97157162333815 -34.03862826210299</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:DepthTimeTemp_0_2000_mod</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3ADepthTimeTemp_0_2000_mod" 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>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>375</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>705</MinTileRow>
            <MaxTileRow>750</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1411</MinTileRow>
            <MaxTileRow>1500</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2822</MinTileRow>
            <MaxTileRow>3001</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8168</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5645</MinTileRow>
            <MaxTileRow>6003</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16337</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11290</MinTileRow>
            <MaxTileRow>12007</MaxTileRow>
            <MinTileCol>32064</MinTileCol>
            <MaxTileCol>32674</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22580</MinTileRow>
            <MaxTileRow>24014</MaxTileRow>
            <MinTileCol>64128</MinTileCol>
            <MaxTileCol>65348</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45161</MinTileRow>
            <MaxTileRow>48029</MaxTileRow>
            <MinTileCol>128257</MinTileCol>
            <MaxTileCol>130697</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90322</MinTileRow>
            <MaxTileRow>96058</MaxTileRow>
            <MinTileCol>256515</MinTileCol>
            <MaxTileCol>261395</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180644</MinTileRow>
            <MaxTileRow>192116</MaxTileRow>
            <MinTileCol>513031</MinTileCol>
            <MaxTileCol>522790</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361288</MinTileRow>
            <MaxTileRow>384232</MaxTileRow>
            <MinTileCol>1026062</MinTileCol>
            <MaxTileCol>1045580</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>722577</MinTileRow>
            <MaxTileRow>768465</MaxTileRow>
            <MinTileCol>2052124</MinTileCol>
            <MaxTileCol>2091160</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1445154</MinTileRow>
            <MaxTileRow>1536930</MaxTileRow>
            <MinTileCol>4104248</MinTileCol>
            <MaxTileCol>4182321</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>643</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1230</MinTileRow>
            <MaxTileRow>1287</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2460</MinTileRow>
            <MaxTileRow>2574</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4920</MinTileRow>
            <MaxTileRow>5148</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8168</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9841</MinTileRow>
            <MaxTileRow>10296</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16337</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19682</MinTileRow>
            <MaxTileRow>20593</MaxTileRow>
            <MinTileCol>32064</MinTileCol>
            <MaxTileCol>32674</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39364</MinTileRow>
            <MaxTileRow>41187</MaxTileRow>
            <MinTileCol>64128</MinTileCol>
            <MaxTileCol>65348</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78729</MinTileRow>
            <MaxTileRow>82374</MaxTileRow>
            <MinTileCol>128257</MinTileCol>
            <MaxTileCol>130697</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157459</MinTileRow>
            <MaxTileRow>164749</MaxTileRow>
            <MinTileCol>256515</MinTileCol>
            <MaxTileCol>261395</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314919</MinTileRow>
            <MaxTileRow>329498</MaxTileRow>
            <MinTileCol>513031</MinTileCol>
            <MaxTileCol>522790</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629838</MinTileRow>
            <MaxTileRow>658996</MaxTileRow>
            <MinTileCol>1026062</MinTileCol>
            <MaxTileCol>1045580</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1259677</MinTileRow>
            <MaxTileRow>1317993</MaxTileRow>
            <MinTileCol>2052124</MinTileCol>
            <MaxTileCol>2091160</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2519354</MinTileRow>
            <MaxTileRow>2635987</MaxTileRow>
            <MinTileCol>4104248</MinTileCol>
            <MaxTileCol>4182321</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5038709</MinTileRow>
            <MaxTileRow>5271975</MaxTileRow>
            <MinTileCol>8208496</MinTileCol>
            <MaxTileCol>8364643</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10077418</MinTileRow>
            <MaxTileRow>10543950</MaxTileRow>
            <MinTileCol>16416993</MinTileCol>
            <MaxTileCol>16729287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20154837</MinTileRow>
            <MaxTileRow>21087900</MaxTileRow>
            <MinTileCol>32833986</MinTileCol>
            <MaxTileCol>33458575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40309675</MinTileRow>
            <MaxTileRow>42175800</MaxTileRow>
            <MinTileCol>65667973</MinTileCol>
            <MaxTileCol>66917151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80619350</MinTileRow>
            <MaxTileRow>84351601</MaxTileRow>
            <MinTileCol>131335947</MinTileCol>
            <MaxTileCol>133834302</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161238701</MinTileRow>
            <MaxTileRow>168703202</MaxTileRow>
            <MinTileCol>262671894</MinTileCol>
            <MaxTileCol>267668604</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322477402</MinTileRow>
            <MaxTileRow>337406405</MaxTileRow>
            <MinTileCol>525343788</MinTileCol>
            <MaxTileCol>535337208</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644954805</MinTileRow>
            <MaxTileRow>674812811</MaxTileRow>
            <MinTileCol>1050687576</MinTileCol>
            <MaxTileCol>1070674416</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_2000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_2000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_2000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_2000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_2000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_2000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_2000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_2000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_2000_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_2000_mod/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:DepthTimeTemp_0_2000_mod/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>geol_units</ows:Title>
      <ows:Abstract>The central part of the South Island of New Zealand contains an array of landfarms produced by the action of glaciers, spanning from prehistoric time through to the present day. Glaciers are expressions of atmospheric climatic conditions, and their advances and retreats, as recorded by distinctive landfarms, provide a measure of past climate changes. As one of the few landmasses in the Southern Hemisphere, and especially one where glaciers have had a persistent presence, New Zealand&apos;s glacier record is an important piece of information for enquiry into the natural behaviour of Earth&apos;s climate system. The central South Island record benefits from having modern glaciers, whose historic behaviour provides an analogue for the interpretation of the prehistoric record. In addition, the prehistoric record provides context to the widespread retreat of Southern Alps glaciers within the last hundred years or so, and questions about future climate change.
        
The central South Island glacial geomorphological (CSIGG) digital database documents these landfarms. This dataset was used to generate the printed 1:100,000 geomorphological map, on a five-sheet large-format cut-up, that was enclosed in GNS Science Monograph 27 (Barrell et al., 2011).</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>169.63233530869798 -44.457107388480686</ows:LowerCorner>
        <ows:UpperCorner>172.7824529282984 -42.240873721765496</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:geol_units</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:csigg_units_style</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=231&amp;height=960&amp;layer=gns%3Ageol_units" width="231" height="960"/>
      </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>124</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>94</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>188</MinTileRow>
            <MaxTileRow>191</MaxTileRow>
            <MinTileCol>497</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>376</MinTileRow>
            <MaxTileRow>382</MaxTileRow>
            <MinTileCol>994</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>752</MinTileRow>
            <MaxTileRow>764</MaxTileRow>
            <MinTileCol>1989</MinTileCol>
            <MaxTileCol>2006</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1504</MinTileRow>
            <MaxTileRow>1529</MaxTileRow>
            <MinTileCol>3978</MinTileCol>
            <MaxTileCol>4013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3009</MinTileRow>
            <MaxTileRow>3059</MaxTileRow>
            <MinTileCol>7956</MinTileCol>
            <MaxTileCol>8027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6018</MinTileRow>
            <MaxTileRow>6119</MaxTileRow>
            <MinTileCol>15912</MinTileCol>
            <MaxTileCol>16055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12036</MinTileRow>
            <MaxTileRow>12238</MaxTileRow>
            <MinTileCol>31824</MinTileCol>
            <MaxTileCol>32111</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24073</MinTileRow>
            <MaxTileRow>24477</MaxTileRow>
            <MinTileCol>63648</MinTileCol>
            <MaxTileCol>64222</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48147</MinTileRow>
            <MaxTileRow>48954</MaxTileRow>
            <MinTileCol>127297</MinTileCol>
            <MaxTileCol>128444</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>96294</MinTileRow>
            <MaxTileRow>97908</MaxTileRow>
            <MinTileCol>254594</MinTileCol>
            <MaxTileCol>256888</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>192589</MinTileRow>
            <MaxTileRow>195817</MaxTileRow>
            <MinTileCol>509188</MinTileCol>
            <MaxTileCol>513776</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>385179</MinTileRow>
            <MaxTileRow>391634</MaxTileRow>
            <MinTileCol>1018377</MinTileCol>
            <MaxTileCol>1027553</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>770358</MinTileRow>
            <MaxTileRow>783269</MaxTileRow>
            <MinTileCol>2036755</MinTileCol>
            <MaxTileCol>2055106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1540717</MinTileRow>
            <MaxTileRow>1566538</MaxTileRow>
            <MinTileCol>4073511</MinTileCol>
            <MaxTileCol>4110213</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>80</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>161</MinTileRow>
            <MaxTileRow>163</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>322</MinTileRow>
            <MaxTileRow>326</MaxTileRow>
            <MinTileCol>497</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>644</MinTileRow>
            <MaxTileRow>653</MaxTileRow>
            <MinTileCol>994</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1289</MinTileRow>
            <MaxTileRow>1306</MaxTileRow>
            <MinTileCol>1989</MinTileCol>
            <MaxTileCol>2006</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2579</MinTileRow>
            <MaxTileRow>2613</MaxTileRow>
            <MinTileCol>3978</MinTileCol>
            <MaxTileCol>4013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5158</MinTileRow>
            <MaxTileRow>5227</MaxTileRow>
            <MinTileCol>7956</MinTileCol>
            <MaxTileCol>8027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10316</MinTileRow>
            <MaxTileRow>10455</MaxTileRow>
            <MinTileCol>15912</MinTileCol>
            <MaxTileCol>16055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20633</MinTileRow>
            <MaxTileRow>20910</MaxTileRow>
            <MinTileCol>31824</MinTileCol>
            <MaxTileCol>32111</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41267</MinTileRow>
            <MaxTileRow>41821</MaxTileRow>
            <MinTileCol>63648</MinTileCol>
            <MaxTileCol>64222</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82534</MinTileRow>
            <MaxTileRow>83643</MaxTileRow>
            <MinTileCol>127297</MinTileCol>
            <MaxTileCol>128444</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>165068</MinTileRow>
            <MaxTileRow>167287</MaxTileRow>
            <MinTileCol>254594</MinTileCol>
            <MaxTileCol>256888</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>330136</MinTileRow>
            <MaxTileRow>334575</MaxTileRow>
            <MinTileCol>509188</MinTileCol>
            <MaxTileCol>513776</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>660272</MinTileRow>
            <MaxTileRow>669151</MaxTileRow>
            <MinTileCol>1018377</MinTileCol>
            <MaxTileCol>1027553</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1320545</MinTileRow>
            <MaxTileRow>1338302</MaxTileRow>
            <MinTileCol>2036755</MinTileCol>
            <MaxTileCol>2055106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2641090</MinTileRow>
            <MaxTileRow>2676604</MaxTileRow>
            <MinTileCol>4073511</MinTileCol>
            <MaxTileCol>4110213</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5282180</MinTileRow>
            <MaxTileRow>5353209</MaxTileRow>
            <MinTileCol>8147023</MinTileCol>
            <MaxTileCol>8220426</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10564361</MinTileRow>
            <MaxTileRow>10706418</MaxTileRow>
            <MinTileCol>16294047</MinTileCol>
            <MaxTileCol>16440853</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21128723</MinTileRow>
            <MaxTileRow>21412837</MaxTileRow>
            <MinTileCol>32588095</MinTileCol>
            <MaxTileCol>32881707</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42257447</MinTileRow>
            <MaxTileRow>42825675</MaxTileRow>
            <MinTileCol>65176191</MinTileCol>
            <MaxTileCol>65763415</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84514894</MinTileRow>
            <MaxTileRow>85651350</MaxTileRow>
            <MinTileCol>130352382</MinTileCol>
            <MaxTileCol>131526831</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>169029788</MinTileRow>
            <MaxTileRow>171302700</MaxTileRow>
            <MinTileCol>260704764</MinTileCol>
            <MaxTileCol>263053662</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>338059576</MinTileRow>
            <MaxTileRow>342605401</MaxTileRow>
            <MinTileCol>521409529</MinTileCol>
            <MaxTileCol>526107325</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>676119152</MinTileRow>
            <MaxTileRow>685210802</MaxTileRow>
            <MinTileCol>1042819059</MinTileCol>
            <MaxTileCol>1052214651</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>pet_site_view_alt</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-179.9167 -85.33332</ows:LowerCorner>
        <ows:UpperCorner>180.0 90.0</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:pet_site_view_alt</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>point</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Apet_site_view_alt" 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>0</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>7</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>15</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>31</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>62</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>124</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>249</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>498</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>997</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>1994</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>3989</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>7979</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>15959</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>31918</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>63836</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>127673</MaxTileRow>
            <MinTileCol>60</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>255347</MaxTileRow>
            <MinTileCol>121</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>510695</MaxTileRow>
            <MinTileCol>242</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>1021390</MaxTileRow>
            <MinTileCol>485</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>2042781</MaxTileRow>
            <MinTileCol>970</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>0</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>7</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>15</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>31</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>63</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>127</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>255</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>511</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>1023</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>2047</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>4095</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>8191</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>16383</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>32767</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>65535</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>131071</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>262143</MaxTileRow>
            <MinTileCol>60</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>524287</MaxTileRow>
            <MinTileCol>121</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>1048575</MaxTileRow>
            <MinTileCol>242</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>2097151</MaxTileRow>
            <MinTileCol>485</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>4194303</MaxTileRow>
            <MinTileCol>970</MinTileCol>
            <MaxTileCol>4194303</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>8388607</MaxTileRow>
            <MinTileCol>1941</MinTileCol>
            <MaxTileCol>8388607</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>16777215</MaxTileRow>
            <MinTileCol>3882</MinTileCol>
            <MaxTileCol>16777215</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>33554431</MaxTileRow>
            <MinTileCol>7764</MinTileCol>
            <MaxTileCol>33554431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>67108863</MaxTileRow>
            <MinTileCol>15528</MinTileCol>
            <MaxTileCol>67108863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>134217727</MaxTileRow>
            <MinTileCol>31056</MinTileCol>
            <MaxTileCol>134217727</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>268435455</MaxTileRow>
            <MinTileCol>62112</MinTileCol>
            <MaxTileCol>268435455</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>536870911</MaxTileRow>
            <MinTileCol>124225</MinTileCol>
            <MaxTileCol>536870911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>1073741823</MaxTileRow>
            <MinTileCol>248451</MinTileCol>
            <MaxTileCol>1073741823</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view_alt/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view_alt/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view_alt/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view_alt/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view_alt/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view_alt/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view_alt/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view_alt/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view_alt/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view_alt/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pet_site_view_alt/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_MAS</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_MAS</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_massey</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_MAS" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_std_0_10</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_std_0_10</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_std_0_10" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_0_10/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_0_10/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>sa2_zones</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-176.893142 -47.28999300000001</ows:LowerCorner>
        <ows:UpperCorner>178.577243 -34.129636</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:sa2_zones</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:polygon_no_stroke</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Asa2_zones" width="20" height="20"/>
      </Style>
      <Format>application/vnd.mapbox-vector-tile</Format>
      <Format>image/png</Format>
      <Format>image/vnd.jpeg-png</Format>
      <Format>image/jpeg</Format>
      <Format>application/json;type=geojson</Format>
      <Format>image/vnd.jpeg-png8</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>
      <Dimension><ows:Identifier>BUFFER</ows:Identifier><Default>256</Default><Value>0</Value><Value>8</Value><Value>128</Value><Value>256</Value>
      </Dimension>
      <TileMatrixSetLink>
        <TileMatrixSet>WebMercatorQuad</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>4</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>8</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>11</TileMatrix>
            <MinTileRow>1230</MinTileRow>
            <MaxTileRow>1330</MaxTileRow>
            <MinTileCol>17</MinTileCol>
            <MaxTileCol>2039</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>12</TileMatrix>
            <MinTileRow>2461</MinTileRow>
            <MaxTileRow>2660</MaxTileRow>
            <MinTileCol>35</MinTileCol>
            <MaxTileCol>4079</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>13</TileMatrix>
            <MinTileRow>4923</MinTileRow>
            <MaxTileRow>5320</MaxTileRow>
            <MinTileCol>70</MinTileCol>
            <MaxTileCol>8159</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>14</TileMatrix>
            <MinTileRow>9846</MinTileRow>
            <MaxTileRow>10640</MaxTileRow>
            <MinTileCol>141</MinTileCol>
            <MaxTileCol>16319</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>15</TileMatrix>
            <MinTileRow>19692</MinTileRow>
            <MaxTileRow>21281</MaxTileRow>
            <MinTileCol>282</MinTileCol>
            <MaxTileCol>32638</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>16</TileMatrix>
            <MinTileRow>39384</MinTileRow>
            <MaxTileRow>42562</MaxTileRow>
            <MinTileCol>565</MinTileCol>
            <MaxTileCol>65276</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>17</TileMatrix>
            <MinTileRow>78769</MinTileRow>
            <MaxTileRow>85125</MaxTileRow>
            <MinTileCol>1131</MinTileCol>
            <MaxTileCol>130553</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>18</TileMatrix>
            <MinTileRow>157539</MinTileRow>
            <MaxTileRow>170251</MaxTileRow>
            <MinTileCol>2262</MinTileCol>
            <MaxTileCol>261107</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>19</TileMatrix>
            <MinTileRow>315079</MinTileRow>
            <MaxTileRow>340503</MaxTileRow>
            <MinTileCol>4524</MinTileCol>
            <MaxTileCol>522215</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>20</TileMatrix>
            <MinTileRow>630158</MinTileRow>
            <MaxTileRow>681006</MaxTileRow>
            <MinTileCol>9049</MinTileCol>
            <MaxTileCol>1044431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>21</TileMatrix>
            <MinTileRow>1260317</MinTileRow>
            <MaxTileRow>1362012</MaxTileRow>
            <MinTileCol>18098</MinTileCol>
            <MaxTileCol>2088863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>22</TileMatrix>
            <MinTileRow>2520634</MinTileRow>
            <MaxTileRow>2724024</MaxTileRow>
            <MinTileCol>36197</MinTileCol>
            <MaxTileCol>4177727</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>23</TileMatrix>
            <MinTileRow>5041269</MinTileRow>
            <MaxTileRow>5448049</MaxTileRow>
            <MinTileCol>72395</MinTileCol>
            <MaxTileCol>8355455</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>24</TileMatrix>
            <MinTileRow>10082539</MinTileRow>
            <MaxTileRow>10896099</MaxTileRow>
            <MinTileCol>144790</MinTileCol>
            <MaxTileCol>16710910</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:3857</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>4</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>8</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:11</TileMatrix>
            <MinTileRow>1230</MinTileRow>
            <MaxTileRow>1330</MaxTileRow>
            <MinTileCol>17</MinTileCol>
            <MaxTileCol>2039</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:12</TileMatrix>
            <MinTileRow>2461</MinTileRow>
            <MaxTileRow>2660</MaxTileRow>
            <MinTileCol>35</MinTileCol>
            <MaxTileCol>4079</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:13</TileMatrix>
            <MinTileRow>4923</MinTileRow>
            <MaxTileRow>5320</MaxTileRow>
            <MinTileCol>70</MinTileCol>
            <MaxTileCol>8159</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:14</TileMatrix>
            <MinTileRow>9846</MinTileRow>
            <MaxTileRow>10640</MaxTileRow>
            <MinTileCol>141</MinTileCol>
            <MaxTileCol>16319</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:15</TileMatrix>
            <MinTileRow>19692</MinTileRow>
            <MaxTileRow>21281</MaxTileRow>
            <MinTileCol>282</MinTileCol>
            <MaxTileCol>32638</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:3857:16</TileMatrix>
            <MinTileRow>39384</MinTileRow>
            <MaxTileRow>42562</MaxTileRow>
            <MinTileCol>565</MinTileCol>
            <MaxTileCol>65276</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <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>1</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>4</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>390</MaxTileRow>
            <MinTileCol>8</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>706</MinTileRow>
            <MaxTileRow>781</MaxTileRow>
            <MinTileCol>17</MinTileCol>
            <MaxTileCol>2039</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1412</MinTileRow>
            <MaxTileRow>1562</MaxTileRow>
            <MinTileCol>35</MinTileCol>
            <MaxTileCol>4079</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2824</MinTileRow>
            <MaxTileRow>3124</MaxTileRow>
            <MinTileCol>70</MinTileCol>
            <MaxTileCol>8159</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5649</MinTileRow>
            <MaxTileRow>6248</MaxTileRow>
            <MinTileCol>141</MinTileCol>
            <MaxTileCol>16319</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11298</MinTileRow>
            <MaxTileRow>12496</MaxTileRow>
            <MinTileCol>282</MinTileCol>
            <MaxTileCol>32638</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22597</MinTileRow>
            <MaxTileRow>24992</MaxTileRow>
            <MinTileCol>565</MinTileCol>
            <MaxTileCol>65276</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45194</MinTileRow>
            <MaxTileRow>49985</MaxTileRow>
            <MinTileCol>1131</MinTileCol>
            <MaxTileCol>130553</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90388</MinTileRow>
            <MaxTileRow>99971</MaxTileRow>
            <MinTileCol>2262</MinTileCol>
            <MaxTileCol>261107</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180776</MinTileRow>
            <MaxTileRow>199943</MaxTileRow>
            <MinTileCol>4524</MinTileCol>
            <MaxTileCol>522215</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361553</MinTileRow>
            <MaxTileRow>399886</MaxTileRow>
            <MinTileCol>9049</MinTileCol>
            <MaxTileCol>1044431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>723107</MinTileRow>
            <MaxTileRow>799772</MaxTileRow>
            <MinTileCol>18098</MinTileCol>
            <MaxTileCol>2088863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1446215</MinTileRow>
            <MaxTileRow>1599544</MaxTileRow>
            <MinTileCol>36197</MinTileCol>
            <MaxTileCol>4177727</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>1</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>4</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>8</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1230</MinTileRow>
            <MaxTileRow>1330</MaxTileRow>
            <MinTileCol>17</MinTileCol>
            <MaxTileCol>2039</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2461</MinTileRow>
            <MaxTileRow>2660</MaxTileRow>
            <MinTileCol>35</MinTileCol>
            <MaxTileCol>4079</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4923</MinTileRow>
            <MaxTileRow>5320</MaxTileRow>
            <MinTileCol>70</MinTileCol>
            <MaxTileCol>8159</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9846</MinTileRow>
            <MaxTileRow>10640</MaxTileRow>
            <MinTileCol>141</MinTileCol>
            <MaxTileCol>16319</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19692</MinTileRow>
            <MaxTileRow>21281</MaxTileRow>
            <MinTileCol>282</MinTileCol>
            <MaxTileCol>32638</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39384</MinTileRow>
            <MaxTileRow>42562</MaxTileRow>
            <MinTileCol>565</MinTileCol>
            <MaxTileCol>65276</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78769</MinTileRow>
            <MaxTileRow>85125</MaxTileRow>
            <MinTileCol>1131</MinTileCol>
            <MaxTileCol>130553</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157539</MinTileRow>
            <MaxTileRow>170251</MaxTileRow>
            <MinTileCol>2262</MinTileCol>
            <MaxTileCol>261107</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315079</MinTileRow>
            <MaxTileRow>340503</MaxTileRow>
            <MinTileCol>4524</MinTileCol>
            <MaxTileCol>522215</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630158</MinTileRow>
            <MaxTileRow>681006</MaxTileRow>
            <MinTileCol>9049</MinTileCol>
            <MaxTileCol>1044431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1260317</MinTileRow>
            <MaxTileRow>1362012</MaxTileRow>
            <MinTileCol>18098</MinTileCol>
            <MaxTileCol>2088863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2520634</MinTileRow>
            <MaxTileRow>2724024</MaxTileRow>
            <MinTileCol>36197</MinTileCol>
            <MaxTileCol>4177727</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5041269</MinTileRow>
            <MaxTileRow>5448049</MaxTileRow>
            <MinTileCol>72395</MinTileCol>
            <MaxTileCol>8355455</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10082539</MinTileRow>
            <MaxTileRow>10896099</MaxTileRow>
            <MinTileCol>144790</MinTileCol>
            <MaxTileCol>16710910</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20165079</MinTileRow>
            <MaxTileRow>21792198</MaxTileRow>
            <MinTileCol>289580</MinTileCol>
            <MaxTileCol>33421821</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40330159</MinTileRow>
            <MaxTileRow>43584397</MaxTileRow>
            <MinTileCol>579160</MinTileCol>
            <MaxTileCol>66843642</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80660318</MinTileRow>
            <MaxTileRow>87168795</MaxTileRow>
            <MinTileCol>1158320</MinTileCol>
            <MaxTileCol>133687285</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161320636</MinTileRow>
            <MaxTileRow>174337591</MaxTileRow>
            <MinTileCol>2316641</MinTileCol>
            <MaxTileCol>267374571</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322641273</MinTileRow>
            <MaxTileRow>348675183</MaxTileRow>
            <MinTileCol>4633282</MinTileCol>
            <MaxTileCol>534749143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645282547</MinTileRow>
            <MaxTileRow>697350367</MaxTileRow>
            <MinTileCol>9266564</MinTileCol>
            <MaxTileCol>1069498286</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="application/vnd.mapbox-vector-tile" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=application/vnd.mapbox-vector-tile&amp;BUFFER={BUFFER}"/>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png&amp;BUFFER={BUFFER}"/>
      <ResourceURL format="image/vnd.jpeg-png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/vnd.jpeg-png&amp;BUFFER={BUFFER}"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg&amp;BUFFER={BUFFER}"/>
      <ResourceURL format="application/json;type=geojson" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=application/json;type=geojson&amp;BUFFER={BUFFER}"/>
      <ResourceURL format="image/vnd.jpeg-png8" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/vnd.jpeg-png8&amp;BUFFER={BUFFER}"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain&amp;BUFFER={BUFFER}"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml&amp;BUFFER={BUFFER}"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml&amp;BUFFER={BUFFER}"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1&amp;BUFFER={BUFFER}"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml&amp;BUFFER={BUFFER}"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html&amp;BUFFER={BUFFER}"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json&amp;BUFFER={BUFFER}"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/tilejson/pbf?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/tilejson/jpeg-png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/tilejson/jpeg?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/tilejson/geojson?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:sa2_zones/{style}/tilejson/jpeg-png8?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_std_75_100</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_std_75_100</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_std_75_100" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_75_100/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_75_100/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_75_100/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>meta_model_age_hexagon</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.28066501389824 -46.804608057067746</ows:LowerCorner>
        <ows:UpperCorner>179.4183211442365 -34.22377078051275</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:meta_model_age_hexagon</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw:twotw_age_10m</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=138&amp;height=140&amp;layer=twotw%3Ameta_model_age_hexagon" width="138" height="140"/>
      </Style>
      <Style>
        <ows:Identifier>twotw:twotw_age_20m</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=138&amp;height=140&amp;layer=twotw%3Ameta_model_age_hexagon&amp;style=twotw_age_20m" width="138" height="140"/>
      </Style>
      <Style>
        <ows:Identifier>twotw:twotw_age_30m</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=138&amp;height=140&amp;layer=twotw%3Ameta_model_age_hexagon&amp;style=twotw_age_30m" width="138" height="140"/>
      </Style>
      <Style>
        <ows:Identifier>twotw:twotw_age_40m</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=138&amp;height=140&amp;layer=twotw%3Ameta_model_age_hexagon&amp;style=twotw_age_40m" width="138" height="140"/>
      </Style>
      <Style>
        <ows:Identifier>twotw:twotw_age_50m</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=138&amp;height=140&amp;layer=twotw%3Ameta_model_age_hexagon&amp;style=twotw_age_50m" width="138" height="140"/>
      </Style>
      <Style>
        <ows:Identifier>twotw:twotw_age_60m</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=138&amp;height=140&amp;layer=twotw%3Ameta_model_age_hexagon&amp;style=twotw_age_60m" width="138" height="140"/>
      </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>WebMercatorQuad</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>663</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>11</TileMatrix>
            <MinTileRow>1231</MinTileRow>
            <MaxTileRow>1326</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>12</TileMatrix>
            <MinTileRow>2462</MinTileRow>
            <MaxTileRow>2652</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>13</TileMatrix>
            <MinTileRow>4925</MinTileRow>
            <MaxTileRow>5304</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8178</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>14</TileMatrix>
            <MinTileRow>9851</MinTileRow>
            <MaxTileRow>10608</MaxTileRow>
            <MinTileCol>15759</MinTileCol>
            <MaxTileCol>16357</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>15</TileMatrix>
            <MinTileRow>19702</MinTileRow>
            <MaxTileRow>21216</MaxTileRow>
            <MinTileCol>31519</MinTileCol>
            <MaxTileCol>32715</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>16</TileMatrix>
            <MinTileRow>39405</MinTileRow>
            <MaxTileRow>42433</MaxTileRow>
            <MinTileCol>63038</MinTileCol>
            <MaxTileCol>65430</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>17</TileMatrix>
            <MinTileRow>78811</MinTileRow>
            <MaxTileRow>84866</MaxTileRow>
            <MinTileCol>126076</MinTileCol>
            <MaxTileCol>130860</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>18</TileMatrix>
            <MinTileRow>157622</MinTileRow>
            <MaxTileRow>169732</MaxTileRow>
            <MinTileCol>252153</MinTileCol>
            <MaxTileCol>261720</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>19</TileMatrix>
            <MinTileRow>315245</MinTileRow>
            <MaxTileRow>339465</MaxTileRow>
            <MinTileCol>504307</MinTileCol>
            <MaxTileCol>523440</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>20</TileMatrix>
            <MinTileRow>630490</MinTileRow>
            <MaxTileRow>678931</MaxTileRow>
            <MinTileCol>1008615</MinTileCol>
            <MaxTileCol>1046881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>21</TileMatrix>
            <MinTileRow>1260980</MinTileRow>
            <MaxTileRow>1357862</MaxTileRow>
            <MinTileCol>2017231</MinTileCol>
            <MaxTileCol>2093763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>22</TileMatrix>
            <MinTileRow>2521960</MinTileRow>
            <MaxTileRow>2715725</MaxTileRow>
            <MinTileCol>4034462</MinTileCol>
            <MaxTileCol>4187526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>23</TileMatrix>
            <MinTileRow>5043921</MinTileRow>
            <MaxTileRow>5431450</MaxTileRow>
            <MinTileCol>8068924</MinTileCol>
            <MaxTileCol>8375053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>24</TileMatrix>
            <MinTileRow>10087842</MinTileRow>
            <MaxTileRow>10862901</MaxTileRow>
            <MinTileCol>16137848</MinTileCol>
            <MaxTileCol>16750107</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <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>194</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>389</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>706</MinTileRow>
            <MaxTileRow>778</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1413</MinTileRow>
            <MaxTileRow>1556</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2826</MinTileRow>
            <MaxTileRow>3113</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8178</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5653</MinTileRow>
            <MaxTileRow>6226</MaxTileRow>
            <MinTileCol>15759</MinTileCol>
            <MaxTileCol>16357</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11307</MinTileRow>
            <MaxTileRow>12452</MaxTileRow>
            <MinTileCol>31519</MinTileCol>
            <MaxTileCol>32715</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22614</MinTileRow>
            <MaxTileRow>24904</MaxTileRow>
            <MinTileCol>63038</MinTileCol>
            <MaxTileCol>65430</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45228</MinTileRow>
            <MaxTileRow>49809</MaxTileRow>
            <MinTileCol>126076</MinTileCol>
            <MaxTileCol>130860</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90456</MinTileRow>
            <MaxTileRow>99618</MaxTileRow>
            <MinTileCol>252153</MinTileCol>
            <MaxTileCol>261720</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180913</MinTileRow>
            <MaxTileRow>199236</MaxTileRow>
            <MinTileCol>504307</MinTileCol>
            <MaxTileCol>523440</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361827</MinTileRow>
            <MaxTileRow>398472</MaxTileRow>
            <MinTileCol>1008615</MinTileCol>
            <MaxTileCol>1046881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>723655</MinTileRow>
            <MaxTileRow>796944</MaxTileRow>
            <MinTileCol>2017231</MinTileCol>
            <MaxTileCol>2093763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1447311</MinTileRow>
            <MaxTileRow>1593889</MaxTileRow>
            <MinTileCol>4034462</MinTileCol>
            <MaxTileCol>4187526</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>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>663</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1231</MinTileRow>
            <MaxTileRow>1326</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2462</MinTileRow>
            <MaxTileRow>2652</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4925</MinTileRow>
            <MaxTileRow>5304</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8178</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9851</MinTileRow>
            <MaxTileRow>10608</MaxTileRow>
            <MinTileCol>15759</MinTileCol>
            <MaxTileCol>16357</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19702</MinTileRow>
            <MaxTileRow>21216</MaxTileRow>
            <MinTileCol>31519</MinTileCol>
            <MaxTileCol>32715</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39405</MinTileRow>
            <MaxTileRow>42433</MaxTileRow>
            <MinTileCol>63038</MinTileCol>
            <MaxTileCol>65430</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78811</MinTileRow>
            <MaxTileRow>84866</MaxTileRow>
            <MinTileCol>126076</MinTileCol>
            <MaxTileCol>130860</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157622</MinTileRow>
            <MaxTileRow>169732</MaxTileRow>
            <MinTileCol>252153</MinTileCol>
            <MaxTileCol>261720</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315245</MinTileRow>
            <MaxTileRow>339465</MaxTileRow>
            <MinTileCol>504307</MinTileCol>
            <MaxTileCol>523440</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630490</MinTileRow>
            <MaxTileRow>678931</MaxTileRow>
            <MinTileCol>1008615</MinTileCol>
            <MaxTileCol>1046881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1260980</MinTileRow>
            <MaxTileRow>1357862</MaxTileRow>
            <MinTileCol>2017231</MinTileCol>
            <MaxTileCol>2093763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2521960</MinTileRow>
            <MaxTileRow>2715725</MaxTileRow>
            <MinTileCol>4034462</MinTileCol>
            <MaxTileCol>4187526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5043921</MinTileRow>
            <MaxTileRow>5431450</MaxTileRow>
            <MinTileCol>8068924</MinTileCol>
            <MaxTileCol>8375053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10087842</MinTileRow>
            <MaxTileRow>10862901</MaxTileRow>
            <MinTileCol>16137848</MinTileCol>
            <MaxTileCol>16750107</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20175685</MinTileRow>
            <MaxTileRow>21725803</MaxTileRow>
            <MinTileCol>32275697</MinTileCol>
            <MaxTileCol>33500215</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40351370</MinTileRow>
            <MaxTileRow>43451606</MaxTileRow>
            <MinTileCol>64551394</MinTileCol>
            <MaxTileCol>67000431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80702740</MinTileRow>
            <MaxTileRow>86903213</MaxTileRow>
            <MinTileCol>129102789</MinTileCol>
            <MaxTileCol>134000862</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161405480</MinTileRow>
            <MaxTileRow>173806426</MaxTileRow>
            <MinTileCol>258205578</MinTileCol>
            <MaxTileCol>268001724</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322810961</MinTileRow>
            <MaxTileRow>347612853</MaxTileRow>
            <MinTileCol>516411156</MinTileCol>
            <MaxTileCol>536003449</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645621922</MinTileRow>
            <MaxTileRow>695225707</MaxTileRow>
            <MinTileCol>1032822313</MinTileCol>
            <MaxTileCol>1072006899</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:meta_model_age_hexagon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:meta_model_age_hexagon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:meta_model_age_hexagon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:meta_model_age_hexagon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:meta_model_age_hexagon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:meta_model_age_hexagon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:meta_model_age_hexagon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:meta_model_age_hexagon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:meta_model_age_hexagon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:meta_model_age_hexagon/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:meta_model_age_hexagon/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>GRATICULE_5_DEGREE</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>164.89826525484307 -47.506336749678084</ows:LowerCorner>
        <ows:UpperCorner>179.87811421736072 -33.95274536243223</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:GRATICULE_5_DEGREE</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:graticule_5</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AGRATICULE_5_DEGREE" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>490</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>981</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>705</MinTileRow>
            <MaxTileRow>782</MaxTileRow>
            <MinTileCol>1962</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1410</MinTileRow>
            <MaxTileRow>1564</MaxTileRow>
            <MinTileCol>3924</MinTileCol>
            <MaxTileCol>4094</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2820</MinTileRow>
            <MaxTileRow>3129</MaxTileRow>
            <MinTileCol>7848</MinTileCol>
            <MaxTileCol>8189</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5641</MinTileRow>
            <MaxTileRow>6258</MaxTileRow>
            <MinTileCol>15696</MinTileCol>
            <MaxTileCol>16378</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11282</MinTileRow>
            <MaxTileRow>12516</MaxTileRow>
            <MinTileCol>31393</MinTileCol>
            <MaxTileCol>32756</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22564</MinTileRow>
            <MaxTileRow>25032</MaxTileRow>
            <MinTileCol>62786</MinTileCol>
            <MaxTileCol>65513</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45129</MinTileRow>
            <MaxTileRow>50064</MaxTileRow>
            <MinTileCol>125573</MinTileCol>
            <MaxTileCol>131027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90259</MinTileRow>
            <MaxTileRow>100129</MaxTileRow>
            <MinTileCol>251147</MinTileCol>
            <MaxTileCol>262055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180519</MinTileRow>
            <MaxTileRow>200258</MaxTileRow>
            <MinTileCol>502294</MinTileCol>
            <MaxTileCol>524110</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361038</MinTileRow>
            <MaxTileRow>400516</MaxTileRow>
            <MinTileCol>1004589</MinTileCol>
            <MaxTileCol>1048220</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>722077</MinTileRow>
            <MaxTileRow>801032</MaxTileRow>
            <MinTileCol>2009178</MinTileCol>
            <MaxTileCol>2096441</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1444154</MinTileRow>
            <MaxTileRow>1602064</MaxTileRow>
            <MinTileCol>4018356</MinTileCol>
            <MaxTileCol>4192883</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>490</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>981</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1331</MaxTileRow>
            <MinTileCol>1962</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2459</MinTileRow>
            <MaxTileRow>2663</MaxTileRow>
            <MinTileCol>3924</MinTileCol>
            <MaxTileCol>4094</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4918</MinTileRow>
            <MaxTileRow>5327</MaxTileRow>
            <MinTileCol>7848</MinTileCol>
            <MaxTileCol>8189</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9836</MinTileRow>
            <MaxTileRow>10655</MaxTileRow>
            <MinTileCol>15696</MinTileCol>
            <MaxTileCol>16378</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19673</MinTileRow>
            <MaxTileRow>21310</MaxTileRow>
            <MinTileCol>31393</MinTileCol>
            <MaxTileCol>32756</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39346</MinTileRow>
            <MaxTileRow>42621</MaxTileRow>
            <MinTileCol>62786</MinTileCol>
            <MaxTileCol>65513</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78692</MinTileRow>
            <MaxTileRow>85242</MaxTileRow>
            <MinTileCol>125573</MinTileCol>
            <MaxTileCol>131027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157384</MinTileRow>
            <MaxTileRow>170484</MaxTileRow>
            <MinTileCol>251147</MinTileCol>
            <MaxTileCol>262055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314768</MinTileRow>
            <MaxTileRow>340968</MaxTileRow>
            <MinTileCol>502294</MinTileCol>
            <MaxTileCol>524110</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629536</MinTileRow>
            <MaxTileRow>681937</MaxTileRow>
            <MinTileCol>1004589</MinTileCol>
            <MaxTileCol>1048220</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1259073</MinTileRow>
            <MaxTileRow>1363874</MaxTileRow>
            <MinTileCol>2009178</MinTileCol>
            <MaxTileCol>2096441</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2518147</MinTileRow>
            <MaxTileRow>2727748</MaxTileRow>
            <MinTileCol>4018356</MinTileCol>
            <MaxTileCol>4192883</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5036295</MinTileRow>
            <MaxTileRow>5455497</MaxTileRow>
            <MinTileCol>8036712</MinTileCol>
            <MaxTileCol>8385767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10072591</MinTileRow>
            <MaxTileRow>10910994</MaxTileRow>
            <MinTileCol>16073424</MinTileCol>
            <MaxTileCol>16771535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20145182</MinTileRow>
            <MaxTileRow>21821988</MaxTileRow>
            <MinTileCol>32146848</MinTileCol>
            <MaxTileCol>33543071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40290365</MinTileRow>
            <MaxTileRow>43643977</MaxTileRow>
            <MinTileCol>64293696</MinTileCol>
            <MaxTileCol>67086142</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80580730</MinTileRow>
            <MaxTileRow>87287955</MaxTileRow>
            <MinTileCol>128587393</MinTileCol>
            <MaxTileCol>134172285</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161161460</MinTileRow>
            <MaxTileRow>174575910</MaxTileRow>
            <MinTileCol>257174786</MinTileCol>
            <MaxTileCol>268344571</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322322920</MinTileRow>
            <MaxTileRow>349151821</MaxTileRow>
            <MinTileCol>514349572</MinTileCol>
            <MaxTileCol>536689142</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644645841</MinTileRow>
            <MaxTileRow>698303642</MaxTileRow>
            <MinTileCol>1028699145</MinTileCol>
            <MaxTileCol>1073378285</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GRATICULE_5_DEGREE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GRATICULE_5_DEGREE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GRATICULE_5_DEGREE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GRATICULE_5_DEGREE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GRATICULE_5_DEGREE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GRATICULE_5_DEGREE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GRATICULE_5_DEGREE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GRATICULE_5_DEGREE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GRATICULE_5_DEGREE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GRATICULE_5_DEGREE/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GRATICULE_5_DEGREE/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>GPS_Beacon</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:GPS_Beacon</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:gps_beacon_clean</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=106&amp;height=100&amp;layer=gns%3AGPS_Beacon" width="106" height="100" maxScaleDenominator="799000.0"/>
      </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>1</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>22</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>5</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>10</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>20</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>40</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>80</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>160</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>321</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>643</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>1286</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>2572</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>5144</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>10289</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>20578</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>41156</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>82313</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>164626</MinTileCol>
            <MaxTileCol>4185802</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>1</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>5</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>10</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>20</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>40</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>80</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>160</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>321</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>643</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>1286</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>2572</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>5144</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>10289</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>20578</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>41156</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>82313</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>164626</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>329252</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>658505</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>1317011</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>2634022</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>5268045</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>10536091</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>21072183</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>42144366</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Beacon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Beacon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Beacon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Beacon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Beacon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Beacon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Beacon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Beacon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Beacon/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Beacon/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Beacon/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_std_50_75</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_std_50_75</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_std_50_75" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_50_75/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_50_75/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_50_75/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZ Gravity Anomaly</ows:Title>
      <ows:Abstract/>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-179.99999999999957 -65.00000000000003</ows:LowerCorner>
        <ows:UpperCorner>179.99999999999957 -10.000000000000002</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZGravity</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier/>
      </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>4</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>8</MinTileRow>
            <MaxTileRow>13</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>17</MinTileRow>
            <MaxTileRow>27</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>35</MinTileRow>
            <MaxTileRow>55</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>71</MinTileRow>
            <MaxTileRow>110</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>142</MinTileRow>
            <MaxTileRow>220</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>284</MinTileRow>
            <MaxTileRow>440</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>568</MinTileRow>
            <MaxTileRow>881</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1137</MinTileRow>
            <MaxTileRow>1763</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2275</MinTileRow>
            <MaxTileRow>3527</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>4551</MinTileRow>
            <MaxTileRow>7054</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>9102</MinTileRow>
            <MaxTileRow>14108</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>18204</MinTileRow>
            <MaxTileRow>28216</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>36408</MinTileRow>
            <MaxTileRow>56433</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>72817</MinTileRow>
            <MaxTileRow>112867</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>145635</MinTileRow>
            <MaxTileRow>225735</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>291271</MinTileRow>
            <MaxTileRow>451470</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>582542</MinTileRow>
            <MaxTileRow>902940</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1165084</MinTileRow>
            <MaxTileRow>1805880</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>8</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>16</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>33</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>67</MinTileRow>
            <MaxTileRow>94</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>135</MinTileRow>
            <MaxTileRow>189</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>270</MinTileRow>
            <MaxTileRow>378</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>540</MinTileRow>
            <MaxTileRow>757</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1081</MinTileRow>
            <MaxTileRow>1515</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2162</MinTileRow>
            <MaxTileRow>3030</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4324</MinTileRow>
            <MaxTileRow>6060</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>8649</MinTileRow>
            <MaxTileRow>12120</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>17298</MinTileRow>
            <MaxTileRow>24240</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>34597</MinTileRow>
            <MaxTileRow>48480</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>69195</MinTileRow>
            <MaxTileRow>96961</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>138391</MinTileRow>
            <MaxTileRow>193923</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>276782</MinTileRow>
            <MaxTileRow>387847</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>553564</MinTileRow>
            <MaxTileRow>775694</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1107128</MinTileRow>
            <MaxTileRow>1551388</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2214256</MinTileRow>
            <MaxTileRow>3102776</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4194303</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>4428512</MinTileRow>
            <MaxTileRow>6205553</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8388607</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>8857025</MinTileRow>
            <MaxTileRow>12411107</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16777215</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>17714051</MinTileRow>
            <MaxTileRow>24822214</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>33554431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>35428103</MinTileRow>
            <MaxTileRow>49644428</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>67108863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>70856207</MinTileRow>
            <MaxTileRow>99288857</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>134217727</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>141712415</MinTileRow>
            <MaxTileRow>198577715</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>268435455</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>283424831</MinTileRow>
            <MaxTileRow>397155431</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>536870911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>566849663</MinTileRow>
            <MaxTileRow>794310863</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1073741823</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravity/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravity/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravity/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravity/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravity/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravity/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravity/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravity/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravity/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravity/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravity/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>pg_fred_site_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-179.95 -85.5</ows:LowerCorner>
        <ows:UpperCorner>179.9336372782296 67.2120772679438</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:pg_fred_site_view</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:fred_point</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Apg_fred_site_view" 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>0</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>7</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>15</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>31</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>8</MinTileRow>
            <MaxTileRow>62</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>16</MinTileRow>
            <MaxTileRow>124</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>32</MinTileRow>
            <MaxTileRow>249</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>64</MinTileRow>
            <MaxTileRow>499</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>129</MinTileRow>
            <MaxTileRow>998</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>259</MinTileRow>
            <MaxTileRow>1996</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>518</MinTileRow>
            <MaxTileRow>3993</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>8190</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>1037</MinTileRow>
            <MaxTileRow>7987</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>16380</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>2074</MinTileRow>
            <MaxTileRow>15974</MaxTileRow>
            <MinTileCol>4</MinTileCol>
            <MaxTileCol>32761</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>4148</MinTileRow>
            <MaxTileRow>31948</MaxTileRow>
            <MinTileCol>9</MinTileCol>
            <MaxTileCol>65523</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>8296</MinTileRow>
            <MaxTileRow>63897</MaxTileRow>
            <MinTileCol>18</MinTileCol>
            <MaxTileCol>131047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>16593</MinTileRow>
            <MaxTileRow>127795</MaxTileRow>
            <MinTileCol>36</MinTileCol>
            <MaxTileCol>262095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>33187</MinTileRow>
            <MaxTileRow>255590</MaxTileRow>
            <MinTileCol>72</MinTileCol>
            <MaxTileCol>524191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>66374</MinTileRow>
            <MaxTileRow>511180</MaxTileRow>
            <MinTileCol>145</MinTileCol>
            <MaxTileCol>1048382</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>132749</MinTileRow>
            <MaxTileRow>1022361</MaxTileRow>
            <MinTileCol>291</MinTileCol>
            <MaxTileCol>2096765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>265498</MinTileRow>
            <MaxTileRow>2044723</MaxTileRow>
            <MinTileCol>582</MinTileCol>
            <MaxTileCol>4193530</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>0</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>7</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>3</MinTileRow>
            <MaxTileRow>15</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>7</MinTileRow>
            <MaxTileRow>31</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>15</MinTileRow>
            <MaxTileRow>63</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>31</MinTileRow>
            <MaxTileRow>127</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>62</MinTileRow>
            <MaxTileRow>255</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>125</MinTileRow>
            <MaxTileRow>511</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>250</MinTileRow>
            <MaxTileRow>1023</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>501</MinTileRow>
            <MaxTileRow>2047</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>1003</MinTileRow>
            <MaxTileRow>4095</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>2007</MinTileRow>
            <MaxTileRow>8191</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>8190</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>4015</MinTileRow>
            <MaxTileRow>16383</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>16380</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>8030</MinTileRow>
            <MaxTileRow>32767</MaxTileRow>
            <MinTileCol>4</MinTileCol>
            <MaxTileCol>32761</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>16060</MinTileRow>
            <MaxTileRow>65535</MaxTileRow>
            <MinTileCol>9</MinTileCol>
            <MaxTileCol>65523</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>32120</MinTileRow>
            <MaxTileRow>131071</MaxTileRow>
            <MinTileCol>18</MinTileCol>
            <MaxTileCol>131047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>64240</MinTileRow>
            <MaxTileRow>262143</MaxTileRow>
            <MinTileCol>36</MinTileCol>
            <MaxTileCol>262095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>128481</MinTileRow>
            <MaxTileRow>524287</MaxTileRow>
            <MinTileCol>72</MinTileCol>
            <MaxTileCol>524191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>256963</MinTileRow>
            <MaxTileRow>1048575</MaxTileRow>
            <MinTileCol>145</MinTileCol>
            <MaxTileCol>1048382</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>513927</MinTileRow>
            <MaxTileRow>2097151</MaxTileRow>
            <MinTileCol>291</MinTileCol>
            <MaxTileCol>2096765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>1027854</MinTileRow>
            <MaxTileRow>4194303</MaxTileRow>
            <MinTileCol>582</MinTileCol>
            <MaxTileCol>4193530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>2055708</MinTileRow>
            <MaxTileRow>8388607</MaxTileRow>
            <MinTileCol>1165</MinTileCol>
            <MaxTileCol>8387061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>4111416</MinTileRow>
            <MaxTileRow>16777215</MaxTileRow>
            <MinTileCol>2330</MinTileCol>
            <MaxTileCol>16774123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>8222832</MinTileRow>
            <MaxTileRow>33554431</MaxTileRow>
            <MinTileCol>4660</MinTileCol>
            <MaxTileCol>33548246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>16445664</MinTileRow>
            <MaxTileRow>67108863</MaxTileRow>
            <MinTileCol>9320</MinTileCol>
            <MaxTileCol>67096493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>32891329</MinTileRow>
            <MaxTileRow>134217727</MaxTileRow>
            <MinTileCol>18641</MinTileCol>
            <MaxTileCol>134192986</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>65782658</MinTileRow>
            <MaxTileRow>268435455</MaxTileRow>
            <MinTileCol>37282</MinTileCol>
            <MaxTileCol>268385972</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>131565317</MinTileRow>
            <MaxTileRow>536870911</MaxTileRow>
            <MinTileCol>74565</MinTileCol>
            <MaxTileCol>536771944</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>263130635</MinTileRow>
            <MaxTileRow>1073741823</MaxTileRow>
            <MinTileCol>149130</MinTileCol>
            <MaxTileCol>1073543889</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_fred_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_fred_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_fred_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_fred_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_fred_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_fred_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_fred_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_fred_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_fred_site_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_fred_site_view/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:pg_fred_site_view/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>MINERAL.COAL_DRILLHOLE</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>167.69674163256448 -46.64201419962124</ows:LowerCorner>
        <ows:UpperCorner>176.2286389338277 -34.94414198818798</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:MINERAL.COAL_DRILLHOLE</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:point_black</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AMINERAL.COAL_DRILLHOLE" 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>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>177</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>355</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>710</MinTileRow>
            <MaxTileRow>777</MaxTileRow>
            <MinTileCol>1978</MinTileCol>
            <MaxTileCol>2026</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1421</MinTileRow>
            <MaxTileRow>1554</MaxTileRow>
            <MinTileCol>3956</MinTileCol>
            <MaxTileCol>4053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2843</MinTileRow>
            <MaxTileRow>3109</MaxTileRow>
            <MinTileCol>7912</MinTileCol>
            <MaxTileCol>8106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5686</MinTileRow>
            <MaxTileRow>6218</MaxTileRow>
            <MinTileCol>15824</MinTileCol>
            <MaxTileCol>16212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11372</MinTileRow>
            <MaxTileRow>12437</MaxTileRow>
            <MinTileCol>31648</MinTileCol>
            <MaxTileCol>32424</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22745</MinTileRow>
            <MaxTileRow>24874</MaxTileRow>
            <MinTileCol>63296</MinTileCol>
            <MaxTileCol>64849</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45490</MinTileRow>
            <MaxTileRow>49749</MaxTileRow>
            <MinTileCol>126592</MinTileCol>
            <MaxTileCol>129698</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90981</MinTileRow>
            <MaxTileRow>99499</MaxTileRow>
            <MinTileCol>253185</MinTileCol>
            <MaxTileCol>259397</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>181963</MinTileRow>
            <MaxTileRow>198999</MaxTileRow>
            <MinTileCol>506370</MinTileCol>
            <MaxTileCol>518795</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>363926</MinTileRow>
            <MaxTileRow>397998</MaxTileRow>
            <MinTileCol>1012740</MinTileCol>
            <MaxTileCol>1037591</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>727852</MinTileRow>
            <MaxTileRow>795997</MaxTileRow>
            <MinTileCol>2025480</MinTileCol>
            <MaxTileCol>2075182</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1455704</MinTileRow>
            <MaxTileRow>1591994</MaxTileRow>
            <MinTileCol>4050960</MinTileCol>
            <MaxTileCol>4150364</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>77</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>618</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1236</MinTileRow>
            <MaxTileRow>1324</MaxTileRow>
            <MinTileCol>1978</MinTileCol>
            <MaxTileCol>2026</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2472</MinTileRow>
            <MaxTileRow>2649</MaxTileRow>
            <MinTileCol>3956</MinTileCol>
            <MaxTileCol>4053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4945</MinTileRow>
            <MaxTileRow>5298</MaxTileRow>
            <MinTileCol>7912</MinTileCol>
            <MaxTileCol>8106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9891</MinTileRow>
            <MaxTileRow>10597</MaxTileRow>
            <MinTileCol>15824</MinTileCol>
            <MaxTileCol>16212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19782</MinTileRow>
            <MaxTileRow>21195</MaxTileRow>
            <MinTileCol>31648</MinTileCol>
            <MaxTileCol>32424</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39564</MinTileRow>
            <MaxTileRow>42390</MaxTileRow>
            <MinTileCol>63296</MinTileCol>
            <MaxTileCol>64849</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79129</MinTileRow>
            <MaxTileRow>84780</MaxTileRow>
            <MinTileCol>126592</MinTileCol>
            <MaxTileCol>129698</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158259</MinTileRow>
            <MaxTileRow>169560</MaxTileRow>
            <MinTileCol>253185</MinTileCol>
            <MaxTileCol>259397</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>316519</MinTileRow>
            <MaxTileRow>339120</MaxTileRow>
            <MinTileCol>506370</MinTileCol>
            <MaxTileCol>518795</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>633038</MinTileRow>
            <MaxTileRow>678240</MaxTileRow>
            <MinTileCol>1012740</MinTileCol>
            <MaxTileCol>1037591</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1266077</MinTileRow>
            <MaxTileRow>1356481</MaxTileRow>
            <MinTileCol>2025480</MinTileCol>
            <MaxTileCol>2075182</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2532155</MinTileRow>
            <MaxTileRow>2712962</MaxTileRow>
            <MinTileCol>4050960</MinTileCol>
            <MaxTileCol>4150364</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5064310</MinTileRow>
            <MaxTileRow>5425924</MaxTileRow>
            <MinTileCol>8101921</MinTileCol>
            <MaxTileCol>8300728</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10128620</MinTileRow>
            <MaxTileRow>10851848</MaxTileRow>
            <MinTileCol>16203842</MinTileCol>
            <MaxTileCol>16601457</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20257240</MinTileRow>
            <MaxTileRow>21703696</MaxTileRow>
            <MinTileCol>32407685</MinTileCol>
            <MaxTileCol>33202915</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40514481</MinTileRow>
            <MaxTileRow>43407392</MaxTileRow>
            <MinTileCol>64815370</MinTileCol>
            <MaxTileCol>66405831</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81028962</MinTileRow>
            <MaxTileRow>86814785</MaxTileRow>
            <MinTileCol>129630740</MinTileCol>
            <MaxTileCol>132811662</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162057925</MinTileRow>
            <MaxTileRow>173629570</MaxTileRow>
            <MinTileCol>259261481</MinTileCol>
            <MaxTileCol>265623325</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>324115850</MinTileRow>
            <MaxTileRow>347259141</MaxTileRow>
            <MinTileCol>518522963</MinTileCol>
            <MaxTileCol>531246650</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>648231700</MinTileRow>
            <MaxTileRow>694518282</MaxTileRow>
            <MinTileCol>1037045926</MinTileCol>
            <MaxTileCol>1062493301</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COAL_DRILLHOLE/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COAL_DRILLHOLE/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>COAL_DRILLHOLE</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>167.69674163256448 -46.64201419962124</ows:LowerCorner>
        <ows:UpperCorner>176.2286389338277 -34.94414198818798</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:COAL_DRILLHOLE</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>point</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3ACOAL_DRILLHOLE" 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>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>177</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>355</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>710</MinTileRow>
            <MaxTileRow>777</MaxTileRow>
            <MinTileCol>1978</MinTileCol>
            <MaxTileCol>2026</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1421</MinTileRow>
            <MaxTileRow>1554</MaxTileRow>
            <MinTileCol>3956</MinTileCol>
            <MaxTileCol>4053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2843</MinTileRow>
            <MaxTileRow>3109</MaxTileRow>
            <MinTileCol>7912</MinTileCol>
            <MaxTileCol>8106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5686</MinTileRow>
            <MaxTileRow>6218</MaxTileRow>
            <MinTileCol>15824</MinTileCol>
            <MaxTileCol>16212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11372</MinTileRow>
            <MaxTileRow>12437</MaxTileRow>
            <MinTileCol>31648</MinTileCol>
            <MaxTileCol>32424</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22745</MinTileRow>
            <MaxTileRow>24874</MaxTileRow>
            <MinTileCol>63296</MinTileCol>
            <MaxTileCol>64849</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45490</MinTileRow>
            <MaxTileRow>49749</MaxTileRow>
            <MinTileCol>126592</MinTileCol>
            <MaxTileCol>129698</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90981</MinTileRow>
            <MaxTileRow>99499</MaxTileRow>
            <MinTileCol>253185</MinTileCol>
            <MaxTileCol>259397</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>181963</MinTileRow>
            <MaxTileRow>198999</MaxTileRow>
            <MinTileCol>506370</MinTileCol>
            <MaxTileCol>518795</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>363926</MinTileRow>
            <MaxTileRow>397998</MaxTileRow>
            <MinTileCol>1012740</MinTileCol>
            <MaxTileCol>1037591</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>727852</MinTileRow>
            <MaxTileRow>795997</MaxTileRow>
            <MinTileCol>2025480</MinTileCol>
            <MaxTileCol>2075182</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1455704</MinTileRow>
            <MaxTileRow>1591994</MaxTileRow>
            <MinTileCol>4050960</MinTileCol>
            <MaxTileCol>4150364</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>77</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>618</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1236</MinTileRow>
            <MaxTileRow>1324</MaxTileRow>
            <MinTileCol>1978</MinTileCol>
            <MaxTileCol>2026</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2472</MinTileRow>
            <MaxTileRow>2649</MaxTileRow>
            <MinTileCol>3956</MinTileCol>
            <MaxTileCol>4053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4945</MinTileRow>
            <MaxTileRow>5298</MaxTileRow>
            <MinTileCol>7912</MinTileCol>
            <MaxTileCol>8106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9891</MinTileRow>
            <MaxTileRow>10597</MaxTileRow>
            <MinTileCol>15824</MinTileCol>
            <MaxTileCol>16212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19782</MinTileRow>
            <MaxTileRow>21195</MaxTileRow>
            <MinTileCol>31648</MinTileCol>
            <MaxTileCol>32424</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39564</MinTileRow>
            <MaxTileRow>42390</MaxTileRow>
            <MinTileCol>63296</MinTileCol>
            <MaxTileCol>64849</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79129</MinTileRow>
            <MaxTileRow>84780</MaxTileRow>
            <MinTileCol>126592</MinTileCol>
            <MaxTileCol>129698</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158259</MinTileRow>
            <MaxTileRow>169560</MaxTileRow>
            <MinTileCol>253185</MinTileCol>
            <MaxTileCol>259397</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>316519</MinTileRow>
            <MaxTileRow>339120</MaxTileRow>
            <MinTileCol>506370</MinTileCol>
            <MaxTileCol>518795</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>633038</MinTileRow>
            <MaxTileRow>678240</MaxTileRow>
            <MinTileCol>1012740</MinTileCol>
            <MaxTileCol>1037591</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1266077</MinTileRow>
            <MaxTileRow>1356481</MaxTileRow>
            <MinTileCol>2025480</MinTileCol>
            <MaxTileCol>2075182</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2532155</MinTileRow>
            <MaxTileRow>2712962</MaxTileRow>
            <MinTileCol>4050960</MinTileCol>
            <MaxTileCol>4150364</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5064310</MinTileRow>
            <MaxTileRow>5425924</MaxTileRow>
            <MinTileCol>8101921</MinTileCol>
            <MaxTileCol>8300728</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10128620</MinTileRow>
            <MaxTileRow>10851848</MaxTileRow>
            <MinTileCol>16203842</MinTileCol>
            <MaxTileCol>16601457</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20257240</MinTileRow>
            <MaxTileRow>21703696</MaxTileRow>
            <MinTileCol>32407685</MinTileCol>
            <MaxTileCol>33202915</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40514481</MinTileRow>
            <MaxTileRow>43407392</MaxTileRow>
            <MinTileCol>64815370</MinTileCol>
            <MaxTileCol>66405831</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81028962</MinTileRow>
            <MaxTileRow>86814785</MaxTileRow>
            <MinTileCol>129630740</MinTileCol>
            <MaxTileCol>132811662</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162057925</MinTileRow>
            <MaxTileRow>173629570</MaxTileRow>
            <MinTileCol>259261481</MinTileCol>
            <MaxTileCol>265623325</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>324115850</MinTileRow>
            <MaxTileRow>347259141</MaxTileRow>
            <MinTileCol>518522963</MinTileCol>
            <MaxTileCol>531246650</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>648231700</MinTileRow>
            <MaxTileRow>694518282</MaxTileRow>
            <MinTileCol>1037045926</MinTileCol>
            <MaxTileCol>1062493301</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:COAL_DRILLHOLE/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:COAL_DRILLHOLE/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:COAL_DRILLHOLE/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_median_250_300</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_median_250_300</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_median_250_300" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_250_300/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_250_300/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>gns_room_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>170.51345525897457 -45.88756418421859</ows:LowerCorner>
        <ows:UpperCorner>176.46452933501226 -38.63183502824116</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:mis_gns_room_view_shadow</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Amis_gns_room_view_shadow" 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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>22</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>91</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>249</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>182</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>498</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>365</MinTileRow>
            <MaxTileRow>386</MaxTileRow>
            <MinTileCol>997</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>731</MinTileRow>
            <MaxTileRow>773</MaxTileRow>
            <MinTileCol>1994</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1463</MinTileRow>
            <MaxTileRow>1546</MaxTileRow>
            <MinTileCol>3988</MinTileCol>
            <MaxTileCol>4055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2927</MinTileRow>
            <MaxTileRow>3092</MaxTileRow>
            <MinTileCol>7976</MinTileCol>
            <MaxTileCol>8111</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5854</MinTileRow>
            <MaxTileRow>6184</MaxTileRow>
            <MinTileCol>15952</MinTileCol>
            <MaxTileCol>16223</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11708</MinTileRow>
            <MaxTileRow>12368</MaxTileRow>
            <MinTileCol>31904</MinTileCol>
            <MaxTileCol>32446</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23416</MinTileRow>
            <MaxTileRow>24737</MaxTileRow>
            <MinTileCol>63809</MinTileCol>
            <MaxTileCol>64892</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46833</MinTileRow>
            <MaxTileRow>49475</MaxTileRow>
            <MinTileCol>127618</MinTileCol>
            <MaxTileCol>129784</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>93666</MinTileRow>
            <MaxTileRow>98950</MaxTileRow>
            <MinTileCol>255236</MinTileCol>
            <MaxTileCol>259569</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>187333</MinTileRow>
            <MaxTileRow>197900</MaxTileRow>
            <MinTileCol>510472</MinTileCol>
            <MaxTileCol>519139</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>374667</MinTileRow>
            <MaxTileRow>395801</MaxTileRow>
            <MinTileCol>1020944</MinTileCol>
            <MaxTileCol>1038278</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>749334</MinTileRow>
            <MaxTileRow>791602</MaxTileRow>
            <MinTileCol>2041888</MinTileCol>
            <MaxTileCol>2076556</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1498669</MinTileRow>
            <MaxTileRow>1583204</MaxTileRow>
            <MinTileCol>4083777</MinTileCol>
            <MaxTileCol>4153112</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>157</MinTileRow>
            <MaxTileRow>164</MaxTileRow>
            <MinTileCol>249</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>315</MinTileRow>
            <MaxTileRow>329</MaxTileRow>
            <MinTileCol>498</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>631</MinTileRow>
            <MaxTileRow>659</MaxTileRow>
            <MinTileCol>997</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1262</MinTileRow>
            <MaxTileRow>1318</MaxTileRow>
            <MinTileCol>1994</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2525</MinTileRow>
            <MaxTileRow>2636</MaxTileRow>
            <MinTileCol>3988</MinTileCol>
            <MaxTileCol>4055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5050</MinTileRow>
            <MaxTileRow>5273</MaxTileRow>
            <MinTileCol>7976</MinTileCol>
            <MaxTileCol>8111</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10100</MinTileRow>
            <MaxTileRow>10547</MaxTileRow>
            <MinTileCol>15952</MinTileCol>
            <MaxTileCol>16223</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20201</MinTileRow>
            <MaxTileRow>21095</MaxTileRow>
            <MinTileCol>31904</MinTileCol>
            <MaxTileCol>32446</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40403</MinTileRow>
            <MaxTileRow>42191</MaxTileRow>
            <MinTileCol>63809</MinTileCol>
            <MaxTileCol>64892</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80806</MinTileRow>
            <MaxTileRow>84382</MaxTileRow>
            <MinTileCol>127618</MinTileCol>
            <MaxTileCol>129784</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>161613</MinTileRow>
            <MaxTileRow>168765</MaxTileRow>
            <MinTileCol>255236</MinTileCol>
            <MaxTileCol>259569</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>323227</MinTileRow>
            <MaxTileRow>337530</MaxTileRow>
            <MinTileCol>510472</MinTileCol>
            <MaxTileCol>519139</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>646455</MinTileRow>
            <MaxTileRow>675061</MaxTileRow>
            <MinTileCol>1020944</MinTileCol>
            <MaxTileCol>1038278</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1292911</MinTileRow>
            <MaxTileRow>1350123</MaxTileRow>
            <MinTileCol>2041888</MinTileCol>
            <MaxTileCol>2076556</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2585823</MinTileRow>
            <MaxTileRow>2700247</MaxTileRow>
            <MinTileCol>4083777</MinTileCol>
            <MaxTileCol>4153112</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5171646</MinTileRow>
            <MaxTileRow>5400494</MaxTileRow>
            <MinTileCol>8167555</MinTileCol>
            <MaxTileCol>8306225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10343292</MinTileRow>
            <MaxTileRow>10800988</MaxTileRow>
            <MinTileCol>16335110</MinTileCol>
            <MaxTileCol>16612451</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20686585</MinTileRow>
            <MaxTileRow>21601976</MaxTileRow>
            <MinTileCol>32670221</MinTileCol>
            <MaxTileCol>33224902</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41373170</MinTileRow>
            <MaxTileRow>43203953</MaxTileRow>
            <MinTileCol>65340443</MinTileCol>
            <MaxTileCol>66449804</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82746341</MinTileRow>
            <MaxTileRow>86407906</MaxTileRow>
            <MinTileCol>130680887</MinTileCol>
            <MaxTileCol>132899609</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>165492682</MinTileRow>
            <MaxTileRow>172815813</MaxTileRow>
            <MinTileCol>261361775</MinTileCol>
            <MaxTileCol>265799218</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>330985365</MinTileRow>
            <MaxTileRow>345631627</MaxTileRow>
            <MinTileCol>522723551</MinTileCol>
            <MaxTileCol>531598436</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>661970730</MinTileRow>
            <MaxTileRow>691263255</MaxTileRow>
            <MinTileCol>1045447102</MinTileCol>
            <MaxTileCol>1063196872</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_room_view_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_room_view_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_room_view_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_room_view_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_room_view_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_room_view_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_room_view_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_room_view_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_room_view_shadow/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_room_view_shadow/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:mis_gns_room_view_shadow/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>import_line_job_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-180.0 -90.0</ows:LowerCorner>
        <ows:UpperCorner>180.0 90.0</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:import_line_job_view</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>generic</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Aimport_line_job_view" 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>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_line_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_line_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_line_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_line_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_line_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_line_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_line_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_line_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_line_job_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_line_job_view/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:import_line_job_view/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>surface_water</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>167.63596114351762 -46.63402501396967</ows:LowerCorner>
        <ows:UpperCorner>178.54567740950463 -35.292233868570584</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:surface_water</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw:twotw_surface_water_vector</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=138&amp;height=160&amp;layer=twotw%3Asurface_water" width="138" height="160"/>
      </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>WebMercatorQuad</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>988</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>11</TileMatrix>
            <MinTileRow>1238</MinTileRow>
            <MaxTileRow>1324</MaxTileRow>
            <MinTileCol>1977</MinTileCol>
            <MaxTileCol>2039</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>12</TileMatrix>
            <MinTileRow>2477</MinTileRow>
            <MaxTileRow>2649</MaxTileRow>
            <MinTileCol>3955</MinTileCol>
            <MaxTileCol>4079</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>13</TileMatrix>
            <MinTileRow>4955</MinTileRow>
            <MaxTileRow>5298</MaxTileRow>
            <MinTileCol>7910</MinTileCol>
            <MaxTileCol>8158</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>14</TileMatrix>
            <MinTileRow>9910</MinTileRow>
            <MaxTileRow>10596</MaxTileRow>
            <MinTileCol>15821</MinTileCol>
            <MaxTileCol>16317</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>15</TileMatrix>
            <MinTileRow>19821</MinTileRow>
            <MaxTileRow>21193</MaxTileRow>
            <MinTileCol>31642</MinTileCol>
            <MaxTileCol>32635</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>16</TileMatrix>
            <MinTileRow>39642</MinTileRow>
            <MaxTileRow>42387</MaxTileRow>
            <MinTileCol>63285</MinTileCol>
            <MaxTileCol>65271</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>17</TileMatrix>
            <MinTileRow>79284</MinTileRow>
            <MaxTileRow>84775</MaxTileRow>
            <MinTileCol>126570</MinTileCol>
            <MaxTileCol>130542</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>18</TileMatrix>
            <MinTileRow>158569</MinTileRow>
            <MaxTileRow>169551</MaxTileRow>
            <MinTileCol>253140</MinTileCol>
            <MaxTileCol>261084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>19</TileMatrix>
            <MinTileRow>317139</MinTileRow>
            <MaxTileRow>339103</MaxTileRow>
            <MinTileCol>506281</MinTileCol>
            <MaxTileCol>522169</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>20</TileMatrix>
            <MinTileRow>634278</MinTileRow>
            <MaxTileRow>678206</MaxTileRow>
            <MinTileCol>1012563</MinTileCol>
            <MaxTileCol>1044339</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>21</TileMatrix>
            <MinTileRow>1268556</MinTileRow>
            <MaxTileRow>1356413</MaxTileRow>
            <MinTileCol>2025126</MinTileCol>
            <MaxTileCol>2088679</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>22</TileMatrix>
            <MinTileRow>2537113</MinTileRow>
            <MaxTileRow>2712826</MaxTileRow>
            <MinTileCol>4050252</MinTileCol>
            <MaxTileCol>4177359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>23</TileMatrix>
            <MinTileRow>5074226</MinTileRow>
            <MaxTileRow>5425652</MaxTileRow>
            <MinTileCol>8100505</MinTileCol>
            <MaxTileCol>8354719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>24</TileMatrix>
            <MinTileRow>10148452</MinTileRow>
            <MaxTileRow>10851305</MaxTileRow>
            <MinTileCol>16201010</MinTileCol>
            <MaxTileCol>16709439</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <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>89</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>988</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>712</MinTileRow>
            <MaxTileRow>777</MaxTileRow>
            <MinTileCol>1977</MinTileCol>
            <MaxTileCol>2039</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1425</MinTileRow>
            <MaxTileRow>1554</MaxTileRow>
            <MinTileCol>3955</MinTileCol>
            <MaxTileCol>4079</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2851</MinTileRow>
            <MaxTileRow>3109</MaxTileRow>
            <MinTileCol>7910</MinTileCol>
            <MaxTileCol>8158</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5702</MinTileRow>
            <MaxTileRow>6218</MaxTileRow>
            <MinTileCol>15821</MinTileCol>
            <MaxTileCol>16317</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11404</MinTileRow>
            <MaxTileRow>12436</MaxTileRow>
            <MinTileCol>31642</MinTileCol>
            <MaxTileCol>32635</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22808</MinTileRow>
            <MaxTileRow>24873</MaxTileRow>
            <MinTileCol>63285</MinTileCol>
            <MaxTileCol>65271</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45617</MinTileRow>
            <MaxTileRow>49746</MaxTileRow>
            <MinTileCol>126570</MinTileCol>
            <MaxTileCol>130542</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91235</MinTileRow>
            <MaxTileRow>99493</MaxTileRow>
            <MinTileCol>253140</MinTileCol>
            <MaxTileCol>261084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182470</MinTileRow>
            <MaxTileRow>198987</MaxTileRow>
            <MinTileCol>506281</MinTileCol>
            <MaxTileCol>522169</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>364940</MinTileRow>
            <MaxTileRow>397975</MaxTileRow>
            <MinTileCol>1012563</MinTileCol>
            <MaxTileCol>1044339</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>729880</MinTileRow>
            <MaxTileRow>795950</MaxTileRow>
            <MinTileCol>2025126</MinTileCol>
            <MaxTileCol>2088679</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1459760</MinTileRow>
            <MaxTileRow>1591901</MaxTileRow>
            <MinTileCol>4050252</MinTileCol>
            <MaxTileCol>4177359</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>77</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>509</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>988</MinTileCol>
            <MaxTileCol>1019</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1238</MinTileRow>
            <MaxTileRow>1324</MaxTileRow>
            <MinTileCol>1977</MinTileCol>
            <MaxTileCol>2039</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2477</MinTileRow>
            <MaxTileRow>2649</MaxTileRow>
            <MinTileCol>3955</MinTileCol>
            <MaxTileCol>4079</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4955</MinTileRow>
            <MaxTileRow>5298</MaxTileRow>
            <MinTileCol>7910</MinTileCol>
            <MaxTileCol>8158</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9910</MinTileRow>
            <MaxTileRow>10596</MaxTileRow>
            <MinTileCol>15821</MinTileCol>
            <MaxTileCol>16317</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19821</MinTileRow>
            <MaxTileRow>21193</MaxTileRow>
            <MinTileCol>31642</MinTileCol>
            <MaxTileCol>32635</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39642</MinTileRow>
            <MaxTileRow>42387</MaxTileRow>
            <MinTileCol>63285</MinTileCol>
            <MaxTileCol>65271</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79284</MinTileRow>
            <MaxTileRow>84775</MaxTileRow>
            <MinTileCol>126570</MinTileCol>
            <MaxTileCol>130542</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158569</MinTileRow>
            <MaxTileRow>169551</MaxTileRow>
            <MinTileCol>253140</MinTileCol>
            <MaxTileCol>261084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317139</MinTileRow>
            <MaxTileRow>339103</MaxTileRow>
            <MinTileCol>506281</MinTileCol>
            <MaxTileCol>522169</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634278</MinTileRow>
            <MaxTileRow>678206</MaxTileRow>
            <MinTileCol>1012563</MinTileCol>
            <MaxTileCol>1044339</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1268556</MinTileRow>
            <MaxTileRow>1356413</MaxTileRow>
            <MinTileCol>2025126</MinTileCol>
            <MaxTileCol>2088679</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2537113</MinTileRow>
            <MaxTileRow>2712826</MaxTileRow>
            <MinTileCol>4050252</MinTileCol>
            <MaxTileCol>4177359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5074226</MinTileRow>
            <MaxTileRow>5425652</MaxTileRow>
            <MinTileCol>8100505</MinTileCol>
            <MaxTileCol>8354719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10148452</MinTileRow>
            <MaxTileRow>10851305</MaxTileRow>
            <MinTileCol>16201010</MinTileCol>
            <MaxTileCol>16709439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20296905</MinTileRow>
            <MaxTileRow>21702611</MaxTileRow>
            <MinTileCol>32402020</MinTileCol>
            <MaxTileCol>33418879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40593811</MinTileRow>
            <MaxTileRow>43405223</MaxTileRow>
            <MinTileCol>64804040</MinTileCol>
            <MaxTileCol>66837758</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81187622</MinTileRow>
            <MaxTileRow>86810447</MaxTileRow>
            <MinTileCol>129608080</MinTileCol>
            <MaxTileCol>133675517</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162375244</MinTileRow>
            <MaxTileRow>173620894</MaxTileRow>
            <MinTileCol>259216160</MinTileCol>
            <MaxTileCol>267351034</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>324750489</MinTileRow>
            <MaxTileRow>347241788</MaxTileRow>
            <MinTileCol>518432320</MinTileCol>
            <MaxTileCol>534702068</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>649500978</MinTileRow>
            <MaxTileRow>694483577</MaxTileRow>
            <MinTileCol>1036864641</MinTileCol>
            <MaxTileCol>1069404137</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:surface_water/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:surface_water/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:surface_water/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:surface_water/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:surface_water/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:surface_water/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:surface_water/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:surface_water/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:surface_water/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:surface_water/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:surface_water/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_std_10_20</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_std_10_20</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_std_10_20" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_10_20/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_10_20/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZGravityEast</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-179.99999999999963 -65.0</ows:LowerCorner>
        <ows:UpperCorner>-140.0 -10.000000000000002</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZGravityEast</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3ANZGravityEast" 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>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>8</MinTileRow>
            <MaxTileRow>13</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>17</MinTileRow>
            <MaxTileRow>27</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>35</MinTileRow>
            <MaxTileRow>55</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>14</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>71</MinTileRow>
            <MaxTileRow>110</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>28</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>142</MinTileRow>
            <MaxTileRow>220</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>56</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>284</MinTileRow>
            <MaxTileRow>440</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>113</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>568</MinTileRow>
            <MaxTileRow>881</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>227</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1137</MinTileRow>
            <MaxTileRow>1763</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>455</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2275</MinTileRow>
            <MaxTileRow>3527</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>910</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>4551</MinTileRow>
            <MaxTileRow>7054</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1820</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>9102</MinTileRow>
            <MaxTileRow>14108</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3640</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>18204</MinTileRow>
            <MaxTileRow>28216</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7281</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>36408</MinTileRow>
            <MaxTileRow>56433</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>14563</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>72817</MinTileRow>
            <MaxTileRow>112867</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>29127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>145635</MinTileRow>
            <MaxTileRow>225735</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>58254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>291271</MinTileRow>
            <MaxTileRow>451470</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>116508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>582542</MinTileRow>
            <MaxTileRow>902940</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>233016</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1165084</MinTileRow>
            <MaxTileRow>1805880</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>466033</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>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>8</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>16</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>33</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>67</MinTileRow>
            <MaxTileRow>94</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>14</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>135</MinTileRow>
            <MaxTileRow>189</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>28</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>270</MinTileRow>
            <MaxTileRow>378</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>56</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>540</MinTileRow>
            <MaxTileRow>757</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>113</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1081</MinTileRow>
            <MaxTileRow>1515</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>227</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2162</MinTileRow>
            <MaxTileRow>3030</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>455</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4324</MinTileRow>
            <MaxTileRow>6060</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>910</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>8649</MinTileRow>
            <MaxTileRow>12120</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1820</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>17298</MinTileRow>
            <MaxTileRow>24240</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3640</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>34597</MinTileRow>
            <MaxTileRow>48480</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7281</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>69195</MinTileRow>
            <MaxTileRow>96961</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>14563</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>138391</MinTileRow>
            <MaxTileRow>193923</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>29127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>276782</MinTileRow>
            <MaxTileRow>387847</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>58254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>553564</MinTileRow>
            <MaxTileRow>775694</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>116508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1107128</MinTileRow>
            <MaxTileRow>1551388</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>233016</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2214256</MinTileRow>
            <MaxTileRow>3102776</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>466033</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>4428512</MinTileRow>
            <MaxTileRow>6205553</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>932067</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>8857025</MinTileRow>
            <MaxTileRow>12411107</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1864135</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>17714051</MinTileRow>
            <MaxTileRow>24822214</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3728270</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>35428103</MinTileRow>
            <MaxTileRow>49644428</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7456540</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>70856207</MinTileRow>
            <MaxTileRow>99288857</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>14913080</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>141712415</MinTileRow>
            <MaxTileRow>198577715</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>29826161</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>283424831</MinTileRow>
            <MaxTileRow>397155431</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>59652323</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>566849663</MinTileRow>
            <MaxTileRow>794310863</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>119304647</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityEast/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityEast/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityEast/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityEast/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityEast/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityEast/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityEast/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityEast/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityEast/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityEast/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityEast/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_GP</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_GP</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_gp</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_GP" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GP/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GP/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_GI</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_GI</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_gi</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_GI" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GI/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GI/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GI/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GI/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GI/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GI/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GI/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GI/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GI/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GI/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GI/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>Temp_Iso_0_50_mod</ows:Title>
      <ows:Abstract>Subsurface depth to reach 50 degrees Celsius, measured in meters.  Modeled nationally from well data.  Sourced from GNS Geothermal Team.</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.27046125607993 -41.91578960132826</ows:LowerCorner>
        <ows:UpperCorner>178.97157162333815 -34.03862826210299</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:Temp_Iso_0_50_mod</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:gfg_depth_to_temp</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=54&amp;height=302&amp;layer=gns%3ATemp_Iso_0_50_mod" width="54" height="302"/>
      </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>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>375</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>705</MinTileRow>
            <MaxTileRow>750</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1411</MinTileRow>
            <MaxTileRow>1500</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2822</MinTileRow>
            <MaxTileRow>3001</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8168</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5645</MinTileRow>
            <MaxTileRow>6003</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16337</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11290</MinTileRow>
            <MaxTileRow>12007</MaxTileRow>
            <MinTileCol>32064</MinTileCol>
            <MaxTileCol>32674</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22580</MinTileRow>
            <MaxTileRow>24014</MaxTileRow>
            <MinTileCol>64128</MinTileCol>
            <MaxTileCol>65348</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45161</MinTileRow>
            <MaxTileRow>48029</MaxTileRow>
            <MinTileCol>128257</MinTileCol>
            <MaxTileCol>130697</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90322</MinTileRow>
            <MaxTileRow>96058</MaxTileRow>
            <MinTileCol>256515</MinTileCol>
            <MaxTileCol>261395</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180644</MinTileRow>
            <MaxTileRow>192116</MaxTileRow>
            <MinTileCol>513031</MinTileCol>
            <MaxTileCol>522790</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361288</MinTileRow>
            <MaxTileRow>384232</MaxTileRow>
            <MinTileCol>1026062</MinTileCol>
            <MaxTileCol>1045580</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>722577</MinTileRow>
            <MaxTileRow>768465</MaxTileRow>
            <MinTileCol>2052124</MinTileCol>
            <MaxTileCol>2091160</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1445154</MinTileRow>
            <MaxTileRow>1536930</MaxTileRow>
            <MinTileCol>4104248</MinTileCol>
            <MaxTileCol>4182321</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>643</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1230</MinTileRow>
            <MaxTileRow>1287</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2460</MinTileRow>
            <MaxTileRow>2574</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4920</MinTileRow>
            <MaxTileRow>5148</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8168</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9841</MinTileRow>
            <MaxTileRow>10296</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16337</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19682</MinTileRow>
            <MaxTileRow>20593</MaxTileRow>
            <MinTileCol>32064</MinTileCol>
            <MaxTileCol>32674</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39364</MinTileRow>
            <MaxTileRow>41187</MaxTileRow>
            <MinTileCol>64128</MinTileCol>
            <MaxTileCol>65348</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78729</MinTileRow>
            <MaxTileRow>82374</MaxTileRow>
            <MinTileCol>128257</MinTileCol>
            <MaxTileCol>130697</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157459</MinTileRow>
            <MaxTileRow>164749</MaxTileRow>
            <MinTileCol>256515</MinTileCol>
            <MaxTileCol>261395</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314919</MinTileRow>
            <MaxTileRow>329498</MaxTileRow>
            <MinTileCol>513031</MinTileCol>
            <MaxTileCol>522790</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629838</MinTileRow>
            <MaxTileRow>658996</MaxTileRow>
            <MinTileCol>1026062</MinTileCol>
            <MaxTileCol>1045580</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1259677</MinTileRow>
            <MaxTileRow>1317993</MaxTileRow>
            <MinTileCol>2052124</MinTileCol>
            <MaxTileCol>2091160</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2519354</MinTileRow>
            <MaxTileRow>2635987</MaxTileRow>
            <MinTileCol>4104248</MinTileCol>
            <MaxTileCol>4182321</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5038709</MinTileRow>
            <MaxTileRow>5271975</MaxTileRow>
            <MinTileCol>8208496</MinTileCol>
            <MaxTileCol>8364643</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10077418</MinTileRow>
            <MaxTileRow>10543950</MaxTileRow>
            <MinTileCol>16416993</MinTileCol>
            <MaxTileCol>16729287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20154837</MinTileRow>
            <MaxTileRow>21087900</MaxTileRow>
            <MinTileCol>32833986</MinTileCol>
            <MaxTileCol>33458575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40309675</MinTileRow>
            <MaxTileRow>42175800</MaxTileRow>
            <MinTileCol>65667973</MinTileCol>
            <MaxTileCol>66917151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80619350</MinTileRow>
            <MaxTileRow>84351601</MaxTileRow>
            <MinTileCol>131335947</MinTileCol>
            <MaxTileCol>133834302</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161238701</MinTileRow>
            <MaxTileRow>168703202</MaxTileRow>
            <MinTileCol>262671894</MinTileCol>
            <MaxTileCol>267668604</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322477402</MinTileRow>
            <MaxTileRow>337406405</MaxTileRow>
            <MinTileCol>525343788</MinTileCol>
            <MaxTileCol>535337208</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644954805</MinTileRow>
            <MaxTileRow>674812811</MaxTileRow>
            <MinTileCol>1050687576</MinTileCol>
            <MaxTileCol>1070674416</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_50_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_50_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_50_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_50_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_50_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_50_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_50_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_50_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_50_mod/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_50_mod/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Temp_Iso_0_50_mod/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_GB</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.8797479923316 -46.652291617905064</ows:LowerCorner>
        <ows:UpperCorner>170.69343381308838 -45.49425589378841</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_GB</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_gb</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_GB" 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>3</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>249</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>192</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>493</MinTileCol>
            <MaxTileCol>498</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>385</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>986</MinTileCol>
            <MaxTileCol>997</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>770</MinTileRow>
            <MaxTileRow>777</MaxTileRow>
            <MinTileCol>1973</MinTileCol>
            <MaxTileCol>1995</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1541</MinTileRow>
            <MaxTileRow>1554</MaxTileRow>
            <MinTileCol>3946</MinTileCol>
            <MaxTileCol>3990</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3083</MinTileRow>
            <MaxTileRow>3109</MaxTileRow>
            <MinTileCol>7893</MinTileCol>
            <MaxTileCol>7980</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6166</MinTileRow>
            <MaxTileRow>6219</MaxTileRow>
            <MinTileCol>15786</MinTileCol>
            <MaxTileCol>15960</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12332</MinTileRow>
            <MaxTileRow>12438</MaxTileRow>
            <MinTileCol>31573</MinTileCol>
            <MaxTileCol>31920</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24665</MinTileRow>
            <MaxTileRow>24876</MaxTileRow>
            <MinTileCol>63147</MinTileCol>
            <MaxTileCol>63841</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49331</MinTileRow>
            <MaxTileRow>49753</MaxTileRow>
            <MinTileCol>126295</MinTileCol>
            <MaxTileCol>127683</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>98663</MinTileRow>
            <MaxTileRow>99507</MaxTileRow>
            <MinTileCol>252590</MinTileCol>
            <MaxTileCol>255367</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>197327</MinTileRow>
            <MaxTileRow>199014</MaxTileRow>
            <MinTileCol>505180</MinTileCol>
            <MaxTileCol>510734</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>394655</MinTileRow>
            <MaxTileRow>398028</MaxTileRow>
            <MinTileCol>1010360</MinTileCol>
            <MaxTileCol>1021468</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>789311</MinTileRow>
            <MaxTileRow>796057</MaxTileRow>
            <MinTileCol>2020720</MinTileCol>
            <MaxTileCol>2042937</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1578622</MinTileRow>
            <MaxTileRow>1592114</MaxTileRow>
            <MinTileCol>4041441</MinTileCol>
            <MaxTileCol>4085874</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>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>249</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>328</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>493</MinTileCol>
            <MaxTileCol>498</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>657</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>986</MinTileCol>
            <MaxTileCol>997</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1315</MinTileRow>
            <MaxTileRow>1324</MaxTileRow>
            <MinTileCol>1973</MinTileCol>
            <MaxTileCol>1995</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2630</MinTileRow>
            <MaxTileRow>2649</MaxTileRow>
            <MinTileCol>3946</MinTileCol>
            <MaxTileCol>3990</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5261</MinTileRow>
            <MaxTileRow>5299</MaxTileRow>
            <MinTileCol>7893</MinTileCol>
            <MaxTileCol>7980</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10522</MinTileRow>
            <MaxTileRow>10598</MaxTileRow>
            <MinTileCol>15786</MinTileCol>
            <MaxTileCol>15960</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21044</MinTileRow>
            <MaxTileRow>21196</MaxTileRow>
            <MinTileCol>31573</MinTileCol>
            <MaxTileCol>31920</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42088</MinTileRow>
            <MaxTileRow>42392</MaxTileRow>
            <MinTileCol>63147</MinTileCol>
            <MaxTileCol>63841</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84177</MinTileRow>
            <MaxTileRow>84785</MaxTileRow>
            <MinTileCol>126295</MinTileCol>
            <MaxTileCol>127683</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168355</MinTileRow>
            <MaxTileRow>169571</MaxTileRow>
            <MinTileCol>252590</MinTileCol>
            <MaxTileCol>255367</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>336710</MinTileRow>
            <MaxTileRow>339142</MaxTileRow>
            <MinTileCol>505180</MinTileCol>
            <MaxTileCol>510734</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>673421</MinTileRow>
            <MaxTileRow>678284</MaxTileRow>
            <MinTileCol>1010360</MinTileCol>
            <MaxTileCol>1021468</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1346843</MinTileRow>
            <MaxTileRow>1356568</MaxTileRow>
            <MinTileCol>2020720</MinTileCol>
            <MaxTileCol>2042937</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2693687</MinTileRow>
            <MaxTileRow>2713136</MaxTileRow>
            <MinTileCol>4041441</MinTileCol>
            <MaxTileCol>4085874</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5387374</MinTileRow>
            <MaxTileRow>5426272</MaxTileRow>
            <MinTileCol>8082883</MinTileCol>
            <MaxTileCol>8171749</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10774748</MinTileRow>
            <MaxTileRow>10852545</MaxTileRow>
            <MinTileCol>16165767</MinTileCol>
            <MaxTileCol>16343498</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21549496</MinTileRow>
            <MaxTileRow>21705091</MaxTileRow>
            <MinTileCol>32331535</MinTileCol>
            <MaxTileCol>32686997</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43098992</MinTileRow>
            <MaxTileRow>43410183</MaxTileRow>
            <MinTileCol>64663071</MinTileCol>
            <MaxTileCol>65373994</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86197984</MinTileRow>
            <MaxTileRow>86820366</MaxTileRow>
            <MinTileCol>129326143</MinTileCol>
            <MaxTileCol>130747988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>172395969</MinTileRow>
            <MaxTileRow>173640733</MaxTileRow>
            <MinTileCol>258652287</MinTileCol>
            <MaxTileCol>261495977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>344791938</MinTileRow>
            <MaxTileRow>347281467</MaxTileRow>
            <MinTileCol>517304574</MinTileCol>
            <MaxTileCol>522991954</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>689583876</MinTileRow>
            <MaxTileRow>694562935</MaxTileRow>
            <MinTileCol>1034609148</MinTileCol>
            <MaxTileCol>1045983909</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GB/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GB/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GB/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_std_125_150</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_std_125_150</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_std_125_150" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_125_150/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_125_150/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>v_airparticulatematter_features</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>170.5177013018606 -45.86888585613521</ows:LowerCorner>
        <ows:UpperCorner>175.64662043446486 -36.78024983252707</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>ggw:AirParticulateMatter</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>generic</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=ggw%3AAirParticulateMatter" 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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>22</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>90</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>249</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>180</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>498</MinTileCol>
            <MaxTileCol>505</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>360</MinTileRow>
            <MaxTileRow>386</MaxTileRow>
            <MinTileCol>997</MinTileCol>
            <MaxTileCol>1011</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>721</MinTileRow>
            <MaxTileRow>772</MaxTileRow>
            <MinTileCol>1994</MinTileCol>
            <MaxTileCol>2023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1442</MinTileRow>
            <MaxTileRow>1545</MaxTileRow>
            <MinTileCol>3988</MinTileCol>
            <MaxTileCol>4046</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2884</MinTileRow>
            <MaxTileRow>3091</MaxTileRow>
            <MinTileCol>7976</MinTileCol>
            <MaxTileCol>8092</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5769</MinTileRow>
            <MaxTileRow>6183</MaxTileRow>
            <MinTileCol>15952</MinTileCol>
            <MaxTileCol>16185</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11539</MinTileRow>
            <MaxTileRow>12367</MaxTileRow>
            <MinTileCol>31904</MinTileCol>
            <MaxTileCol>32371</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23079</MinTileRow>
            <MaxTileRow>24734</MaxTileRow>
            <MinTileCol>63809</MinTileCol>
            <MaxTileCol>64743</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46159</MinTileRow>
            <MaxTileRow>49468</MaxTileRow>
            <MinTileCol>127619</MinTileCol>
            <MaxTileCol>129486</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>92318</MinTileRow>
            <MaxTileRow>98936</MaxTileRow>
            <MinTileCol>255239</MinTileCol>
            <MaxTileCol>258973</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>184637</MinTileRow>
            <MaxTileRow>197873</MaxTileRow>
            <MinTileCol>510478</MinTileCol>
            <MaxTileCol>517947</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>369274</MinTileRow>
            <MaxTileRow>395746</MaxTileRow>
            <MinTileCol>1020956</MinTileCol>
            <MaxTileCol>1035895</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>738548</MinTileRow>
            <MaxTileRow>791493</MaxTileRow>
            <MinTileCol>2041913</MinTileCol>
            <MaxTileCol>2071791</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1477096</MinTileRow>
            <MaxTileRow>1582987</MaxTileRow>
            <MinTileCol>4083827</MinTileCol>
            <MaxTileCol>4143583</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>156</MinTileRow>
            <MaxTileRow>164</MaxTileRow>
            <MinTileCol>249</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>312</MinTileRow>
            <MaxTileRow>329</MaxTileRow>
            <MinTileCol>498</MinTileCol>
            <MaxTileCol>505</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>624</MinTileRow>
            <MaxTileRow>659</MaxTileRow>
            <MinTileCol>997</MinTileCol>
            <MaxTileCol>1011</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1249</MinTileRow>
            <MaxTileRow>1318</MaxTileRow>
            <MinTileCol>1994</MinTileCol>
            <MaxTileCol>2023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2498</MinTileRow>
            <MaxTileRow>2636</MaxTileRow>
            <MinTileCol>3988</MinTileCol>
            <MaxTileCol>4046</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4997</MinTileRow>
            <MaxTileRow>5273</MaxTileRow>
            <MinTileCol>7976</MinTileCol>
            <MaxTileCol>8092</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9994</MinTileRow>
            <MaxTileRow>10546</MaxTileRow>
            <MinTileCol>15952</MinTileCol>
            <MaxTileCol>16185</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19988</MinTileRow>
            <MaxTileRow>21093</MaxTileRow>
            <MinTileCol>31904</MinTileCol>
            <MaxTileCol>32371</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39977</MinTileRow>
            <MaxTileRow>42186</MaxTileRow>
            <MinTileCol>63809</MinTileCol>
            <MaxTileCol>64743</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79954</MinTileRow>
            <MaxTileRow>84372</MaxTileRow>
            <MinTileCol>127619</MinTileCol>
            <MaxTileCol>129486</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>159909</MinTileRow>
            <MaxTileRow>168745</MaxTileRow>
            <MinTileCol>255239</MinTileCol>
            <MaxTileCol>258973</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>319819</MinTileRow>
            <MaxTileRow>337491</MaxTileRow>
            <MinTileCol>510478</MinTileCol>
            <MaxTileCol>517947</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>639638</MinTileRow>
            <MaxTileRow>674983</MaxTileRow>
            <MinTileCol>1020956</MinTileCol>
            <MaxTileCol>1035895</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1279276</MinTileRow>
            <MaxTileRow>1349967</MaxTileRow>
            <MinTileCol>2041913</MinTileCol>
            <MaxTileCol>2071791</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2558553</MinTileRow>
            <MaxTileRow>2699934</MaxTileRow>
            <MinTileCol>4083827</MinTileCol>
            <MaxTileCol>4143583</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5117107</MinTileRow>
            <MaxTileRow>5399869</MaxTileRow>
            <MinTileCol>8167654</MinTileCol>
            <MaxTileCol>8287166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10234214</MinTileRow>
            <MaxTileRow>10799738</MaxTileRow>
            <MinTileCol>16335308</MinTileCol>
            <MaxTileCol>16574333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20468428</MinTileRow>
            <MaxTileRow>21599476</MaxTileRow>
            <MinTileCol>32670617</MinTileCol>
            <MaxTileCol>33148667</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40936857</MinTileRow>
            <MaxTileRow>43198952</MaxTileRow>
            <MinTileCol>65341235</MinTileCol>
            <MaxTileCol>66297335</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81873714</MinTileRow>
            <MaxTileRow>86397904</MaxTileRow>
            <MinTileCol>130682470</MinTileCol>
            <MaxTileCol>132594670</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>163747428</MinTileRow>
            <MaxTileRow>172795808</MaxTileRow>
            <MinTileCol>261364941</MinTileCol>
            <MaxTileCol>265189340</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>327494856</MinTileRow>
            <MaxTileRow>345591616</MaxTileRow>
            <MinTileCol>522729883</MinTileCol>
            <MaxTileCol>530378681</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>654989712</MinTileRow>
            <MaxTileRow>691183233</MaxTileRow>
            <MinTileCol>1045459766</MinTileCol>
            <MaxTileCol>1060757363</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:AirParticulateMatter/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:AirParticulateMatter/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:AirParticulateMatter/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:AirParticulateMatter/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:AirParticulateMatter/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:AirParticulateMatter/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:AirParticulateMatter/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:AirParticulateMatter/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:AirParticulateMatter/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:AirParticulateMatter/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:AirParticulateMatter/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>MASTERFILE_AREAS</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.84699181041242 -47.59328127576987</ows:LowerCorner>
        <ows:UpperCorner>179.6128990171042 -33.95961760554663</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:MASTERFILE_AREAS</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:fred_mfile_areas</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=66&amp;height=140&amp;layer=gns%3AMASTERFILE_AREAS" width="66" height="140"/>
      </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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>705</MinTileRow>
            <MaxTileRow>782</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1410</MinTileRow>
            <MaxTileRow>1565</MaxTileRow>
            <MinTileCol>3934</MinTileCol>
            <MaxTileCol>4091</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2820</MinTileRow>
            <MaxTileRow>3131</MaxTileRow>
            <MinTileCol>7869</MinTileCol>
            <MaxTileCol>8183</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5641</MinTileRow>
            <MaxTileRow>6262</MaxTileRow>
            <MinTileCol>15739</MinTileCol>
            <MaxTileCol>16366</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11283</MinTileRow>
            <MaxTileRow>12524</MaxTileRow>
            <MinTileCol>31479</MinTileCol>
            <MaxTileCol>32732</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22566</MinTileRow>
            <MaxTileRow>25048</MaxTileRow>
            <MinTileCol>62959</MinTileCol>
            <MaxTileCol>65465</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45132</MinTileRow>
            <MaxTileRow>50096</MaxTileRow>
            <MinTileCol>125919</MinTileCol>
            <MaxTileCol>130931</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90264</MinTileRow>
            <MaxTileRow>100192</MaxTileRow>
            <MinTileCol>251838</MinTileCol>
            <MaxTileCol>261862</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180529</MinTileRow>
            <MaxTileRow>200384</MaxTileRow>
            <MinTileCol>503676</MinTileCol>
            <MaxTileCol>523724</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361058</MinTileRow>
            <MaxTileRow>400769</MaxTileRow>
            <MinTileCol>1007352</MinTileCol>
            <MaxTileCol>1047448</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>722117</MinTileRow>
            <MaxTileRow>801538</MaxTileRow>
            <MinTileCol>2014704</MinTileCol>
            <MaxTileCol>2094896</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1444234</MinTileRow>
            <MaxTileRow>1603077</MaxTileRow>
            <MinTileCol>4029409</MinTileCol>
            <MaxTileCol>4189793</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1332</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2459</MinTileRow>
            <MaxTileRow>2665</MaxTileRow>
            <MinTileCol>3934</MinTileCol>
            <MaxTileCol>4091</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4918</MinTileRow>
            <MaxTileRow>5330</MaxTileRow>
            <MinTileCol>7869</MinTileCol>
            <MaxTileCol>8183</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9836</MinTileRow>
            <MaxTileRow>10661</MaxTileRow>
            <MinTileCol>15739</MinTileCol>
            <MaxTileCol>16366</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19673</MinTileRow>
            <MaxTileRow>21322</MaxTileRow>
            <MinTileCol>31479</MinTileCol>
            <MaxTileCol>32732</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39347</MinTileRow>
            <MaxTileRow>42644</MaxTileRow>
            <MinTileCol>62959</MinTileCol>
            <MaxTileCol>65465</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78695</MinTileRow>
            <MaxTileRow>85289</MaxTileRow>
            <MinTileCol>125919</MinTileCol>
            <MaxTileCol>130931</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157390</MinTileRow>
            <MaxTileRow>170578</MaxTileRow>
            <MinTileCol>251838</MinTileCol>
            <MaxTileCol>261862</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314780</MinTileRow>
            <MaxTileRow>341156</MaxTileRow>
            <MinTileCol>503676</MinTileCol>
            <MaxTileCol>523724</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629561</MinTileRow>
            <MaxTileRow>682312</MaxTileRow>
            <MinTileCol>1007352</MinTileCol>
            <MaxTileCol>1047448</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1259122</MinTileRow>
            <MaxTileRow>1364624</MaxTileRow>
            <MinTileCol>2014704</MinTileCol>
            <MaxTileCol>2094896</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2518244</MinTileRow>
            <MaxTileRow>2729249</MaxTileRow>
            <MinTileCol>4029409</MinTileCol>
            <MaxTileCol>4189793</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5036488</MinTileRow>
            <MaxTileRow>5458498</MaxTileRow>
            <MinTileCol>8058819</MinTileCol>
            <MaxTileCol>8379587</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10072977</MinTileRow>
            <MaxTileRow>10916997</MaxTileRow>
            <MinTileCol>16117638</MinTileCol>
            <MaxTileCol>16759175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20145954</MinTileRow>
            <MaxTileRow>21833995</MaxTileRow>
            <MinTileCol>32235276</MinTileCol>
            <MaxTileCol>33518351</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40291909</MinTileRow>
            <MaxTileRow>43667990</MaxTileRow>
            <MinTileCol>64470552</MinTileCol>
            <MaxTileCol>67036703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80583819</MinTileRow>
            <MaxTileRow>87335981</MaxTileRow>
            <MinTileCol>128941104</MinTileCol>
            <MaxTileCol>134073406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161167638</MinTileRow>
            <MaxTileRow>174671963</MaxTileRow>
            <MinTileCol>257882208</MinTileCol>
            <MaxTileCol>268146812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322335276</MinTileRow>
            <MaxTileRow>349343926</MaxTileRow>
            <MinTileCol>515764416</MinTileCol>
            <MaxTileCol>536293625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644670552</MinTileRow>
            <MaxTileRow>698687852</MaxTileRow>
            <MinTileCol>1031528832</MinTileCol>
            <MaxTileCol>1072587250</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MASTERFILE_AREAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MASTERFILE_AREAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MASTERFILE_AREAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MASTERFILE_AREAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MASTERFILE_AREAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MASTERFILE_AREAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MASTERFILE_AREAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MASTERFILE_AREAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MASTERFILE_AREAS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MASTERFILE_AREAS/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MASTERFILE_AREAS/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZGravityWest</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>145.00000000000028 -65.0</ows:LowerCorner>
        <ows:UpperCorner>179.99999999999963 -10.000000000000002</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZGravityWest</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3ANZGravityWest" 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>4</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>14</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>8</MinTileRow>
            <MaxTileRow>13</MaxTileRow>
            <MinTileCol>28</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>17</MinTileRow>
            <MaxTileRow>27</MaxTileRow>
            <MinTileCol>57</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>35</MinTileRow>
            <MaxTileRow>55</MaxTileRow>
            <MinTileCol>115</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>71</MinTileRow>
            <MaxTileRow>110</MaxTileRow>
            <MinTileCol>231</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>142</MinTileRow>
            <MaxTileRow>220</MaxTileRow>
            <MinTileCol>462</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>284</MinTileRow>
            <MaxTileRow>440</MaxTileRow>
            <MinTileCol>924</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>568</MinTileRow>
            <MaxTileRow>881</MaxTileRow>
            <MinTileCol>1848</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1137</MinTileRow>
            <MaxTileRow>1763</MaxTileRow>
            <MinTileCol>3697</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2275</MinTileRow>
            <MaxTileRow>3527</MaxTileRow>
            <MinTileCol>7395</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>4551</MinTileRow>
            <MaxTileRow>7054</MaxTileRow>
            <MinTileCol>14791</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>9102</MinTileRow>
            <MaxTileRow>14108</MaxTileRow>
            <MinTileCol>29582</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>18204</MinTileRow>
            <MaxTileRow>28216</MaxTileRow>
            <MinTileCol>59164</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>36408</MinTileRow>
            <MaxTileRow>56433</MaxTileRow>
            <MinTileCol>118328</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>72817</MinTileRow>
            <MaxTileRow>112867</MaxTileRow>
            <MinTileCol>236657</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>145635</MinTileRow>
            <MaxTileRow>225735</MaxTileRow>
            <MinTileCol>473315</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>291271</MinTileRow>
            <MaxTileRow>451470</MaxTileRow>
            <MinTileCol>946631</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>582542</MinTileRow>
            <MaxTileRow>902940</MaxTileRow>
            <MinTileCol>1893262</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1165084</MinTileRow>
            <MaxTileRow>1805880</MaxTileRow>
            <MinTileCol>3786524</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>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>8</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>14</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>16</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>28</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>33</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>57</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>67</MinTileRow>
            <MaxTileRow>94</MaxTileRow>
            <MinTileCol>115</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>135</MinTileRow>
            <MaxTileRow>189</MaxTileRow>
            <MinTileCol>231</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>270</MinTileRow>
            <MaxTileRow>378</MaxTileRow>
            <MinTileCol>462</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>540</MinTileRow>
            <MaxTileRow>757</MaxTileRow>
            <MinTileCol>924</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1081</MinTileRow>
            <MaxTileRow>1515</MaxTileRow>
            <MinTileCol>1848</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2162</MinTileRow>
            <MaxTileRow>3030</MaxTileRow>
            <MinTileCol>3697</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4324</MinTileRow>
            <MaxTileRow>6060</MaxTileRow>
            <MinTileCol>7395</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>8649</MinTileRow>
            <MaxTileRow>12120</MaxTileRow>
            <MinTileCol>14791</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>17298</MinTileRow>
            <MaxTileRow>24240</MaxTileRow>
            <MinTileCol>29582</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>34597</MinTileRow>
            <MaxTileRow>48480</MaxTileRow>
            <MinTileCol>59164</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>69195</MinTileRow>
            <MaxTileRow>96961</MaxTileRow>
            <MinTileCol>118328</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>138391</MinTileRow>
            <MaxTileRow>193923</MaxTileRow>
            <MinTileCol>236657</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>276782</MinTileRow>
            <MaxTileRow>387847</MaxTileRow>
            <MinTileCol>473315</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>553564</MinTileRow>
            <MaxTileRow>775694</MaxTileRow>
            <MinTileCol>946631</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1107128</MinTileRow>
            <MaxTileRow>1551388</MaxTileRow>
            <MinTileCol>1893262</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2214256</MinTileRow>
            <MaxTileRow>3102776</MaxTileRow>
            <MinTileCol>3786524</MinTileCol>
            <MaxTileCol>4194303</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>4428512</MinTileRow>
            <MaxTileRow>6205553</MaxTileRow>
            <MinTileCol>7573048</MinTileCol>
            <MaxTileCol>8388607</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>8857025</MinTileRow>
            <MaxTileRow>12411107</MaxTileRow>
            <MinTileCol>15146097</MinTileCol>
            <MaxTileCol>16777215</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>17714051</MinTileRow>
            <MaxTileRow>24822214</MaxTileRow>
            <MinTileCol>30292195</MinTileCol>
            <MaxTileCol>33554431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>35428103</MinTileRow>
            <MaxTileRow>49644428</MaxTileRow>
            <MinTileCol>60584391</MinTileCol>
            <MaxTileCol>67108863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>70856207</MinTileRow>
            <MaxTileRow>99288857</MaxTileRow>
            <MinTileCol>121168782</MinTileCol>
            <MaxTileCol>134217727</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>141712415</MinTileRow>
            <MaxTileRow>198577715</MaxTileRow>
            <MinTileCol>242337564</MinTileCol>
            <MaxTileCol>268435455</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>283424831</MinTileRow>
            <MaxTileRow>397155431</MaxTileRow>
            <MinTileCol>484675128</MinTileCol>
            <MaxTileCol>536870911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>566849663</MinTileRow>
            <MaxTileRow>794310863</MaxTileRow>
            <MinTileCol>969350257</MinTileCol>
            <MaxTileCol>1073741823</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityWest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityWest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityWest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityWest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityWest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityWest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityWest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityWest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityWest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityWest/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZGravityWest/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_OTH</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_OTH</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_other</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_OTH" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTH/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTH/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTH/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTH/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTH/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTH/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTH/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTH/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTH/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTH/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTH/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>geothermal_fields</ows:Title>
      <ows:Abstract>New Zealand Aotearoa geothermal fields.  Sourced from GNS Science Geothermal Team.</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-177.939240453588 -43.1998820341201</ows:LowerCorner>
        <ows:UpperCorner>177.195127165563 -29.2451595481196</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:geothermal_fields</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:geothermal_fields</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=228&amp;height=120&amp;layer=gns%3Ageothermal_fields" width="228" height="120"/>
      </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>2</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>21</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>42</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>84</MinTileRow>
            <MaxTileRow>94</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>169</MinTileRow>
            <MaxTileRow>189</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>339</MinTileRow>
            <MaxTileRow>378</MaxTileRow>
            <MinTileCol>5</MinTileCol>
            <MaxTileCol>1016</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>678</MinTileRow>
            <MaxTileRow>757</MaxTileRow>
            <MinTileCol>11</MinTileCol>
            <MaxTileCol>2032</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1356</MinTileRow>
            <MaxTileRow>1515</MaxTileRow>
            <MinTileCol>23</MinTileCol>
            <MaxTileCol>4064</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2713</MinTileRow>
            <MaxTileRow>3031</MaxTileRow>
            <MinTileCol>46</MinTileCol>
            <MaxTileCol>8128</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5426</MinTileRow>
            <MaxTileRow>6062</MaxTileRow>
            <MinTileCol>93</MinTileCol>
            <MaxTileCol>16256</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>10853</MinTileRow>
            <MaxTileRow>12124</MaxTileRow>
            <MinTileCol>187</MinTileCol>
            <MaxTileCol>32512</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>21707</MinTileRow>
            <MaxTileRow>24248</MaxTileRow>
            <MinTileCol>375</MinTileCol>
            <MaxTileCol>65025</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>43415</MinTileRow>
            <MaxTileRow>48496</MaxTileRow>
            <MinTileCol>750</MinTileCol>
            <MaxTileCol>130050</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>86831</MinTileRow>
            <MaxTileRow>96993</MaxTileRow>
            <MinTileCol>1500</MinTileCol>
            <MaxTileCol>260101</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>173663</MinTileRow>
            <MaxTileRow>193986</MaxTileRow>
            <MinTileCol>3001</MinTileCol>
            <MaxTileCol>520203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>347326</MinTileRow>
            <MaxTileRow>387972</MaxTileRow>
            <MinTileCol>6002</MinTileCol>
            <MaxTileCol>1040406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>694653</MinTileRow>
            <MaxTileRow>775945</MaxTileRow>
            <MinTileCol>12004</MinTileCol>
            <MaxTileCol>2080812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1389306</MinTileRow>
            <MaxTileRow>1551891</MaxTileRow>
            <MinTileCol>24009</MinTileCol>
            <MaxTileCol>4161624</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>18</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>37</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>74</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>149</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>299</MinTileRow>
            <MaxTileRow>324</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>599</MinTileRow>
            <MaxTileRow>648</MaxTileRow>
            <MinTileCol>5</MinTileCol>
            <MaxTileCol>1016</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1198</MinTileRow>
            <MaxTileRow>1297</MaxTileRow>
            <MinTileCol>11</MinTileCol>
            <MaxTileCol>2032</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2396</MinTileRow>
            <MaxTileRow>2594</MaxTileRow>
            <MinTileCol>23</MinTileCol>
            <MaxTileCol>4064</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4792</MinTileRow>
            <MaxTileRow>5188</MaxTileRow>
            <MinTileCol>46</MinTileCol>
            <MaxTileCol>8128</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9584</MinTileRow>
            <MaxTileRow>10376</MaxTileRow>
            <MinTileCol>93</MinTileCol>
            <MaxTileCol>16256</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19169</MinTileRow>
            <MaxTileRow>20752</MaxTileRow>
            <MinTileCol>187</MinTileCol>
            <MaxTileCol>32512</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>38339</MinTileRow>
            <MaxTileRow>41504</MaxTileRow>
            <MinTileCol>375</MinTileCol>
            <MaxTileCol>65025</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>76678</MinTileRow>
            <MaxTileRow>83009</MaxTileRow>
            <MinTileCol>750</MinTileCol>
            <MaxTileCol>130050</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>153357</MinTileRow>
            <MaxTileRow>166018</MaxTileRow>
            <MinTileCol>1500</MinTileCol>
            <MaxTileCol>260101</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>306715</MinTileRow>
            <MaxTileRow>332037</MaxTileRow>
            <MinTileCol>3001</MinTileCol>
            <MaxTileCol>520203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>613430</MinTileRow>
            <MaxTileRow>664074</MaxTileRow>
            <MinTileCol>6002</MinTileCol>
            <MaxTileCol>1040406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1226860</MinTileRow>
            <MaxTileRow>1328149</MaxTileRow>
            <MinTileCol>12004</MinTileCol>
            <MaxTileCol>2080812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2453721</MinTileRow>
            <MaxTileRow>2656299</MaxTileRow>
            <MinTileCol>24009</MinTileCol>
            <MaxTileCol>4161624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>4907442</MinTileRow>
            <MaxTileRow>5312598</MaxTileRow>
            <MinTileCol>48019</MinTileCol>
            <MaxTileCol>8323249</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>9814884</MinTileRow>
            <MaxTileRow>10625197</MaxTileRow>
            <MinTileCol>96038</MinTileCol>
            <MaxTileCol>16646499</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>19629769</MinTileRow>
            <MaxTileRow>21250395</MaxTileRow>
            <MinTileCol>192076</MinTileCol>
            <MaxTileCol>33292998</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>39259539</MinTileRow>
            <MaxTileRow>42500790</MaxTileRow>
            <MinTileCol>384153</MinTileCol>
            <MaxTileCol>66585997</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>78519079</MinTileRow>
            <MaxTileRow>85001580</MaxTileRow>
            <MinTileCol>768306</MinTileCol>
            <MaxTileCol>133171995</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>157038158</MinTileRow>
            <MaxTileRow>170003160</MaxTileRow>
            <MinTileCol>1536613</MinTileCol>
            <MaxTileCol>266343991</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>314076317</MinTileRow>
            <MaxTileRow>340006321</MaxTileRow>
            <MinTileCol>3073227</MinTileCol>
            <MaxTileCol>532687982</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>628152634</MinTileRow>
            <MaxTileRow>680012643</MaxTileRow>
            <MinTileCol>6146454</MinTileCol>
            <MaxTileCol>1065375964</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_fields/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_fields/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_fields/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_fields/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_fields/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_fields/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_fields/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_fields/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_fields/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_fields/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geothermal_fields/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_median_30_50</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_median_30_50</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_median_30_50" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_30_50/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_30_50/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_30_50/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>ni_dtw_median</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.51903347061145 -41.730802617749866</ows:LowerCorner>
        <ows:UpperCorner>178.88893784222572 -34.22529965228131</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:ni_dtw_median</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_ni_dtw_median</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=172&amp;height=335&amp;layer=twotw%3Ani_dtw_median" width="172" height="335"/>
      </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>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>706</MinTileRow>
            <MaxTileRow>749</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1413</MinTileRow>
            <MaxTileRow>1498</MaxTileRow>
            <MinTileCol>4010</MinTileCol>
            <MaxTileCol>4083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2826</MinTileRow>
            <MaxTileRow>2997</MaxTileRow>
            <MinTileCol>8021</MinTileCol>
            <MaxTileCol>8166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5653</MinTileRow>
            <MaxTileRow>5995</MaxTileRow>
            <MinTileCol>16043</MinTileCol>
            <MaxTileCol>16333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11307</MinTileRow>
            <MaxTileRow>11990</MaxTileRow>
            <MinTileCol>32087</MinTileCol>
            <MaxTileCol>32666</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22614</MinTileRow>
            <MaxTileRow>23980</MaxTileRow>
            <MinTileCol>64174</MinTileCol>
            <MaxTileCol>65333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45229</MinTileRow>
            <MaxTileRow>47961</MaxTileRow>
            <MinTileCol>128348</MinTileCol>
            <MaxTileCol>130667</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90458</MinTileRow>
            <MaxTileRow>95923</MaxTileRow>
            <MinTileCol>256696</MinTileCol>
            <MaxTileCol>261334</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180916</MinTileRow>
            <MaxTileRow>191846</MaxTileRow>
            <MinTileCol>513393</MinTileCol>
            <MaxTileCol>522669</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361832</MinTileRow>
            <MaxTileRow>383693</MaxTileRow>
            <MinTileCol>1026786</MinTileCol>
            <MaxTileCol>1045339</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>723664</MinTileRow>
            <MaxTileRow>767387</MaxTileRow>
            <MinTileCol>2053572</MinTileCol>
            <MaxTileCol>2090679</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1447329</MinTileRow>
            <MaxTileRow>1534775</MaxTileRow>
            <MinTileCol>4107144</MinTileCol>
            <MaxTileCol>4181359</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1231</MinTileRow>
            <MaxTileRow>1285</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2462</MinTileRow>
            <MaxTileRow>2571</MaxTileRow>
            <MinTileCol>4010</MinTileCol>
            <MaxTileCol>4083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4925</MinTileRow>
            <MaxTileRow>5142</MaxTileRow>
            <MinTileCol>8021</MinTileCol>
            <MaxTileCol>8166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9851</MinTileRow>
            <MaxTileRow>10285</MaxTileRow>
            <MinTileCol>16043</MinTileCol>
            <MaxTileCol>16333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19702</MinTileRow>
            <MaxTileRow>20571</MaxTileRow>
            <MinTileCol>32087</MinTileCol>
            <MaxTileCol>32666</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39405</MinTileRow>
            <MaxTileRow>41142</MaxTileRow>
            <MinTileCol>64174</MinTileCol>
            <MaxTileCol>65333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78811</MinTileRow>
            <MaxTileRow>82284</MaxTileRow>
            <MinTileCol>128348</MinTileCol>
            <MaxTileCol>130667</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157623</MinTileRow>
            <MaxTileRow>164568</MaxTileRow>
            <MinTileCol>256696</MinTileCol>
            <MaxTileCol>261334</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315247</MinTileRow>
            <MaxTileRow>329136</MaxTileRow>
            <MinTileCol>513393</MinTileCol>
            <MaxTileCol>522669</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630495</MinTileRow>
            <MaxTileRow>658273</MaxTileRow>
            <MinTileCol>1026786</MinTileCol>
            <MaxTileCol>1045339</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1260991</MinTileRow>
            <MaxTileRow>1316547</MaxTileRow>
            <MinTileCol>2053572</MinTileCol>
            <MaxTileCol>2090679</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2521982</MinTileRow>
            <MaxTileRow>2633095</MaxTileRow>
            <MinTileCol>4107144</MinTileCol>
            <MaxTileCol>4181359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5043964</MinTileRow>
            <MaxTileRow>5266190</MaxTileRow>
            <MinTileCol>8214288</MinTileCol>
            <MaxTileCol>8362718</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10087928</MinTileRow>
            <MaxTileRow>10532381</MaxTileRow>
            <MinTileCol>16428577</MinTileCol>
            <MaxTileCol>16725436</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20175857</MinTileRow>
            <MaxTileRow>21064763</MaxTileRow>
            <MinTileCol>32857155</MinTileCol>
            <MaxTileCol>33450873</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40351714</MinTileRow>
            <MaxTileRow>42129526</MaxTileRow>
            <MinTileCol>65714310</MinTileCol>
            <MaxTileCol>66901747</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80703429</MinTileRow>
            <MaxTileRow>84259052</MaxTileRow>
            <MinTileCol>131428621</MinTileCol>
            <MaxTileCol>133803494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161406859</MinTileRow>
            <MaxTileRow>168518104</MaxTileRow>
            <MinTileCol>262857243</MinTileCol>
            <MaxTileCol>267606988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322813718</MinTileRow>
            <MaxTileRow>337036208</MaxTileRow>
            <MinTileCol>525714486</MinTileCol>
            <MaxTileCol>535213976</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645627437</MinTileRow>
            <MaxTileRow>674072416</MaxTileRow>
            <MinTileCol>1051428972</MinTileCol>
            <MaxTileCol>1070427952</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_dtw_median/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_dtw_median/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>landslide_point_feature_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-180.0 -90.0</ows:LowerCorner>
        <ows:UpperCorner>180.0 90.0</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:landslide_point_feature_view</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>generic</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Alandslide_point_feature_view" 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>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_point_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_point_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_point_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_point_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_point_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_point_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_point_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_point_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_point_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_point_feature_view/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_point_feature_view/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>v_datauploadtest_features</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>169.27731527089134 -44.65263962860126</ows:LowerCorner>
        <ows:UpperCorner>176.47022559106836 -39.115423812009645</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>ggw:Datauploadtest</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>point</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=ggw%3ADatauploadtest" 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>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>91</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>183</MinTileRow>
            <MaxTileRow>191</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>367</MinTileRow>
            <MaxTileRow>383</MaxTileRow>
            <MinTileCol>993</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>734</MinTileRow>
            <MaxTileRow>766</MaxTileRow>
            <MinTileCol>1986</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1469</MinTileRow>
            <MaxTileRow>1532</MaxTileRow>
            <MinTileCol>3973</MinTileCol>
            <MaxTileCol>4055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2938</MinTileRow>
            <MaxTileRow>3064</MaxTileRow>
            <MinTileCol>7947</MinTileCol>
            <MaxTileCol>8111</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5876</MinTileRow>
            <MaxTileRow>6128</MaxTileRow>
            <MinTileCol>15895</MinTileCol>
            <MaxTileCol>16223</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11752</MinTileRow>
            <MaxTileRow>12256</MaxTileRow>
            <MinTileCol>31791</MinTileCol>
            <MaxTileCol>32446</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23504</MinTileRow>
            <MaxTileRow>24512</MaxTileRow>
            <MinTileCol>63583</MinTileCol>
            <MaxTileCol>64893</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47009</MinTileRow>
            <MaxTileRow>49025</MaxTileRow>
            <MinTileCol>127167</MinTileCol>
            <MaxTileCol>129786</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94018</MinTileRow>
            <MaxTileRow>98051</MaxTileRow>
            <MinTileCol>254335</MinTileCol>
            <MaxTileCol>259573</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188037</MinTileRow>
            <MaxTileRow>196102</MaxTileRow>
            <MinTileCol>508671</MinTileCol>
            <MaxTileCol>519147</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>376075</MinTileRow>
            <MaxTileRow>392204</MaxTileRow>
            <MinTileCol>1017343</MinTileCol>
            <MaxTileCol>1038294</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>752151</MinTileRow>
            <MaxTileRow>784408</MaxTileRow>
            <MinTileCol>2034687</MinTileCol>
            <MaxTileCol>2076589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1504303</MinTileRow>
            <MaxTileRow>1568816</MaxTileRow>
            <MinTileCol>4069375</MinTileCol>
            <MaxTileCol>4153179</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>163</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>316</MinTileRow>
            <MaxTileRow>327</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>633</MinTileRow>
            <MaxTileRow>654</MaxTileRow>
            <MinTileCol>993</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1266</MinTileRow>
            <MaxTileRow>1308</MaxTileRow>
            <MinTileCol>1986</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2532</MinTileRow>
            <MaxTileRow>2616</MaxTileRow>
            <MinTileCol>3973</MinTileCol>
            <MaxTileCol>4055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5064</MinTileRow>
            <MaxTileRow>5233</MaxTileRow>
            <MinTileCol>7947</MinTileCol>
            <MaxTileCol>8111</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10129</MinTileRow>
            <MaxTileRow>10467</MaxTileRow>
            <MinTileCol>15895</MinTileCol>
            <MaxTileCol>16223</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20258</MinTileRow>
            <MaxTileRow>20935</MaxTileRow>
            <MinTileCol>31791</MinTileCol>
            <MaxTileCol>32446</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40516</MinTileRow>
            <MaxTileRow>41871</MaxTileRow>
            <MinTileCol>63583</MinTileCol>
            <MaxTileCol>64893</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81033</MinTileRow>
            <MaxTileRow>83743</MaxTileRow>
            <MinTileCol>127167</MinTileCol>
            <MaxTileCol>129786</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162066</MinTileRow>
            <MaxTileRow>167487</MaxTileRow>
            <MinTileCol>254335</MinTileCol>
            <MaxTileCol>259573</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324132</MinTileRow>
            <MaxTileRow>334975</MaxTileRow>
            <MinTileCol>508671</MinTileCol>
            <MaxTileCol>519147</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>648265</MinTileRow>
            <MaxTileRow>669950</MaxTileRow>
            <MinTileCol>1017343</MinTileCol>
            <MaxTileCol>1038294</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1296530</MinTileRow>
            <MaxTileRow>1339900</MaxTileRow>
            <MinTileCol>2034687</MinTileCol>
            <MaxTileCol>2076589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2593060</MinTileRow>
            <MaxTileRow>2679801</MaxTileRow>
            <MinTileCol>4069375</MinTileCol>
            <MaxTileCol>4153179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5186120</MinTileRow>
            <MaxTileRow>5359603</MaxTileRow>
            <MinTileCol>8138751</MinTileCol>
            <MaxTileCol>8306358</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10372240</MinTileRow>
            <MaxTileRow>10719206</MaxTileRow>
            <MinTileCol>16277502</MinTileCol>
            <MaxTileCol>16612716</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20744481</MinTileRow>
            <MaxTileRow>21438413</MaxTileRow>
            <MinTileCol>32555005</MinTileCol>
            <MaxTileCol>33225433</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41488963</MinTileRow>
            <MaxTileRow>42876827</MaxTileRow>
            <MinTileCol>65110010</MinTileCol>
            <MaxTileCol>66450866</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82977926</MinTileRow>
            <MaxTileRow>85753654</MaxTileRow>
            <MinTileCol>130220021</MinTileCol>
            <MaxTileCol>132901732</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>165955852</MinTileRow>
            <MaxTileRow>171507308</MaxTileRow>
            <MinTileCol>260440042</MinTileCol>
            <MaxTileCol>265803465</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>331911704</MinTileRow>
            <MaxTileRow>343014617</MaxTileRow>
            <MinTileCol>520880085</MinTileCol>
            <MaxTileCol>531606930</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>663823408</MinTileRow>
            <MaxTileRow>686029235</MaxTileRow>
            <MinTileCol>1041760171</MinTileCol>
            <MaxTileCol>1063213861</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:Datauploadtest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:Datauploadtest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:Datauploadtest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:Datauploadtest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:Datauploadtest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:Datauploadtest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:Datauploadtest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:Datauploadtest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:Datauploadtest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:Datauploadtest/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:Datauploadtest/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>geothermal_field</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-180.0 -43.22384439110232</ows:LowerCorner>
        <ows:UpperCorner>180.0 -29.243820550414952</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>ggw:geothermal_field</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>ggw:GGW Geothermal Fields</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=ggw%3Ageothermal_field" 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>2</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>21</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>42</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>84</MinTileRow>
            <MaxTileRow>94</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>169</MinTileRow>
            <MaxTileRow>189</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>339</MinTileRow>
            <MaxTileRow>378</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>678</MinTileRow>
            <MaxTileRow>757</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1356</MinTileRow>
            <MaxTileRow>1515</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2713</MinTileRow>
            <MaxTileRow>3031</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5426</MinTileRow>
            <MaxTileRow>6063</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>10853</MinTileRow>
            <MaxTileRow>12126</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>21707</MinTileRow>
            <MaxTileRow>24252</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>43415</MinTileRow>
            <MaxTileRow>48505</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>86830</MinTileRow>
            <MaxTileRow>97010</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>173661</MinTileRow>
            <MaxTileRow>194021</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>347322</MinTileRow>
            <MaxTileRow>388042</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>694645</MinTileRow>
            <MaxTileRow>776085</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1389291</MinTileRow>
            <MaxTileRow>1552170</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>18</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>37</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>74</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>149</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>299</MinTileRow>
            <MaxTileRow>324</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>599</MinTileRow>
            <MaxTileRow>648</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1198</MinTileRow>
            <MaxTileRow>1297</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2396</MinTileRow>
            <MaxTileRow>2594</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>4094</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4792</MinTileRow>
            <MaxTileRow>5188</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>8188</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9584</MinTileRow>
            <MaxTileRow>10377</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>16377</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19169</MinTileRow>
            <MaxTileRow>20755</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>32754</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>38339</MinTileRow>
            <MaxTileRow>41510</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>65508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>76678</MinTileRow>
            <MaxTileRow>83021</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>131017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>153356</MinTileRow>
            <MaxTileRow>166042</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>262034</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>306712</MinTileRow>
            <MaxTileRow>332085</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>524069</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>613425</MinTileRow>
            <MaxTileRow>664170</MaxTileRow>
            <MinTileCol>505</MinTileCol>
            <MaxTileCol>1048139</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1226851</MinTileRow>
            <MaxTileRow>1328341</MaxTileRow>
            <MinTileCol>1010</MinTileCol>
            <MaxTileCol>2096279</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2453703</MinTileRow>
            <MaxTileRow>2656682</MaxTileRow>
            <MinTileCol>2021</MinTileCol>
            <MaxTileCol>4192558</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>4907406</MinTileRow>
            <MaxTileRow>5313364</MaxTileRow>
            <MinTileCol>4042</MinTileCol>
            <MaxTileCol>8385116</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>9814813</MinTileRow>
            <MaxTileRow>10626729</MaxTileRow>
            <MinTileCol>8084</MinTileCol>
            <MaxTileCol>16770233</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>19629626</MinTileRow>
            <MaxTileRow>21253459</MaxTileRow>
            <MinTileCol>16169</MinTileCol>
            <MaxTileCol>33540467</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>39259253</MinTileRow>
            <MaxTileRow>42506919</MaxTileRow>
            <MinTileCol>32339</MinTileCol>
            <MaxTileCol>67080934</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>78518507</MinTileRow>
            <MaxTileRow>85013838</MaxTileRow>
            <MinTileCol>64678</MinTileCol>
            <MaxTileCol>134161868</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>157037014</MinTileRow>
            <MaxTileRow>170027676</MaxTileRow>
            <MinTileCol>129357</MinTileCol>
            <MaxTileCol>268323736</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>314074028</MinTileRow>
            <MaxTileRow>340055352</MaxTileRow>
            <MinTileCol>258715</MinTileCol>
            <MaxTileCol>536647472</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>628148056</MinTileRow>
            <MaxTileRow>680110705</MaxTileRow>
            <MinTileCol>517430</MinTileCol>
            <MaxTileCol>1073294944</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:geothermal_field/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:geothermal_field/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:geothermal_field/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:geothermal_field/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:geothermal_field/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:geothermal_field/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:geothermal_field/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:geothermal_field/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:geothermal_field/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:geothermal_field/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:geothermal_field/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>tvz_subsurface_temperature_estimated</ows:Title>
      <ows:Abstract>Subsurface temperature for Taupo Volcanic Zone, measured in Celsius.  Interpolated using Inverse Distance Weighting algorithm based on well data.</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>175.37392905126617 -39.42378944334732</ows:LowerCorner>
        <ows:UpperCorner>177.25471068179462 -37.53282715954627</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:tvz_subsurface_temperature_estimated</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Atvz_subsurface_temperature_estimated" 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>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>90</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>181</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>505</MinTileCol>
            <MaxTileCol>508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>362</MinTileRow>
            <MaxTileRow>368</MaxTileRow>
            <MinTileCol>1010</MinTileCol>
            <MaxTileCol>1016</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>725</MinTileRow>
            <MaxTileRow>736</MaxTileRow>
            <MinTileCol>2021</MinTileCol>
            <MaxTileCol>2032</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1451</MinTileRow>
            <MaxTileRow>1472</MaxTileRow>
            <MinTileCol>4043</MinTileCol>
            <MaxTileCol>4064</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2902</MinTileRow>
            <MaxTileRow>2945</MaxTileRow>
            <MinTileCol>8086</MinTileCol>
            <MaxTileCol>8129</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5804</MinTileRow>
            <MaxTileRow>5890</MaxTileRow>
            <MinTileCol>16173</MinTileCol>
            <MaxTileCol>16259</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11608</MinTileRow>
            <MaxTileRow>11780</MaxTileRow>
            <MinTileCol>32346</MinTileCol>
            <MaxTileCol>32518</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23216</MinTileRow>
            <MaxTileRow>23560</MaxTileRow>
            <MinTileCol>64693</MinTileCol>
            <MaxTileCol>65036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46433</MinTileRow>
            <MaxTileRow>47121</MaxTileRow>
            <MinTileCol>129387</MinTileCol>
            <MaxTileCol>130072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>92866</MinTileRow>
            <MaxTileRow>94243</MaxTileRow>
            <MinTileCol>258775</MinTileCol>
            <MaxTileCol>260144</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>185733</MinTileRow>
            <MaxTileRow>188487</MaxTileRow>
            <MinTileCol>517550</MinTileCol>
            <MaxTileCol>520289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>371466</MinTileRow>
            <MaxTileRow>376974</MaxTileRow>
            <MinTileCol>1035101</MinTileCol>
            <MaxTileCol>1040579</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>742932</MinTileRow>
            <MaxTileRow>753948</MaxTileRow>
            <MinTileCol>2070203</MinTileCol>
            <MaxTileCol>2081159</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1485865</MinTileRow>
            <MaxTileRow>1507896</MaxTileRow>
            <MinTileCol>4140406</MinTileCol>
            <MaxTileCol>4162319</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>156</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>313</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>505</MinTileCol>
            <MaxTileCol>508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>627</MinTileRow>
            <MaxTileRow>634</MaxTileRow>
            <MinTileCol>1010</MinTileCol>
            <MaxTileCol>1016</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1254</MinTileRow>
            <MaxTileRow>1268</MaxTileRow>
            <MinTileCol>2021</MinTileCol>
            <MaxTileCol>2032</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2509</MinTileRow>
            <MaxTileRow>2536</MaxTileRow>
            <MinTileCol>4043</MinTileCol>
            <MaxTileCol>4064</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5018</MinTileRow>
            <MaxTileRow>5073</MaxTileRow>
            <MinTileCol>8086</MinTileCol>
            <MaxTileCol>8129</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10037</MinTileRow>
            <MaxTileRow>10147</MaxTileRow>
            <MinTileCol>16173</MinTileCol>
            <MaxTileCol>16259</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20074</MinTileRow>
            <MaxTileRow>20294</MaxTileRow>
            <MinTileCol>32346</MinTileCol>
            <MaxTileCol>32518</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40149</MinTileRow>
            <MaxTileRow>40589</MaxTileRow>
            <MinTileCol>64693</MinTileCol>
            <MaxTileCol>65036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80298</MinTileRow>
            <MaxTileRow>81178</MaxTileRow>
            <MinTileCol>129387</MinTileCol>
            <MaxTileCol>130072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>160597</MinTileRow>
            <MaxTileRow>162356</MaxTileRow>
            <MinTileCol>258775</MinTileCol>
            <MaxTileCol>260144</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>321194</MinTileRow>
            <MaxTileRow>324712</MaxTileRow>
            <MinTileCol>517550</MinTileCol>
            <MaxTileCol>520289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>642388</MinTileRow>
            <MaxTileRow>649425</MaxTileRow>
            <MinTileCol>1035101</MinTileCol>
            <MaxTileCol>1040579</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1284777</MinTileRow>
            <MaxTileRow>1298850</MaxTileRow>
            <MinTileCol>2070203</MinTileCol>
            <MaxTileCol>2081159</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2569555</MinTileRow>
            <MaxTileRow>2597700</MaxTileRow>
            <MinTileCol>4140406</MinTileCol>
            <MaxTileCol>4162319</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5139110</MinTileRow>
            <MaxTileRow>5195401</MaxTileRow>
            <MinTileCol>8280812</MinTileCol>
            <MaxTileCol>8324638</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10278221</MinTileRow>
            <MaxTileRow>10390803</MaxTileRow>
            <MinTileCol>16561625</MinTileCol>
            <MaxTileCol>16649276</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20556442</MinTileRow>
            <MaxTileRow>20781607</MaxTileRow>
            <MinTileCol>33123250</MinTileCol>
            <MaxTileCol>33298552</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41112885</MinTileRow>
            <MaxTileRow>41563214</MaxTileRow>
            <MinTileCol>66246501</MinTileCol>
            <MaxTileCol>66597104</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82225771</MinTileRow>
            <MaxTileRow>83126428</MaxTileRow>
            <MinTileCol>132493003</MinTileCol>
            <MaxTileCol>133194209</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>164451542</MinTileRow>
            <MaxTileRow>166252857</MaxTileRow>
            <MinTileCol>264986007</MinTileCol>
            <MaxTileCol>266388419</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>328903085</MinTileRow>
            <MaxTileRow>332505715</MaxTileRow>
            <MinTileCol>529972015</MinTileCol>
            <MaxTileCol>532776839</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>657806170</MinTileRow>
            <MaxTileRow>665011431</MaxTileRow>
            <MinTileCol>1059944030</MinTileCol>
            <MaxTileCol>1065553679</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_temperature_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_temperature_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_temperature_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_temperature_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_temperature_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_temperature_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_temperature_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_temperature_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_temperature_estimated/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_temperature_estimated/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:tvz_subsurface_temperature_estimated/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_mean_0_10</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_mean_0_10</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_mean_0_10" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_0_10/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_0_10/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_0_10/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_OTA</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_OTA</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_otago</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_OTA" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTA/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTA/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_OTA/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_std_layer7</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_std_layer7</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_std_layer7" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer7/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer7/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_std_layer6</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_std_layer6</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_std_layer6" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer6/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer6/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_std_layer5</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_std_layer5</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_std_layer5" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer5/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer5/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_MAS_MUS</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>175.8068087529845 -40.33655143852334</ows:LowerCorner>
        <ows:UpperCorner>175.98735602283477 -40.09760847384932</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_MAS_MUS</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_massey_mus</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_MAS_MUS" 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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>185</MinTileRow>
            <MaxTileRow>185</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>370</MinTileRow>
            <MaxTileRow>370</MaxTileRow>
            <MinTileCol>1012</MinTileCol>
            <MaxTileCol>1012</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>740</MinTileRow>
            <MaxTileRow>741</MaxTileRow>
            <MinTileCol>2024</MinTileCol>
            <MaxTileCol>2025</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1480</MinTileRow>
            <MaxTileRow>1482</MaxTileRow>
            <MinTileCol>4048</MinTileCol>
            <MaxTileCol>4050</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2960</MinTileRow>
            <MaxTileRow>2965</MaxTileRow>
            <MinTileCol>8096</MinTileCol>
            <MaxTileCol>8100</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5920</MinTileRow>
            <MaxTileRow>5931</MaxTileRow>
            <MinTileCol>16193</MinTileCol>
            <MaxTileCol>16201</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11841</MinTileRow>
            <MaxTileRow>11863</MaxTileRow>
            <MinTileCol>32386</MinTileCol>
            <MaxTileCol>32402</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23683</MinTileRow>
            <MaxTileRow>23727</MaxTileRow>
            <MinTileCol>64772</MinTileCol>
            <MaxTileCol>64805</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47367</MinTileRow>
            <MaxTileRow>47454</MaxTileRow>
            <MinTileCol>129545</MinTileCol>
            <MaxTileCol>129611</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94734</MinTileRow>
            <MaxTileRow>94908</MaxTileRow>
            <MinTileCol>259090</MinTileCol>
            <MaxTileCol>259222</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>189468</MinTileRow>
            <MaxTileRow>189816</MaxTileRow>
            <MinTileCol>518181</MinTileCol>
            <MaxTileCol>518444</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>378936</MinTileRow>
            <MaxTileRow>379632</MaxTileRow>
            <MinTileCol>1036362</MinTileCol>
            <MaxTileCol>1036888</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>757873</MinTileRow>
            <MaxTileRow>759265</MaxTileRow>
            <MinTileCol>2072724</MinTileCol>
            <MaxTileCol>2073776</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1515746</MinTileRow>
            <MaxTileRow>1518530</MaxTileRow>
            <MinTileCol>4145449</MinTileCol>
            <MaxTileCol>4147553</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>159</MinTileRow>
            <MaxTileRow>159</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>318</MinTileRow>
            <MaxTileRow>318</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>636</MinTileRow>
            <MaxTileRow>637</MaxTileRow>
            <MinTileCol>1012</MinTileCol>
            <MaxTileCol>1012</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1273</MinTileRow>
            <MaxTileRow>1275</MaxTileRow>
            <MinTileCol>2024</MinTileCol>
            <MaxTileCol>2025</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2546</MinTileRow>
            <MaxTileRow>2550</MaxTileRow>
            <MinTileCol>4048</MinTileCol>
            <MaxTileCol>4050</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5093</MinTileRow>
            <MaxTileRow>5100</MaxTileRow>
            <MinTileCol>8096</MinTileCol>
            <MaxTileCol>8100</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10187</MinTileRow>
            <MaxTileRow>10201</MaxTileRow>
            <MinTileCol>16193</MinTileCol>
            <MaxTileCol>16201</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20374</MinTileRow>
            <MaxTileRow>20402</MaxTileRow>
            <MinTileCol>32386</MinTileCol>
            <MaxTileCol>32402</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40748</MinTileRow>
            <MaxTileRow>40805</MaxTileRow>
            <MinTileCol>64772</MinTileCol>
            <MaxTileCol>64805</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81497</MinTileRow>
            <MaxTileRow>81611</MaxTileRow>
            <MinTileCol>129545</MinTileCol>
            <MaxTileCol>129611</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162994</MinTileRow>
            <MaxTileRow>163222</MaxTileRow>
            <MinTileCol>259090</MinTileCol>
            <MaxTileCol>259222</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>325989</MinTileRow>
            <MaxTileRow>326444</MaxTileRow>
            <MinTileCol>518181</MinTileCol>
            <MaxTileCol>518444</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>651978</MinTileRow>
            <MaxTileRow>652889</MaxTileRow>
            <MinTileCol>1036362</MinTileCol>
            <MaxTileCol>1036888</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1303956</MinTileRow>
            <MaxTileRow>1305779</MaxTileRow>
            <MinTileCol>2072724</MinTileCol>
            <MaxTileCol>2073776</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2607913</MinTileRow>
            <MaxTileRow>2611559</MaxTileRow>
            <MinTileCol>4145449</MinTileCol>
            <MaxTileCol>4147553</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5215827</MinTileRow>
            <MaxTileRow>5223118</MaxTileRow>
            <MinTileCol>8290899</MinTileCol>
            <MaxTileCol>8295106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10431654</MinTileRow>
            <MaxTileRow>10446237</MaxTileRow>
            <MinTileCol>16581799</MinTileCol>
            <MaxTileCol>16590213</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20863308</MinTileRow>
            <MaxTileRow>20892474</MaxTileRow>
            <MinTileCol>33163598</MinTileCol>
            <MaxTileCol>33180426</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41726616</MinTileRow>
            <MaxTileRow>41784948</MaxTileRow>
            <MinTileCol>66327196</MinTileCol>
            <MaxTileCol>66360852</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83453232</MinTileRow>
            <MaxTileRow>83569896</MaxTileRow>
            <MinTileCol>132654393</MinTileCol>
            <MaxTileCol>132721705</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166906465</MinTileRow>
            <MaxTileRow>167139792</MaxTileRow>
            <MinTileCol>265308786</MinTileCol>
            <MaxTileCol>265443411</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>333812931</MinTileRow>
            <MaxTileRow>334279584</MaxTileRow>
            <MinTileCol>530617572</MinTileCol>
            <MaxTileCol>530886823</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>667625862</MinTileRow>
            <MaxTileRow>668559168</MaxTileRow>
            <MinTileCol>1061235144</MinTileCol>
            <MaxTileCol>1061773647</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS_MUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS_MUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS_MUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS_MUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS_MUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS_MUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS_MUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS_MUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS_MUS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS_MUS/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_MAS_MUS/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_std_layer4</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_std_layer4</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_std_layer4" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer4/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer4/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_std_layer3</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_std_layer3</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_std_layer3" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer3/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer3/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>GPS_LABEL</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:GPS_LABEL</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:gps_label</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AGPS_LABEL" width="20" height="20" maxScaleDenominator="1000000.0"/>
      </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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_LABEL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_LABEL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_LABEL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_LABEL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_LABEL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_LABEL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_LABEL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_LABEL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_LABEL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_LABEL/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_LABEL/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_std_layer2</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_std_layer2</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_std_layer2" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer2/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer2/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_std_layer1</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_std_layer1</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_std_layer1" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer1/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer1/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZL-Urban_Auckland_geological_units</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>174.39266830492312 -37.32680364313148</ows:LowerCorner>
        <ows:UpperCorner>175.31710372144497 -36.6937397976065</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZL-Urban_Auckland_geological_units</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>Urban_Auckland</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=89&amp;height=1460&amp;layer=gns%3ANZL-Urban_Auckland_geological_units" width="89" height="1460"/>
      </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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>90</MinTileRow>
            <MaxTileRow>90</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>180</MinTileRow>
            <MaxTileRow>181</MaxTileRow>
            <MinTileCol>504</MinTileCol>
            <MaxTileCol>505</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>360</MinTileRow>
            <MaxTileRow>362</MaxTileRow>
            <MinTileCol>1008</MinTileCol>
            <MaxTileCol>1010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>720</MinTileRow>
            <MaxTileRow>724</MaxTileRow>
            <MinTileCol>2016</MinTileCol>
            <MaxTileCol>2021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1441</MinTileRow>
            <MaxTileRow>1448</MaxTileRow>
            <MinTileCol>4032</MinTileCol>
            <MaxTileCol>4042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2882</MinTileRow>
            <MaxTileRow>2897</MaxTileRow>
            <MinTileCol>8064</MinTileCol>
            <MaxTileCol>8085</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5765</MinTileRow>
            <MaxTileRow>5794</MaxTileRow>
            <MinTileCol>16128</MinTileCol>
            <MaxTileCol>16170</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11531</MinTileRow>
            <MaxTileRow>11589</MaxTileRow>
            <MinTileCol>32257</MinTileCol>
            <MaxTileCol>32341</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23063</MinTileRow>
            <MaxTileRow>23179</MaxTileRow>
            <MinTileCol>64515</MinTileCol>
            <MaxTileCol>64683</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46127</MinTileRow>
            <MaxTileRow>46358</MaxTileRow>
            <MinTileCol>129030</MinTileCol>
            <MaxTileCol>129367</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>92255</MinTileRow>
            <MaxTileRow>92716</MaxTileRow>
            <MinTileCol>258060</MinTileCol>
            <MaxTileCol>258734</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>184511</MinTileRow>
            <MaxTileRow>185433</MaxTileRow>
            <MinTileCol>516121</MinTileCol>
            <MaxTileCol>517468</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>369022</MinTileRow>
            <MaxTileRow>370866</MaxTileRow>
            <MinTileCol>1032243</MinTileCol>
            <MaxTileCol>1034936</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>738044</MinTileRow>
            <MaxTileRow>741732</MaxTileRow>
            <MinTileCol>2064486</MinTileCol>
            <MaxTileCol>2069872</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1476089</MinTileRow>
            <MaxTileRow>1483464</MaxTileRow>
            <MinTileCol>4128973</MinTileCol>
            <MaxTileCol>4139744</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>78</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>156</MinTileRow>
            <MaxTileRow>156</MaxTileRow>
            <MinTileCol>252</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>312</MinTileRow>
            <MaxTileRow>313</MaxTileRow>
            <MinTileCol>504</MinTileCol>
            <MaxTileCol>505</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>624</MinTileRow>
            <MaxTileRow>626</MaxTileRow>
            <MinTileCol>1008</MinTileCol>
            <MaxTileCol>1010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1248</MinTileRow>
            <MaxTileRow>1253</MaxTileRow>
            <MinTileCol>2016</MinTileCol>
            <MaxTileCol>2021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2497</MinTileRow>
            <MaxTileRow>2506</MaxTileRow>
            <MinTileCol>4032</MinTileCol>
            <MaxTileCol>4042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4994</MinTileRow>
            <MaxTileRow>5012</MaxTileRow>
            <MinTileCol>8064</MinTileCol>
            <MaxTileCol>8085</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9989</MinTileRow>
            <MaxTileRow>10025</MaxTileRow>
            <MinTileCol>16128</MinTileCol>
            <MaxTileCol>16170</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19978</MinTileRow>
            <MaxTileRow>20051</MaxTileRow>
            <MinTileCol>32257</MinTileCol>
            <MaxTileCol>32341</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39957</MinTileRow>
            <MaxTileRow>40102</MaxTileRow>
            <MinTileCol>64515</MinTileCol>
            <MaxTileCol>64683</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79915</MinTileRow>
            <MaxTileRow>80204</MaxTileRow>
            <MinTileCol>129030</MinTileCol>
            <MaxTileCol>129367</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>159830</MinTileRow>
            <MaxTileRow>160408</MaxTileRow>
            <MinTileCol>258060</MinTileCol>
            <MaxTileCol>258734</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>319661</MinTileRow>
            <MaxTileRow>320816</MaxTileRow>
            <MinTileCol>516121</MinTileCol>
            <MaxTileCol>517468</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>639323</MinTileRow>
            <MaxTileRow>641633</MaxTileRow>
            <MinTileCol>1032243</MinTileCol>
            <MaxTileCol>1034936</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1278647</MinTileRow>
            <MaxTileRow>1283266</MaxTileRow>
            <MinTileCol>2064486</MinTileCol>
            <MaxTileCol>2069872</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2557295</MinTileRow>
            <MaxTileRow>2566532</MaxTileRow>
            <MinTileCol>4128973</MinTileCol>
            <MaxTileCol>4139744</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5114591</MinTileRow>
            <MaxTileRow>5133065</MaxTileRow>
            <MinTileCol>8257947</MinTileCol>
            <MaxTileCol>8279488</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10229183</MinTileRow>
            <MaxTileRow>10266130</MaxTileRow>
            <MinTileCol>16515895</MinTileCol>
            <MaxTileCol>16558977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20458366</MinTileRow>
            <MaxTileRow>20532260</MaxTileRow>
            <MinTileCol>33031790</MinTileCol>
            <MaxTileCol>33117954</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40916733</MinTileRow>
            <MaxTileRow>41064521</MaxTileRow>
            <MinTileCol>66063581</MinTileCol>
            <MaxTileCol>66235908</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81833467</MinTileRow>
            <MaxTileRow>82129043</MaxTileRow>
            <MinTileCol>132127163</MinTileCol>
            <MaxTileCol>132471817</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>163666934</MinTileRow>
            <MaxTileRow>164258087</MaxTileRow>
            <MinTileCol>264254326</MinTileCol>
            <MaxTileCol>264943635</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>327333869</MinTileRow>
            <MaxTileRow>328516174</MaxTileRow>
            <MinTileCol>528508652</MinTileCol>
            <MaxTileCol>529887270</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>654667738</MinTileRow>
            <MaxTileRow>657032349</MaxTileRow>
            <MinTileCol>1057017305</MinTileCol>
            <MaxTileCol>1059774541</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Auckland_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Auckland_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Auckland_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Auckland_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Auckland_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Auckland_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Auckland_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Auckland_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Auckland_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Auckland_geological_units/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Auckland_geological_units/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_modelled_layer4</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_modelled_layer4</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_modelled_layer4" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer4/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer4/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_std_150_200</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_std_150_200</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_std_150_200" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_150_200/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_150_200/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_modelled_layer3</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_modelled_layer3</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_modelled_layer3" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer3/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer3/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_GEOP</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_GEOP</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_geophysics</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_GEOP" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GEOP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GEOP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GEOP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GEOP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GEOP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GEOP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GEOP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GEOP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GEOP/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GEOP/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_GEOP/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_modelled_layer2</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_modelled_layer2</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_modelled_layer2" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer2/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer2/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_modelled_layer1</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_modelled_layer1</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_modelled_layer1" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer1/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer1/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_modelled_layer8</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_modelled_layer8</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_modelled_layer8" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer8/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer8/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_std_250_300</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_std_250_300</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_std_250_300" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_250_300/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_250_300/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_250_300/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_modelled_layer7</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_modelled_layer7</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_modelled_layer7" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer7/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer7/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_modelled_layer6</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_modelled_layer6</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_modelled_layer6" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer6/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer6/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZL-Urban_Nelson_geological_units</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.15696070852889 -41.36085428630638</ows:LowerCorner>
        <ows:UpperCorner>173.34181045275906 -41.2172194312593</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZL-Urban_Nelson_geological_units</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>Urban_Nelson</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=63&amp;height=1040&amp;layer=gns%3ANZL-Urban_Nelson_geological_units" width="63" height="1040"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>186</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>373</MaxTileRow>
            <MinTileCol>1004</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>746</MinTileRow>
            <MaxTileRow>747</MaxTileRow>
            <MinTileCol>2009</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1492</MinTileRow>
            <MaxTileRow>1494</MaxTileRow>
            <MinTileCol>4018</MinTileCol>
            <MaxTileCol>4020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2985</MinTileRow>
            <MaxTileRow>2989</MaxTileRow>
            <MinTileCol>8036</MinTileCol>
            <MaxTileCol>8040</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5971</MinTileRow>
            <MaxTileRow>5978</MaxTileRow>
            <MinTileCol>16072</MinTileCol>
            <MaxTileCol>16080</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11943</MinTileRow>
            <MaxTileRow>11956</MaxTileRow>
            <MinTileCol>32145</MinTileCol>
            <MaxTileCol>32161</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23887</MinTileRow>
            <MaxTileRow>23913</MaxTileRow>
            <MinTileCol>64290</MinTileCol>
            <MaxTileCol>64323</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47774</MinTileRow>
            <MaxTileRow>47827</MaxTileRow>
            <MinTileCol>128580</MinTileCol>
            <MaxTileCol>128647</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95549</MinTileRow>
            <MaxTileRow>95654</MaxTileRow>
            <MinTileCol>257161</MinTileCol>
            <MaxTileCol>257295</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191098</MinTileRow>
            <MaxTileRow>191308</MaxTileRow>
            <MinTileCol>514322</MinTileCol>
            <MaxTileCol>514591</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382197</MinTileRow>
            <MaxTileRow>382616</MaxTileRow>
            <MinTileCol>1028644</MinTileCol>
            <MaxTileCol>1029182</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>764395</MinTileRow>
            <MaxTileRow>765232</MaxTileRow>
            <MinTileCol>2057288</MinTileCol>
            <MaxTileCol>2058365</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1528791</MinTileRow>
            <MaxTileRow>1530464</MaxTileRow>
            <MinTileCol>4114576</MinTileCol>
            <MaxTileCol>4116730</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>320</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>640</MinTileRow>
            <MaxTileRow>641</MaxTileRow>
            <MinTileCol>1004</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1281</MinTileRow>
            <MaxTileRow>1282</MaxTileRow>
            <MinTileCol>2009</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2563</MinTileRow>
            <MaxTileRow>2565</MaxTileRow>
            <MinTileCol>4018</MinTileCol>
            <MaxTileCol>4020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5127</MinTileRow>
            <MaxTileRow>5131</MaxTileRow>
            <MinTileCol>8036</MinTileCol>
            <MaxTileCol>8040</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10254</MinTileRow>
            <MaxTileRow>10263</MaxTileRow>
            <MinTileCol>16072</MinTileCol>
            <MaxTileCol>16080</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20508</MinTileRow>
            <MaxTileRow>20526</MaxTileRow>
            <MinTileCol>32145</MinTileCol>
            <MaxTileCol>32161</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41017</MinTileRow>
            <MaxTileRow>41052</MaxTileRow>
            <MinTileCol>64290</MinTileCol>
            <MaxTileCol>64323</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82034</MinTileRow>
            <MaxTileRow>82104</MaxTileRow>
            <MinTileCol>128580</MinTileCol>
            <MaxTileCol>128647</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164069</MinTileRow>
            <MaxTileRow>164208</MaxTileRow>
            <MinTileCol>257161</MinTileCol>
            <MaxTileCol>257295</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328138</MinTileRow>
            <MaxTileRow>328417</MaxTileRow>
            <MinTileCol>514322</MinTileCol>
            <MaxTileCol>514591</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656277</MinTileRow>
            <MaxTileRow>656834</MaxTileRow>
            <MinTileCol>1028644</MinTileCol>
            <MaxTileCol>1029182</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1312554</MinTileRow>
            <MaxTileRow>1313668</MaxTileRow>
            <MinTileCol>2057288</MinTileCol>
            <MaxTileCol>2058365</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2625109</MinTileRow>
            <MaxTileRow>2627336</MaxTileRow>
            <MinTileCol>4114576</MinTileCol>
            <MaxTileCol>4116730</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5250218</MinTileRow>
            <MaxTileRow>5254672</MaxTileRow>
            <MinTileCol>8229153</MinTileCol>
            <MaxTileCol>8233460</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10500436</MinTileRow>
            <MaxTileRow>10509345</MaxTileRow>
            <MinTileCol>16458307</MinTileCol>
            <MaxTileCol>16466921</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21000873</MinTileRow>
            <MaxTileRow>21018690</MaxTileRow>
            <MinTileCol>32916614</MinTileCol>
            <MaxTileCol>32933843</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42001746</MinTileRow>
            <MaxTileRow>42037381</MaxTileRow>
            <MinTileCol>65833229</MinTileCol>
            <MaxTileCol>65867687</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84003492</MinTileRow>
            <MaxTileRow>84074762</MaxTileRow>
            <MinTileCol>131666458</MinTileCol>
            <MaxTileCol>131735375</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168006985</MinTileRow>
            <MaxTileRow>168149524</MaxTileRow>
            <MinTileCol>263332916</MinTileCol>
            <MaxTileCol>263470750</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336013971</MinTileRow>
            <MaxTileRow>336299048</MaxTileRow>
            <MinTileCol>526665832</MinTileCol>
            <MaxTileCol>526941500</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672027942</MinTileRow>
            <MaxTileRow>672598096</MaxTileRow>
            <MinTileCol>1053331664</MinTileCol>
            <MaxTileCol>1053883000</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Nelson_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Nelson_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Nelson_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Nelson_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Nelson_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Nelson_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Nelson_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Nelson_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Nelson_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Nelson_geological_units/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Nelson_geological_units/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_modelled_layer5</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_modelled_layer5</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_modelled_layer5" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer5/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer5/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_modelled_layer9</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_modelled_layer9</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_modelled_layer9" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer9/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_modelled_layer9/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>PET_WAK</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:PET_WAK</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:pet_waikato</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3APET_WAK" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WAK/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WAK/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WAK/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WAK/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WAK/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WAK/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WAK/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WAK/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WAK/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WAK/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:PET_WAK/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>GPS_Current</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:GPS_Current</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:gps_current_clean</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=126&amp;height=380&amp;layer=gns%3AGPS_Current" width="126" height="380" minScaleDenominator="800000.0"/>
      </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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Current/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Current/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Current/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Current/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Current/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Current/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Current/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Current/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Current/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Current/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GPS_Current/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>landslide_polygon_feature_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.487767424107 -47.2801027807516</ows:LowerCorner>
        <ows:UpperCorner>177.780019965599 -34.4196849411374</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:landslide_polygon_feature_view</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:Landslide_Feature_Type_Polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=137&amp;height=180&amp;layer=gns%3Alandslide_polygon_feature_view" width="137" height="180"/>
      </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>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>390</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>1017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>707</MinTileRow>
            <MaxTileRow>780</MaxTileRow>
            <MinTileCol>1971</MinTileCol>
            <MaxTileCol>2035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1415</MinTileRow>
            <MaxTileRow>1561</MaxTileRow>
            <MinTileCol>3942</MinTileCol>
            <MaxTileCol>4070</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2831</MinTileRow>
            <MaxTileRow>3123</MaxTileRow>
            <MinTileCol>7884</MinTileCol>
            <MaxTileCol>8141</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5662</MinTileRow>
            <MaxTileRow>6247</MaxTileRow>
            <MinTileCol>15769</MinTileCol>
            <MaxTileCol>16282</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11324</MinTileRow>
            <MaxTileRow>12495</MaxTileRow>
            <MinTileCol>31538</MinTileCol>
            <MaxTileCol>32565</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22649</MinTileRow>
            <MaxTileRow>24991</MaxTileRow>
            <MinTileCol>63076</MinTileCol>
            <MaxTileCol>65131</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45299</MinTileRow>
            <MaxTileRow>49982</MaxTileRow>
            <MinTileCol>126152</MinTileCol>
            <MaxTileCol>130263</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90599</MinTileRow>
            <MaxTileRow>99964</MaxTileRow>
            <MinTileCol>252304</MinTileCol>
            <MaxTileCol>260527</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>181199</MinTileRow>
            <MaxTileRow>199928</MaxTileRow>
            <MinTileCol>504609</MinTileCol>
            <MaxTileCol>521054</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>362398</MinTileRow>
            <MaxTileRow>399857</MaxTileRow>
            <MinTileCol>1009218</MinTileCol>
            <MaxTileCol>1042109</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>724797</MinTileRow>
            <MaxTileRow>799714</MaxTileRow>
            <MinTileCol>2018437</MinTileCol>
            <MaxTileCol>2084219</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1449594</MinTileRow>
            <MaxTileRow>1599429</MaxTileRow>
            <MinTileCol>4036875</MinTileCol>
            <MaxTileCol>4168439</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>77</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>308</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>616</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>1017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1232</MinTileRow>
            <MaxTileRow>1330</MaxTileRow>
            <MinTileCol>1971</MinTileCol>
            <MaxTileCol>2035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2465</MinTileRow>
            <MaxTileRow>2660</MaxTileRow>
            <MinTileCol>3942</MinTileCol>
            <MaxTileCol>4070</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4931</MinTileRow>
            <MaxTileRow>5320</MaxTileRow>
            <MinTileCol>7884</MinTileCol>
            <MaxTileCol>8141</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9862</MinTileRow>
            <MaxTileRow>10640</MaxTileRow>
            <MinTileCol>15769</MinTileCol>
            <MaxTileCol>16282</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19724</MinTileRow>
            <MaxTileRow>21280</MaxTileRow>
            <MinTileCol>31538</MinTileCol>
            <MaxTileCol>32565</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39448</MinTileRow>
            <MaxTileRow>42560</MaxTileRow>
            <MinTileCol>63076</MinTileCol>
            <MaxTileCol>65131</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78897</MinTileRow>
            <MaxTileRow>85120</MaxTileRow>
            <MinTileCol>126152</MinTileCol>
            <MaxTileCol>130263</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157795</MinTileRow>
            <MaxTileRow>170240</MaxTileRow>
            <MinTileCol>252304</MinTileCol>
            <MaxTileCol>260527</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315590</MinTileRow>
            <MaxTileRow>340481</MaxTileRow>
            <MinTileCol>504609</MinTileCol>
            <MaxTileCol>521054</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>631181</MinTileRow>
            <MaxTileRow>680963</MaxTileRow>
            <MinTileCol>1009218</MinTileCol>
            <MaxTileCol>1042109</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1262362</MinTileRow>
            <MaxTileRow>1361927</MaxTileRow>
            <MinTileCol>2018437</MinTileCol>
            <MaxTileCol>2084219</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2524724</MinTileRow>
            <MaxTileRow>2723855</MaxTileRow>
            <MinTileCol>4036875</MinTileCol>
            <MaxTileCol>4168439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5049448</MinTileRow>
            <MaxTileRow>5447710</MaxTileRow>
            <MinTileCol>8073750</MinTileCol>
            <MaxTileCol>8336878</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10098897</MinTileRow>
            <MaxTileRow>10895420</MaxTileRow>
            <MinTileCol>16147500</MinTileCol>
            <MaxTileCol>16673757</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20197795</MinTileRow>
            <MaxTileRow>21790840</MaxTileRow>
            <MinTileCol>32295000</MinTileCol>
            <MaxTileCol>33347514</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40395590</MinTileRow>
            <MaxTileRow>43581680</MaxTileRow>
            <MinTileCol>64590001</MinTileCol>
            <MaxTileCol>66695029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80791181</MinTileRow>
            <MaxTileRow>87163360</MaxTileRow>
            <MinTileCol>129180002</MinTileCol>
            <MaxTileCol>133390059</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161582362</MinTileRow>
            <MaxTileRow>174326720</MaxTileRow>
            <MinTileCol>258360005</MinTileCol>
            <MaxTileCol>266780118</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>323164725</MinTileRow>
            <MaxTileRow>348653440</MaxTileRow>
            <MinTileCol>516720010</MinTileCol>
            <MaxTileCol>533560237</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>646329451</MinTileRow>
            <MaxTileRow>697306881</MaxTileRow>
            <MinTileCol>1033440020</MinTileCol>
            <MaxTileCol>1067120475</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_polygon_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_polygon_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_polygon_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_polygon_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_polygon_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_polygon_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_polygon_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_polygon_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_polygon_feature_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_polygon_feature_view/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_polygon_feature_view/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_median_150_200</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_median_150_200</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_median_150_200" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_150_200/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_150_200/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_150_200/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>si_dtw_median</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.07698958345998 -47.637075279868114</ows:LowerCorner>
        <ows:UpperCorner>174.7169297281135 -40.16398214292425</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:si_dtw_median</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_ni_dtw_median</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=172&amp;height=335&amp;layer=twotw%3Asi_dtw_median" width="172" height="335"/>
      </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>23</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>185</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>504</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>370</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1008</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>740</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1968</MinTileCol>
            <MaxTileCol>2017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1480</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3937</MinTileCol>
            <MaxTileCol>4035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2961</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7875</MinTileCol>
            <MaxTileCol>8071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5923</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15750</MinTileCol>
            <MaxTileCol>16143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11847</MinTileRow>
            <MaxTileRow>12528</MaxTileRow>
            <MinTileCol>31500</MinTileCol>
            <MaxTileCol>32287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23695</MinTileRow>
            <MaxTileRow>25056</MaxTileRow>
            <MinTileCol>63001</MinTileCol>
            <MaxTileCol>64574</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47391</MinTileRow>
            <MaxTileRow>50112</MaxTileRow>
            <MinTileCol>126002</MinTileCol>
            <MaxTileCol>129148</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94782</MinTileRow>
            <MaxTileRow>100224</MaxTileRow>
            <MinTileCol>252005</MinTileCol>
            <MaxTileCol>258296</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>189565</MinTileRow>
            <MaxTileRow>200448</MaxTileRow>
            <MinTileCol>504011</MinTileCol>
            <MaxTileCol>516593</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>379130</MinTileRow>
            <MaxTileRow>400897</MaxTileRow>
            <MinTileCol>1008022</MinTileCol>
            <MaxTileCol>1033187</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>758260</MinTileRow>
            <MaxTileRow>801794</MaxTileRow>
            <MinTileCol>2016044</MinTileCol>
            <MaxTileCol>2066375</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1516520</MinTileRow>
            <MaxTileRow>1603588</MaxTileRow>
            <MinTileCol>4032089</MinTileCol>
            <MaxTileCol>4132751</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>39</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>159</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>252</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>318</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>504</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>636</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1008</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1273</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1968</MinTileCol>
            <MaxTileCol>2017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2547</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3937</MinTileCol>
            <MaxTileCol>4035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5095</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7875</MinTileCol>
            <MaxTileCol>8071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10191</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15750</MinTileCol>
            <MaxTileCol>16143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20382</MinTileRow>
            <MaxTileRow>21328</MaxTileRow>
            <MinTileCol>31500</MinTileCol>
            <MaxTileCol>32287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40764</MinTileRow>
            <MaxTileRow>42656</MaxTileRow>
            <MinTileCol>63001</MinTileCol>
            <MaxTileCol>64574</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81528</MinTileRow>
            <MaxTileRow>85312</MaxTileRow>
            <MinTileCol>126002</MinTileCol>
            <MaxTileCol>129148</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>163057</MinTileRow>
            <MaxTileRow>170625</MaxTileRow>
            <MinTileCol>252005</MinTileCol>
            <MaxTileCol>258296</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>326115</MinTileRow>
            <MaxTileRow>341250</MaxTileRow>
            <MinTileCol>504011</MinTileCol>
            <MaxTileCol>516593</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>652231</MinTileRow>
            <MaxTileRow>682501</MaxTileRow>
            <MinTileCol>1008022</MinTileCol>
            <MaxTileCol>1033187</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1304462</MinTileRow>
            <MaxTileRow>1365003</MaxTileRow>
            <MinTileCol>2016044</MinTileCol>
            <MaxTileCol>2066375</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2608924</MinTileRow>
            <MaxTileRow>2730006</MaxTileRow>
            <MinTileCol>4032089</MinTileCol>
            <MaxTileCol>4132751</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5217849</MinTileRow>
            <MaxTileRow>5460012</MaxTileRow>
            <MinTileCol>8064178</MinTileCol>
            <MaxTileCol>8265503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10435699</MinTileRow>
            <MaxTileRow>10920025</MaxTileRow>
            <MinTileCol>16128356</MinTileCol>
            <MaxTileCol>16531007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20871399</MinTileRow>
            <MaxTileRow>21840050</MaxTileRow>
            <MinTileCol>32256713</MinTileCol>
            <MaxTileCol>33062014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41742799</MinTileRow>
            <MaxTileRow>43680101</MaxTileRow>
            <MinTileCol>64513426</MinTileCol>
            <MaxTileCol>66124028</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83485598</MinTileRow>
            <MaxTileRow>87360202</MaxTileRow>
            <MinTileCol>129026853</MinTileCol>
            <MaxTileCol>132248056</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166971196</MinTileRow>
            <MaxTileRow>174720405</MaxTileRow>
            <MinTileCol>258053706</MinTileCol>
            <MaxTileCol>264496113</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>333942393</MinTileRow>
            <MaxTileRow>349440810</MaxTileRow>
            <MinTileCol>516107413</MinTileCol>
            <MaxTileCol>528992226</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>667884786</MinTileRow>
            <MaxTileRow>698881621</MaxTileRow>
            <MinTileCol>1032214827</MinTileCol>
            <MaxTileCol>1057984453</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_dtw_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_dtw_median/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:si_dtw_median/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>AF250.FAULTS</ows:Title>
      <ows:Abstract>1:250K Active Faults</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>164.91153211187202 -47.522131186201875</ows:LowerCorner>
        <ows:UpperCorner>179.87672447778493 -33.92267646266763</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:AF250.FAULTS</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:af250</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AAF250.FAULTS" width="20" height="20"/>
      </Style>
      <Style>
        <ows:Identifier>gns:af250_displacement</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=102&amp;height=80&amp;layer=gns%3AAF250.FAULTS&amp;style=af250_displacement" width="102" height="80"/>
      </Style>
      <Style>
        <ows:Identifier>gns:af250_lastevent</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=100&amp;height=100&amp;layer=gns%3AAF250.FAULTS&amp;style=af250_lastevent" width="100" height="100"/>
      </Style>
      <Style>
        <ows:Identifier>gns:af250_recinterval</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=163&amp;height=140&amp;layer=gns%3AAF250.FAULTS&amp;style=af250_recinterval" width="163" height="140"/>
      </Style>
      <Style>
        <ows:Identifier>gns:af250_sliprate</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=126&amp;height=120&amp;layer=gns%3AAF250.FAULTS&amp;style=af250_sliprate" width="126" height="120"/>
      </Style>
      <Style>
        <ows:Identifier>gns:af250_sliptype</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=66&amp;height=100&amp;layer=gns%3AAF250.FAULTS&amp;style=af250_sliptype" width="66" height="100"/>
      </Style>
      <Style>
        <ows:Identifier>gns:af250_subs</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=57&amp;height=40&amp;layer=gns%3AAF250.FAULTS&amp;style=af250_subs" width="57" height="40"/>
      </Style>
      <Style>
        <ows:Identifier>gns:af_invisible</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AAF250.FAULTS&amp;style=af_invisible" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>490</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>981</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>782</MaxTileRow>
            <MinTileCol>1962</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1564</MaxTileRow>
            <MinTileCol>3924</MinTileCol>
            <MaxTileCol>4094</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3129</MaxTileRow>
            <MinTileCol>7848</MinTileCol>
            <MaxTileCol>8189</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5639</MinTileRow>
            <MaxTileRow>6258</MaxTileRow>
            <MinTileCol>15697</MinTileCol>
            <MaxTileCol>16378</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11279</MinTileRow>
            <MaxTileRow>12517</MaxTileRow>
            <MinTileCol>31394</MinTileCol>
            <MaxTileCol>32756</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22559</MinTileRow>
            <MaxTileRow>25035</MaxTileRow>
            <MinTileCol>62789</MinTileCol>
            <MaxTileCol>65513</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45118</MinTileRow>
            <MaxTileRow>50070</MaxTileRow>
            <MinTileCol>125578</MinTileCol>
            <MaxTileCol>131027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90237</MinTileRow>
            <MaxTileRow>100140</MaxTileRow>
            <MinTileCol>251156</MinTileCol>
            <MaxTileCol>262054</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180475</MinTileRow>
            <MaxTileRow>200281</MaxTileRow>
            <MinTileCol>502313</MinTileCol>
            <MaxTileCol>524108</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360950</MinTileRow>
            <MaxTileRow>400562</MaxTileRow>
            <MinTileCol>1004627</MinTileCol>
            <MaxTileCol>1048216</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721901</MinTileRow>
            <MaxTileRow>801124</MaxTileRow>
            <MinTileCol>2009255</MinTileCol>
            <MaxTileCol>2096433</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443803</MinTileRow>
            <MaxTileRow>1602248</MaxTileRow>
            <MinTileCol>4018510</MinTileCol>
            <MaxTileCol>4192867</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>490</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>981</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1332</MaxTileRow>
            <MinTileCol>1962</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2664</MaxTileRow>
            <MinTileCol>3924</MinTileCol>
            <MaxTileCol>4094</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4917</MinTileRow>
            <MaxTileRow>5328</MaxTileRow>
            <MinTileCol>7848</MinTileCol>
            <MaxTileCol>8189</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9834</MinTileRow>
            <MaxTileRow>10656</MaxTileRow>
            <MinTileCol>15697</MinTileCol>
            <MaxTileCol>16378</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19669</MinTileRow>
            <MaxTileRow>21312</MaxTileRow>
            <MinTileCol>31394</MinTileCol>
            <MaxTileCol>32756</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39339</MinTileRow>
            <MaxTileRow>42625</MaxTileRow>
            <MinTileCol>62789</MinTileCol>
            <MaxTileCol>65513</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78678</MinTileRow>
            <MaxTileRow>85250</MaxTileRow>
            <MinTileCol>125578</MinTileCol>
            <MaxTileCol>131027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157357</MinTileRow>
            <MaxTileRow>170501</MaxTileRow>
            <MinTileCol>251156</MinTileCol>
            <MaxTileCol>262054</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314715</MinTileRow>
            <MaxTileRow>341002</MaxTileRow>
            <MinTileCol>502313</MinTileCol>
            <MaxTileCol>524108</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629431</MinTileRow>
            <MaxTileRow>682005</MaxTileRow>
            <MinTileCol>1004627</MinTileCol>
            <MaxTileCol>1048216</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258862</MinTileRow>
            <MaxTileRow>1364010</MaxTileRow>
            <MinTileCol>2009255</MinTileCol>
            <MaxTileCol>2096433</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517725</MinTileRow>
            <MaxTileRow>2728021</MaxTileRow>
            <MinTileCol>4018510</MinTileCol>
            <MaxTileCol>4192867</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5035451</MinTileRow>
            <MaxTileRow>5456042</MaxTileRow>
            <MinTileCol>8037021</MinTileCol>
            <MaxTileCol>8385735</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10070902</MinTileRow>
            <MaxTileRow>10912084</MaxTileRow>
            <MinTileCol>16074042</MinTileCol>
            <MaxTileCol>16771470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20141804</MinTileRow>
            <MaxTileRow>21824168</MaxTileRow>
            <MinTileCol>32148084</MinTileCol>
            <MaxTileCol>33542941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40283608</MinTileRow>
            <MaxTileRow>43648336</MaxTileRow>
            <MinTileCol>64296169</MinTileCol>
            <MaxTileCol>67085883</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80567217</MinTileRow>
            <MaxTileRow>87296673</MaxTileRow>
            <MinTileCol>128592339</MinTileCol>
            <MaxTileCol>134171767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161134435</MinTileRow>
            <MaxTileRow>174593347</MaxTileRow>
            <MinTileCol>257184678</MinTileCol>
            <MaxTileCol>268343535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322268870</MinTileRow>
            <MaxTileRow>349186695</MaxTileRow>
            <MinTileCol>514369357</MinTileCol>
            <MaxTileCol>536687070</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644537741</MinTileRow>
            <MaxTileRow>698373391</MaxTileRow>
            <MinTileCol>1028738715</MinTileCol>
            <MaxTileCol>1073374140</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:AF250.FAULTS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:AF250.FAULTS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:AF250.FAULTS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:AF250.FAULTS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:AF250.FAULTS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:AF250.FAULTS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:AF250.FAULTS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:AF250.FAULTS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:AF250.FAULTS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:AF250.FAULTS/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:AF250.FAULTS/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>territorial_council</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>164.89826525484307 -47.506336749678084</ows:LowerCorner>
        <ows:UpperCorner>179.87811421736072 -33.95274536243223</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:territorial_council</ows:Identifier>
      <Style>
        <ows:Identifier>tla_poly</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Aterritorial_council&amp;style=tla_poly" width="20" height="20"/>
      </Style>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Aterritorial_council" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>490</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>981</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>705</MinTileRow>
            <MaxTileRow>782</MaxTileRow>
            <MinTileCol>1962</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1410</MinTileRow>
            <MaxTileRow>1564</MaxTileRow>
            <MinTileCol>3924</MinTileCol>
            <MaxTileCol>4094</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2820</MinTileRow>
            <MaxTileRow>3129</MaxTileRow>
            <MinTileCol>7848</MinTileCol>
            <MaxTileCol>8189</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5641</MinTileRow>
            <MaxTileRow>6258</MaxTileRow>
            <MinTileCol>15696</MinTileCol>
            <MaxTileCol>16378</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11282</MinTileRow>
            <MaxTileRow>12516</MaxTileRow>
            <MinTileCol>31393</MinTileCol>
            <MaxTileCol>32756</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22564</MinTileRow>
            <MaxTileRow>25032</MaxTileRow>
            <MinTileCol>62786</MinTileCol>
            <MaxTileCol>65513</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45129</MinTileRow>
            <MaxTileRow>50064</MaxTileRow>
            <MinTileCol>125573</MinTileCol>
            <MaxTileCol>131027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90259</MinTileRow>
            <MaxTileRow>100129</MaxTileRow>
            <MinTileCol>251147</MinTileCol>
            <MaxTileCol>262055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180519</MinTileRow>
            <MaxTileRow>200258</MaxTileRow>
            <MinTileCol>502294</MinTileCol>
            <MaxTileCol>524110</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361038</MinTileRow>
            <MaxTileRow>400516</MaxTileRow>
            <MinTileCol>1004589</MinTileCol>
            <MaxTileCol>1048220</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>722077</MinTileRow>
            <MaxTileRow>801032</MaxTileRow>
            <MinTileCol>2009178</MinTileCol>
            <MaxTileCol>2096441</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1444154</MinTileRow>
            <MaxTileRow>1602064</MaxTileRow>
            <MinTileCol>4018356</MinTileCol>
            <MaxTileCol>4192883</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>490</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>981</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1331</MaxTileRow>
            <MinTileCol>1962</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2459</MinTileRow>
            <MaxTileRow>2663</MaxTileRow>
            <MinTileCol>3924</MinTileCol>
            <MaxTileCol>4094</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4918</MinTileRow>
            <MaxTileRow>5327</MaxTileRow>
            <MinTileCol>7848</MinTileCol>
            <MaxTileCol>8189</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9836</MinTileRow>
            <MaxTileRow>10655</MaxTileRow>
            <MinTileCol>15696</MinTileCol>
            <MaxTileCol>16378</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19673</MinTileRow>
            <MaxTileRow>21310</MaxTileRow>
            <MinTileCol>31393</MinTileCol>
            <MaxTileCol>32756</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39346</MinTileRow>
            <MaxTileRow>42621</MaxTileRow>
            <MinTileCol>62786</MinTileCol>
            <MaxTileCol>65513</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78692</MinTileRow>
            <MaxTileRow>85242</MaxTileRow>
            <MinTileCol>125573</MinTileCol>
            <MaxTileCol>131027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157384</MinTileRow>
            <MaxTileRow>170484</MaxTileRow>
            <MinTileCol>251147</MinTileCol>
            <MaxTileCol>262055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314768</MinTileRow>
            <MaxTileRow>340968</MaxTileRow>
            <MinTileCol>502294</MinTileCol>
            <MaxTileCol>524110</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629536</MinTileRow>
            <MaxTileRow>681937</MaxTileRow>
            <MinTileCol>1004589</MinTileCol>
            <MaxTileCol>1048220</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1259073</MinTileRow>
            <MaxTileRow>1363874</MaxTileRow>
            <MinTileCol>2009178</MinTileCol>
            <MaxTileCol>2096441</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2518147</MinTileRow>
            <MaxTileRow>2727748</MaxTileRow>
            <MinTileCol>4018356</MinTileCol>
            <MaxTileCol>4192883</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5036295</MinTileRow>
            <MaxTileRow>5455497</MaxTileRow>
            <MinTileCol>8036712</MinTileCol>
            <MaxTileCol>8385767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10072591</MinTileRow>
            <MaxTileRow>10910994</MaxTileRow>
            <MinTileCol>16073424</MinTileCol>
            <MaxTileCol>16771535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20145182</MinTileRow>
            <MaxTileRow>21821988</MaxTileRow>
            <MinTileCol>32146848</MinTileCol>
            <MaxTileCol>33543071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40290365</MinTileRow>
            <MaxTileRow>43643977</MaxTileRow>
            <MinTileCol>64293696</MinTileCol>
            <MaxTileCol>67086142</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80580730</MinTileRow>
            <MaxTileRow>87287955</MaxTileRow>
            <MinTileCol>128587393</MinTileCol>
            <MaxTileCol>134172285</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161161460</MinTileRow>
            <MaxTileRow>174575910</MaxTileRow>
            <MinTileCol>257174786</MinTileCol>
            <MaxTileCol>268344571</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322322920</MinTileRow>
            <MaxTileRow>349151821</MaxTileRow>
            <MinTileCol>514349572</MinTileCol>
            <MaxTileCol>536689142</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644645841</MinTileRow>
            <MaxTileRow>698303642</MaxTileRow>
            <MinTileCol>1028699145</MinTileCol>
            <MaxTileCol>1073378285</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:territorial_council/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:territorial_council/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:territorial_council/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:territorial_council/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:territorial_council/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:territorial_council/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:territorial_council/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:territorial_council/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:territorial_council/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:territorial_council/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:territorial_council/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZaquifers_2015</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>167.19612148872332 -46.67207578863856</ows:LowerCorner>
        <ows:UpperCorner>179.36608557107908 -34.38337434389387</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZaquifers_2015</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>ggw:nz_aquifer</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3ANZaquifers_2015" width="20" height="20" maxScaleDenominator="1.8E7"/>
      </Style>
      <Style>
        <ows:Identifier>gns:coast_1m</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3ANZaquifers_2015&amp;style=coast_1m" 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>194</MaxTileRow>
            <MinTileCol>493</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>987</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>707</MinTileRow>
            <MaxTileRow>777</MaxTileRow>
            <MinTileCol>1975</MinTileCol>
            <MaxTileCol>2044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1415</MinTileRow>
            <MaxTileRow>1555</MaxTileRow>
            <MinTileCol>3950</MinTileCol>
            <MaxTileCol>4088</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2830</MinTileRow>
            <MaxTileRow>3110</MaxTileRow>
            <MinTileCol>7900</MinTileCol>
            <MaxTileCol>8177</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5660</MinTileRow>
            <MaxTileRow>6220</MaxTileRow>
            <MinTileCol>15801</MinTileCol>
            <MaxTileCol>16355</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11321</MinTileRow>
            <MaxTileRow>12440</MaxTileRow>
            <MinTileCol>31602</MinTileCol>
            <MaxTileCol>32710</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22643</MinTileRow>
            <MaxTileRow>24880</MaxTileRow>
            <MinTileCol>63205</MinTileCol>
            <MaxTileCol>65420</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45286</MinTileRow>
            <MaxTileRow>49760</MaxTileRow>
            <MinTileCol>126410</MinTileCol>
            <MaxTileCol>130841</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90573</MinTileRow>
            <MaxTileRow>99521</MaxTileRow>
            <MinTileCol>252820</MinTileCol>
            <MaxTileCol>261682</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>181146</MinTileRow>
            <MaxTileRow>199043</MaxTileRow>
            <MinTileCol>505641</MinTileCol>
            <MaxTileCol>523364</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>362292</MinTileRow>
            <MaxTileRow>398086</MaxTileRow>
            <MinTileCol>1011282</MinTileCol>
            <MaxTileCol>1046729</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>724585</MinTileRow>
            <MaxTileRow>796172</MaxTileRow>
            <MinTileCol>2022564</MinTileCol>
            <MaxTileCol>2093459</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1449171</MinTileRow>
            <MaxTileRow>1592345</MaxTileRow>
            <MinTileCol>4045128</MinTileCol>
            <MaxTileCol>4186918</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>77</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>308</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>493</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>616</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>987</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1232</MinTileRow>
            <MaxTileRow>1324</MaxTileRow>
            <MinTileCol>1975</MinTileCol>
            <MaxTileCol>2044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2465</MinTileRow>
            <MaxTileRow>2649</MaxTileRow>
            <MinTileCol>3950</MinTileCol>
            <MaxTileCol>4088</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4930</MinTileRow>
            <MaxTileRow>5299</MaxTileRow>
            <MinTileCol>7900</MinTileCol>
            <MaxTileCol>8177</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9860</MinTileRow>
            <MaxTileRow>10599</MaxTileRow>
            <MinTileCol>15801</MinTileCol>
            <MaxTileCol>16355</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19720</MinTileRow>
            <MaxTileRow>21199</MaxTileRow>
            <MinTileCol>31602</MinTileCol>
            <MaxTileCol>32710</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39440</MinTileRow>
            <MaxTileRow>42398</MaxTileRow>
            <MinTileCol>63205</MinTileCol>
            <MaxTileCol>65420</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78881</MinTileRow>
            <MaxTileRow>84796</MaxTileRow>
            <MinTileCol>126410</MinTileCol>
            <MaxTileCol>130841</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157763</MinTileRow>
            <MaxTileRow>169592</MaxTileRow>
            <MinTileCol>252820</MinTileCol>
            <MaxTileCol>261682</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315526</MinTileRow>
            <MaxTileRow>339184</MaxTileRow>
            <MinTileCol>505641</MinTileCol>
            <MaxTileCol>523364</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>631052</MinTileRow>
            <MaxTileRow>678368</MaxTileRow>
            <MinTileCol>1011282</MinTileCol>
            <MaxTileCol>1046729</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1262105</MinTileRow>
            <MaxTileRow>1356736</MaxTileRow>
            <MinTileCol>2022564</MinTileCol>
            <MaxTileCol>2093459</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2524211</MinTileRow>
            <MaxTileRow>2713472</MaxTileRow>
            <MinTileCol>4045128</MinTileCol>
            <MaxTileCol>4186918</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5048423</MinTileRow>
            <MaxTileRow>5426944</MaxTileRow>
            <MinTileCol>8090256</MinTileCol>
            <MaxTileCol>8373836</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10096846</MinTileRow>
            <MaxTileRow>10853889</MaxTileRow>
            <MinTileCol>16180512</MinTileCol>
            <MaxTileCol>16747673</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20193693</MinTileRow>
            <MaxTileRow>21707778</MaxTileRow>
            <MinTileCol>32361024</MinTileCol>
            <MaxTileCol>33495346</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40387387</MinTileRow>
            <MaxTileRow>43415557</MaxTileRow>
            <MinTileCol>64722048</MinTileCol>
            <MaxTileCol>66990693</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80774774</MinTileRow>
            <MaxTileRow>86831114</MaxTileRow>
            <MinTileCol>129444096</MinTileCol>
            <MaxTileCol>133981387</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161549548</MinTileRow>
            <MaxTileRow>173662229</MaxTileRow>
            <MinTileCol>258888192</MinTileCol>
            <MaxTileCol>267962775</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>323099096</MinTileRow>
            <MaxTileRow>347324458</MaxTileRow>
            <MinTileCol>517776384</MinTileCol>
            <MaxTileCol>535925550</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>646198193</MinTileRow>
            <MaxTileRow>694648916</MaxTileRow>
            <MinTileCol>1035552768</MinTileCol>
            <MaxTileCol>1071851100</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZaquifers_2015/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZaquifers_2015/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZaquifers_2015/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZaquifers_2015/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZaquifers_2015/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZaquifers_2015/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZaquifers_2015/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZaquifers_2015/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZaquifers_2015/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZaquifers_2015/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZaquifers_2015/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>v_naturalthermalfeaturespringsofnewzealand_features</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.0 -48.0</ows:LowerCorner>
        <ows:UpperCorner>179.00036006778478 -33.0</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>ggw:NaturalThermalFeatureSpringsofNewZealand</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>point</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=ggw%3ANaturalThermalFeatureSpringsofNewZealand" 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>10</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>21</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>43</MinTileRow>
            <MaxTileRow>49</MaxTileRow>
            <MinTileCol>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>87</MinTileRow>
            <MaxTileRow>98</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>174</MinTileRow>
            <MaxTileRow>196</MaxTileRow>
            <MinTileCol>490</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>349</MinTileRow>
            <MaxTileRow>392</MaxTileRow>
            <MinTileCol>981</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>699</MinTileRow>
            <MaxTileRow>785</MaxTileRow>
            <MinTileCol>1962</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1399</MinTileRow>
            <MaxTileRow>1570</MaxTileRow>
            <MinTileCol>3925</MinTileCol>
            <MaxTileCol>4084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2798</MinTileRow>
            <MaxTileRow>3140</MaxTileRow>
            <MinTileCol>7850</MinTileCol>
            <MaxTileCol>8169</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5597</MinTileRow>
            <MaxTileRow>6280</MaxTileRow>
            <MinTileCol>15701</MinTileCol>
            <MaxTileCol>16338</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11195</MinTileRow>
            <MaxTileRow>12561</MaxTileRow>
            <MinTileCol>31402</MinTileCol>
            <MaxTileCol>32677</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22391</MinTileRow>
            <MaxTileRow>25122</MaxTileRow>
            <MinTileCol>62805</MinTileCol>
            <MaxTileCol>65354</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>44782</MinTileRow>
            <MaxTileRow>50244</MaxTileRow>
            <MinTileCol>125610</MinTileCol>
            <MaxTileCol>130708</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>89565</MinTileRow>
            <MaxTileRow>100488</MaxTileRow>
            <MinTileCol>251221</MinTileCol>
            <MaxTileCol>261416</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>179131</MinTileRow>
            <MaxTileRow>200977</MaxTileRow>
            <MinTileCol>502442</MinTileCol>
            <MaxTileCol>522832</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>358263</MinTileRow>
            <MaxTileRow>401954</MaxTileRow>
            <MinTileCol>1004885</MinTileCol>
            <MaxTileCol>1045664</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>716526</MinTileRow>
            <MaxTileRow>803908</MaxTileRow>
            <MinTileCol>2009770</MinTileCol>
            <MaxTileCol>2091328</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1433053</MinTileRow>
            <MaxTileRow>1607816</MaxTileRow>
            <MinTileCol>4019541</MinTileCol>
            <MaxTileCol>4182657</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>152</MinTileRow>
            <MaxTileRow>167</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>305</MinTileRow>
            <MaxTileRow>334</MaxTileRow>
            <MinTileCol>490</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>611</MinTileRow>
            <MaxTileRow>668</MaxTileRow>
            <MinTileCol>981</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1223</MinTileRow>
            <MaxTileRow>1336</MaxTileRow>
            <MinTileCol>1962</MinTileCol>
            <MaxTileCol>2042</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2446</MinTileRow>
            <MaxTileRow>2672</MaxTileRow>
            <MinTileCol>3925</MinTileCol>
            <MaxTileCol>4084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4892</MinTileRow>
            <MaxTileRow>5344</MaxTileRow>
            <MinTileCol>7850</MinTileCol>
            <MaxTileCol>8169</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9784</MinTileRow>
            <MaxTileRow>10688</MaxTileRow>
            <MinTileCol>15701</MinTileCol>
            <MaxTileCol>16338</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19569</MinTileRow>
            <MaxTileRow>21377</MaxTileRow>
            <MinTileCol>31402</MinTileCol>
            <MaxTileCol>32677</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39138</MinTileRow>
            <MaxTileRow>42754</MaxTileRow>
            <MinTileCol>62805</MinTileCol>
            <MaxTileCol>65354</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78276</MinTileRow>
            <MaxTileRow>85509</MaxTileRow>
            <MinTileCol>125610</MinTileCol>
            <MaxTileCol>130708</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>156552</MinTileRow>
            <MaxTileRow>171018</MaxTileRow>
            <MinTileCol>251221</MinTileCol>
            <MaxTileCol>261416</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>313104</MinTileRow>
            <MaxTileRow>342037</MaxTileRow>
            <MinTileCol>502442</MinTileCol>
            <MaxTileCol>522832</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>626209</MinTileRow>
            <MaxTileRow>684075</MaxTileRow>
            <MinTileCol>1004885</MinTileCol>
            <MaxTileCol>1045664</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1252419</MinTileRow>
            <MaxTileRow>1368151</MaxTileRow>
            <MinTileCol>2009770</MinTileCol>
            <MaxTileCol>2091328</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2504839</MinTileRow>
            <MaxTileRow>2736303</MaxTileRow>
            <MinTileCol>4019541</MinTileCol>
            <MaxTileCol>4182657</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5009679</MinTileRow>
            <MaxTileRow>5472606</MaxTileRow>
            <MinTileCol>8039082</MinTileCol>
            <MaxTileCol>8365314</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10019358</MinTileRow>
            <MaxTileRow>10945213</MaxTileRow>
            <MinTileCol>16078165</MinTileCol>
            <MaxTileCol>16730629</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20038717</MinTileRow>
            <MaxTileRow>21890427</MaxTileRow>
            <MinTileCol>32156330</MinTileCol>
            <MaxTileCol>33461258</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40077434</MinTileRow>
            <MaxTileRow>43780855</MaxTileRow>
            <MinTileCol>64312661</MinTileCol>
            <MaxTileCol>66922517</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80154868</MinTileRow>
            <MaxTileRow>87561710</MaxTileRow>
            <MinTileCol>128625322</MinTileCol>
            <MaxTileCol>133845035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>160309736</MinTileRow>
            <MaxTileRow>175123421</MaxTileRow>
            <MinTileCol>257250645</MinTileCol>
            <MaxTileCol>267690070</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>320619473</MinTileRow>
            <MaxTileRow>350246843</MaxTileRow>
            <MinTileCol>514501290</MinTileCol>
            <MaxTileCol>535380140</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>641238947</MinTileRow>
            <MaxTileRow>700493687</MaxTileRow>
            <MinTileCol>1029002581</MinTileCol>
            <MaxTileCol>1070760281</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NaturalThermalFeatureSpringsofNewZealand/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NaturalThermalFeatureSpringsofNewZealand/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NaturalThermalFeatureSpringsofNewZealand/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NaturalThermalFeatureSpringsofNewZealand/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NaturalThermalFeatureSpringsofNewZealand/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NaturalThermalFeatureSpringsofNewZealand/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NaturalThermalFeatureSpringsofNewZealand/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NaturalThermalFeatureSpringsofNewZealand/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NaturalThermalFeatureSpringsofNewZealand/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NaturalThermalFeatureSpringsofNewZealand/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/ggw:NaturalThermalFeatureSpringsofNewZealand/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_median_20_30</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_median_20_30</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_median_20_30" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_20_30/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_20_30/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_std_layer9</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_std_layer9</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_std_layer9" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer9/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer9/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer9/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_wairau_std_layer8</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.72361800202032 -41.56829031435829</ows:LowerCorner>
        <ows:UpperCorner>174.14655635975285 -41.38384886362581</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_wairau_std_layer8</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_wairau_std_layer8" width="84" height="160"/>
      </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>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>93</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>186</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>373</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>747</MinTileRow>
            <MaxTileRow>748</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1494</MinTileRow>
            <MaxTileRow>1496</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2989</MinTileRow>
            <MaxTileRow>2993</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5979</MinTileRow>
            <MaxTileRow>5987</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11958</MinTileRow>
            <MaxTileRow>11975</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23917</MinTileRow>
            <MaxTileRow>23951</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47835</MinTileRow>
            <MaxTileRow>47902</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>95670</MinTileRow>
            <MaxTileRow>95805</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>191341</MinTileRow>
            <MaxTileRow>191610</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>382683</MinTileRow>
            <MaxTileRow>383220</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>765366</MinTileRow>
            <MaxTileRow>766440</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1530732</MinTileRow>
            <MaxTileRow>1532881</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</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>80</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>160</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>320</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>503</MinTileCol>
            <MaxTileCol>503</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>641</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1006</MinTileCol>
            <MaxTileCol>1007</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1283</MinTileRow>
            <MaxTileRow>1284</MaxTileRow>
            <MinTileCol>2012</MinTileCol>
            <MaxTileCol>2014</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2566</MinTileRow>
            <MaxTileRow>2568</MaxTileRow>
            <MinTileCol>4024</MinTileCol>
            <MaxTileCol>4029</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5132</MinTileRow>
            <MaxTileRow>5137</MaxTileRow>
            <MinTileCol>8049</MinTileCol>
            <MaxTileCol>8058</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10264</MinTileRow>
            <MaxTileRow>10275</MaxTileRow>
            <MinTileCol>16098</MinTileCol>
            <MaxTileCol>16117</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20528</MinTileRow>
            <MaxTileRow>20551</MaxTileRow>
            <MinTileCol>32196</MinTileCol>
            <MaxTileCol>32235</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41057</MinTileRow>
            <MaxTileRow>41102</MaxTileRow>
            <MinTileCol>64393</MinTileCol>
            <MaxTileCol>64470</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82115</MinTileRow>
            <MaxTileRow>82205</MaxTileRow>
            <MinTileCol>128786</MinTileCol>
            <MaxTileCol>128940</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>164230</MinTileRow>
            <MaxTileRow>164410</MaxTileRow>
            <MinTileCol>257573</MinTileCol>
            <MaxTileCol>257881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>328461</MinTileRow>
            <MaxTileRow>328820</MaxTileRow>
            <MinTileCol>515147</MinTileCol>
            <MaxTileCol>515763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>656923</MinTileRow>
            <MaxTileRow>657640</MaxTileRow>
            <MinTileCol>1030294</MinTileCol>
            <MaxTileCol>1031526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1313846</MinTileRow>
            <MaxTileRow>1315280</MaxTileRow>
            <MinTileCol>2060589</MinTileCol>
            <MaxTileCol>2063053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2627693</MinTileRow>
            <MaxTileRow>2630561</MaxTileRow>
            <MinTileCol>4121178</MinTileCol>
            <MaxTileCol>4126106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5255386</MinTileRow>
            <MaxTileRow>5261122</MaxTileRow>
            <MinTileCol>8242357</MinTileCol>
            <MaxTileCol>8252212</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10510773</MinTileRow>
            <MaxTileRow>10522245</MaxTileRow>
            <MinTileCol>16484715</MinTileCol>
            <MaxTileCol>16504425</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21021546</MinTileRow>
            <MaxTileRow>21044491</MaxTileRow>
            <MinTileCol>32969430</MinTileCol>
            <MaxTileCol>33008851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42043093</MinTileRow>
            <MaxTileRow>42088983</MaxTileRow>
            <MinTileCol>65938861</MinTileCol>
            <MaxTileCol>66017703</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84086186</MinTileRow>
            <MaxTileRow>84177966</MaxTileRow>
            <MinTileCol>131877723</MinTileCol>
            <MaxTileCol>132035406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>168172372</MinTileRow>
            <MaxTileRow>168355933</MaxTileRow>
            <MinTileCol>263755446</MinTileCol>
            <MaxTileCol>264070812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>336344744</MinTileRow>
            <MaxTileRow>336711866</MaxTileRow>
            <MinTileCol>527510892</MinTileCol>
            <MaxTileCol>528141624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>672689489</MinTileRow>
            <MaxTileRow>673423732</MaxTileRow>
            <MinTileCol>1055021785</MinTileCol>
            <MaxTileCol>1056283248</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer8/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer8/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_wairau_std_layer8/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>GERM_ERML_VIEW_SLOW</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:GERM_ERML_VIEW_SLOW</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:germ_erml_view</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=77&amp;height=60&amp;layer=gns%3AGERM_ERML_VIEW_SLOW" width="77" height="60"/>
      </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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_SLOW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_SLOW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_SLOW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_SLOW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_SLOW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_SLOW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_SLOW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_SLOW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_SLOW/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_SLOW/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GERM_ERML_VIEW_SLOW/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>Rotorua-2014</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.16504205432642 -38.198988157042315</ows:LowerCorner>
        <ows:UpperCorner>176.41040954306146 -38.06049256194667</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>atir-nz:Rotorua-2014</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>atir-nz:rototest</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=22&amp;height=6091&amp;layer=atir-nz%3ARotorua-2014" width="22" height="6091"/>
      </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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>91</MinTileRow>
            <MaxTileRow>91</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>182</MinTileRow>
            <MaxTileRow>182</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>364</MinTileRow>
            <MaxTileRow>364</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>728</MinTileRow>
            <MaxTileRow>729</MaxTileRow>
            <MinTileCol>2026</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1457</MinTileRow>
            <MaxTileRow>1458</MaxTileRow>
            <MinTileCol>4052</MinTileCol>
            <MaxTileCol>4055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2914</MinTileRow>
            <MaxTileRow>2917</MaxTileRow>
            <MinTileCol>8104</MinTileCol>
            <MaxTileCol>8110</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5828</MinTileRow>
            <MaxTileRow>5834</MaxTileRow>
            <MinTileCol>16209</MinTileCol>
            <MaxTileCol>16220</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11656</MinTileRow>
            <MaxTileRow>11668</MaxTileRow>
            <MinTileCol>32418</MinTileCol>
            <MaxTileCol>32441</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23312</MinTileRow>
            <MaxTileRow>23337</MaxTileRow>
            <MinTileCol>64837</MinTileCol>
            <MaxTileCol>64882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46625</MinTileRow>
            <MaxTileRow>46675</MaxTileRow>
            <MinTileCol>129675</MinTileCol>
            <MaxTileCol>129765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>93250</MinTileRow>
            <MaxTileRow>93351</MaxTileRow>
            <MinTileCol>259351</MinTileCol>
            <MaxTileCol>259530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>186501</MinTileRow>
            <MaxTileRow>186703</MaxTileRow>
            <MinTileCol>518702</MinTileCol>
            <MaxTileCol>519060</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>373003</MinTileRow>
            <MaxTileRow>373406</MaxTileRow>
            <MinTileCol>1037405</MinTileCol>
            <MaxTileCol>1038120</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>746006</MinTileRow>
            <MaxTileRow>746813</MaxTileRow>
            <MinTileCol>2074811</MinTileCol>
            <MaxTileCol>2076241</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1492012</MinTileRow>
            <MaxTileRow>1493626</MaxTileRow>
            <MinTileCol>4149623</MinTileCol>
            <MaxTileCol>4152482</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>78</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>157</MinTileRow>
            <MaxTileRow>157</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>314</MinTileRow>
            <MaxTileRow>314</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>629</MinTileRow>
            <MaxTileRow>629</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1258</MinTileRow>
            <MaxTileRow>1259</MaxTileRow>
            <MinTileCol>2026</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2516</MinTileRow>
            <MaxTileRow>2518</MaxTileRow>
            <MinTileCol>4052</MinTileCol>
            <MaxTileCol>4055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5033</MinTileRow>
            <MaxTileRow>5037</MaxTileRow>
            <MinTileCol>8104</MinTileCol>
            <MaxTileCol>8110</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10067</MinTileRow>
            <MaxTileRow>10075</MaxTileRow>
            <MinTileCol>16209</MinTileCol>
            <MaxTileCol>16220</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20135</MinTileRow>
            <MaxTileRow>20151</MaxTileRow>
            <MinTileCol>32418</MinTileCol>
            <MaxTileCol>32441</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40270</MinTileRow>
            <MaxTileRow>40302</MaxTileRow>
            <MinTileCol>64837</MinTileCol>
            <MaxTileCol>64882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80541</MinTileRow>
            <MaxTileRow>80605</MaxTileRow>
            <MinTileCol>129675</MinTileCol>
            <MaxTileCol>129765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>161083</MinTileRow>
            <MaxTileRow>161211</MaxTileRow>
            <MinTileCol>259351</MinTileCol>
            <MaxTileCol>259530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>322166</MinTileRow>
            <MaxTileRow>322423</MaxTileRow>
            <MinTileCol>518702</MinTileCol>
            <MaxTileCol>519060</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>644333</MinTileRow>
            <MaxTileRow>644846</MaxTileRow>
            <MinTileCol>1037405</MinTileCol>
            <MaxTileCol>1038120</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1288667</MinTileRow>
            <MaxTileRow>1289693</MaxTileRow>
            <MinTileCol>2074811</MinTileCol>
            <MaxTileCol>2076241</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2577335</MinTileRow>
            <MaxTileRow>2579386</MaxTileRow>
            <MinTileCol>4149623</MinTileCol>
            <MaxTileCol>4152482</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5154670</MinTileRow>
            <MaxTileRow>5158773</MaxTileRow>
            <MinTileCol>8299247</MinTileCol>
            <MaxTileCol>8304964</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10309341</MinTileRow>
            <MaxTileRow>10317547</MaxTileRow>
            <MinTileCol>16598494</MinTileCol>
            <MaxTileCol>16609928</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20618683</MinTileRow>
            <MaxTileRow>20635094</MaxTileRow>
            <MinTileCol>33196988</MinTileCol>
            <MaxTileCol>33219857</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41237367</MinTileRow>
            <MaxTileRow>41270188</MaxTileRow>
            <MinTileCol>66393976</MinTileCol>
            <MaxTileCol>66439715</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82474735</MinTileRow>
            <MaxTileRow>82540377</MaxTileRow>
            <MinTileCol>132787952</MinTileCol>
            <MaxTileCol>132879431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>164949471</MinTileRow>
            <MaxTileRow>165080755</MaxTileRow>
            <MinTileCol>265575904</MinTileCol>
            <MaxTileCol>265758863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>329898943</MinTileRow>
            <MaxTileRow>330161511</MaxTileRow>
            <MinTileCol>531151808</MinTileCol>
            <MaxTileCol>531517726</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>659797886</MinTileRow>
            <MaxTileRow>660323022</MaxTileRow>
            <MinTileCol>1062303616</MinTileCol>
            <MaxTileCol>1063035453</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Rotorua-2014/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Rotorua-2014/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Rotorua-2014/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Rotorua-2014/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Rotorua-2014/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Rotorua-2014/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Rotorua-2014/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Rotorua-2014/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Rotorua-2014/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Rotorua-2014/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:Rotorua-2014/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>geol_units_f</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>169.65430944974244 -44.45614679682889</ows:LowerCorner>
        <ows:UpperCorner>172.75750096498697 -42.241053415147064</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:geol_units_f</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:csigg_units_style</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=231&amp;height=960&amp;layer=gns%3Ageol_units_f" width="231" height="960"/>
      </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>124</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>94</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>188</MinTileRow>
            <MaxTileRow>191</MaxTileRow>
            <MinTileCol>497</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>376</MinTileRow>
            <MaxTileRow>382</MaxTileRow>
            <MinTileCol>994</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>752</MinTileRow>
            <MaxTileRow>764</MaxTileRow>
            <MinTileCol>1989</MinTileCol>
            <MaxTileCol>2006</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1504</MinTileRow>
            <MaxTileRow>1529</MaxTileRow>
            <MinTileCol>3978</MinTileCol>
            <MaxTileCol>4013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3009</MinTileRow>
            <MaxTileRow>3059</MaxTileRow>
            <MinTileCol>7956</MinTileCol>
            <MaxTileCol>8027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6018</MinTileRow>
            <MaxTileRow>6119</MaxTileRow>
            <MinTileCol>15913</MinTileCol>
            <MaxTileCol>16054</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12036</MinTileRow>
            <MaxTileRow>12238</MaxTileRow>
            <MinTileCol>31826</MinTileCol>
            <MaxTileCol>32108</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24073</MinTileRow>
            <MaxTileRow>24476</MaxTileRow>
            <MinTileCol>63652</MinTileCol>
            <MaxTileCol>64217</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48147</MinTileRow>
            <MaxTileRow>48953</MaxTileRow>
            <MinTileCol>127305</MinTileCol>
            <MaxTileCol>128435</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>96294</MinTileRow>
            <MaxTileRow>97907</MaxTileRow>
            <MinTileCol>254610</MinTileCol>
            <MaxTileCol>256870</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>192589</MinTileRow>
            <MaxTileRow>195815</MaxTileRow>
            <MinTileCol>509220</MinTileCol>
            <MaxTileCol>513740</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>385179</MinTileRow>
            <MaxTileRow>391631</MaxTileRow>
            <MinTileCol>1018441</MinTileCol>
            <MaxTileCol>1027480</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>770359</MinTileRow>
            <MaxTileRow>783263</MaxTileRow>
            <MinTileCol>2036883</MinTileCol>
            <MaxTileCol>2054961</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1540719</MinTileRow>
            <MaxTileRow>1566527</MaxTileRow>
            <MinTileCol>4073767</MinTileCol>
            <MaxTileCol>4109922</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>80</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>161</MinTileRow>
            <MaxTileRow>163</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>322</MinTileRow>
            <MaxTileRow>326</MaxTileRow>
            <MinTileCol>497</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>644</MinTileRow>
            <MaxTileRow>653</MaxTileRow>
            <MinTileCol>994</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1289</MinTileRow>
            <MaxTileRow>1306</MaxTileRow>
            <MinTileCol>1989</MinTileCol>
            <MaxTileCol>2006</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2579</MinTileRow>
            <MaxTileRow>2613</MaxTileRow>
            <MinTileCol>3978</MinTileCol>
            <MaxTileCol>4013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5158</MinTileRow>
            <MaxTileRow>5227</MaxTileRow>
            <MinTileCol>7956</MinTileCol>
            <MaxTileCol>8027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10316</MinTileRow>
            <MaxTileRow>10455</MaxTileRow>
            <MinTileCol>15913</MinTileCol>
            <MaxTileCol>16054</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20633</MinTileRow>
            <MaxTileRow>20910</MaxTileRow>
            <MinTileCol>31826</MinTileCol>
            <MaxTileCol>32108</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41267</MinTileRow>
            <MaxTileRow>41821</MaxTileRow>
            <MinTileCol>63652</MinTileCol>
            <MaxTileCol>64217</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>82534</MinTileRow>
            <MaxTileRow>83643</MaxTileRow>
            <MinTileCol>127305</MinTileCol>
            <MaxTileCol>128435</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>165068</MinTileRow>
            <MaxTileRow>167286</MaxTileRow>
            <MinTileCol>254610</MinTileCol>
            <MaxTileCol>256870</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>330136</MinTileRow>
            <MaxTileRow>334573</MaxTileRow>
            <MinTileCol>509220</MinTileCol>
            <MaxTileCol>513740</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>660273</MinTileRow>
            <MaxTileRow>669147</MaxTileRow>
            <MinTileCol>1018441</MinTileCol>
            <MaxTileCol>1027480</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1320546</MinTileRow>
            <MaxTileRow>1338294</MaxTileRow>
            <MinTileCol>2036883</MinTileCol>
            <MaxTileCol>2054961</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2641093</MinTileRow>
            <MaxTileRow>2676589</MaxTileRow>
            <MinTileCol>4073767</MinTileCol>
            <MaxTileCol>4109922</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5282186</MinTileRow>
            <MaxTileRow>5353178</MaxTileRow>
            <MinTileCol>8147535</MinTileCol>
            <MaxTileCol>8219845</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10564373</MinTileRow>
            <MaxTileRow>10706356</MaxTileRow>
            <MinTileCol>16295071</MinTileCol>
            <MaxTileCol>16439691</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21128746</MinTileRow>
            <MaxTileRow>21412712</MaxTileRow>
            <MinTileCol>32590143</MinTileCol>
            <MaxTileCol>32879382</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42257492</MinTileRow>
            <MaxTileRow>42825424</MaxTileRow>
            <MinTileCol>65180287</MinTileCol>
            <MaxTileCol>65758764</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>84514984</MinTileRow>
            <MaxTileRow>85650848</MaxTileRow>
            <MinTileCol>130360575</MinTileCol>
            <MaxTileCol>131517528</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>169029969</MinTileRow>
            <MaxTileRow>171301697</MaxTileRow>
            <MinTileCol>260721150</MinTileCol>
            <MaxTileCol>263035057</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>338059938</MinTileRow>
            <MaxTileRow>342603394</MaxTileRow>
            <MinTileCol>521442300</MinTileCol>
            <MaxTileCol>526070114</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>676119876</MinTileRow>
            <MaxTileRow>685206788</MaxTileRow>
            <MinTileCol>1042884600</MinTileCol>
            <MaxTileCol>1052140229</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_f/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_f/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_f/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_f/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_f/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_f/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_f/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_f/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_f/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_f/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:geol_units_f/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>gps_site_latlon_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>165.87 -47.65</ows:LowerCorner>
        <ows:UpperCorner>179.27035266585978 -33.89</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:gps_site_latlon_view</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:gps_site</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3Agps_site_latlon_view" 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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>391</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>783</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1409</MinTileRow>
            <MaxTileRow>1566</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2819</MinTileRow>
            <MaxTileRow>3132</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5638</MinTileRow>
            <MaxTileRow>6264</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11276</MinTileRow>
            <MaxTileRow>12529</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22553</MinTileRow>
            <MaxTileRow>25058</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45106</MinTileRow>
            <MaxTileRow>50116</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90213</MinTileRow>
            <MaxTileRow>100233</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180427</MinTileRow>
            <MaxTileRow>200467</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360855</MinTileRow>
            <MaxTileRow>400934</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721711</MinTileRow>
            <MaxTileRow>801869</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1443423</MinTileRow>
            <MaxTileRow>1603738</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</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>122</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>245</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>491</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>666</MaxTileRow>
            <MinTileCol>983</MinTileCol>
            <MaxTileCol>1021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1229</MinTileRow>
            <MaxTileRow>1333</MaxTileRow>
            <MinTileCol>1967</MinTileCol>
            <MaxTileCol>2043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2458</MinTileRow>
            <MaxTileRow>2666</MaxTileRow>
            <MinTileCol>3935</MinTileCol>
            <MaxTileCol>4087</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4916</MinTileRow>
            <MaxTileRow>5332</MaxTileRow>
            <MinTileCol>7870</MinTileCol>
            <MaxTileCol>8175</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9833</MinTileRow>
            <MaxTileRow>10664</MaxTileRow>
            <MinTileCol>15740</MinTileCol>
            <MaxTileCol>16350</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19666</MinTileRow>
            <MaxTileRow>21329</MaxTileRow>
            <MinTileCol>31481</MinTileCol>
            <MaxTileCol>32701</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39332</MinTileRow>
            <MaxTileRow>42659</MaxTileRow>
            <MinTileCol>62963</MinTileCol>
            <MaxTileCol>65403</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78664</MinTileRow>
            <MaxTileRow>85319</MaxTileRow>
            <MinTileCol>125927</MinTileCol>
            <MaxTileCol>130806</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157329</MinTileRow>
            <MaxTileRow>170639</MaxTileRow>
            <MinTileCol>251854</MinTileCol>
            <MaxTileCol>261612</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314658</MinTileRow>
            <MaxTileRow>341278</MaxTileRow>
            <MinTileCol>503709</MinTileCol>
            <MaxTileCol>523225</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>629316</MinTileRow>
            <MaxTileRow>682557</MaxTileRow>
            <MinTileCol>1007419</MinTileCol>
            <MaxTileCol>1046450</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1258633</MinTileRow>
            <MaxTileRow>1365114</MaxTileRow>
            <MinTileCol>2014838</MinTileCol>
            <MaxTileCol>2092901</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2517266</MinTileRow>
            <MaxTileRow>2730229</MaxTileRow>
            <MinTileCol>4029677</MinTileCol>
            <MaxTileCol>4185802</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5034533</MinTileRow>
            <MaxTileRow>5460459</MaxTileRow>
            <MinTileCol>8059355</MinTileCol>
            <MaxTileCol>8371605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10069067</MinTileRow>
            <MaxTileRow>10920919</MaxTileRow>
            <MinTileCol>16118710</MinTileCol>
            <MaxTileCol>16743211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20138134</MinTileRow>
            <MaxTileRow>21841838</MaxTileRow>
            <MinTileCol>32237420</MinTileCol>
            <MaxTileCol>33486423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40276269</MinTileRow>
            <MaxTileRow>43683677</MaxTileRow>
            <MinTileCol>64474841</MinTileCol>
            <MaxTileCol>66972847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80552538</MinTileRow>
            <MaxTileRow>87367354</MaxTileRow>
            <MinTileCol>128949682</MinTileCol>
            <MaxTileCol>133945695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161105077</MinTileRow>
            <MaxTileRow>174734709</MaxTileRow>
            <MinTileCol>257899364</MinTileCol>
            <MaxTileCol>267891391</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322210155</MinTileRow>
            <MaxTileRow>349469419</MaxTileRow>
            <MinTileCol>515798728</MinTileCol>
            <MaxTileCol>535782783</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644420311</MinTileRow>
            <MaxTileRow>698938838</MaxTileRow>
            <MinTileCol>1031597457</MinTileCol>
            <MaxTileCol>1071565566</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gps_site_latlon_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gps_site_latlon_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gps_site_latlon_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gps_site_latlon_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gps_site_latlon_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gps_site_latlon_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gps_site_latlon_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gps_site_latlon_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gps_site_latlon_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gps_site_latlon_view/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:gps_site_latlon_view/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>GIS.DISTRICT_COUNCIL</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.1912749823845 -47.490523003807</ows:LowerCorner>
        <ows:UpperCorner>179.55872972026313 -34.19492522214899</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:GIS.DISTRICT_COUNCIL</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AGIS.DISTRICT_COUNCIL" 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>391</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>706</MinTileRow>
            <MaxTileRow>782</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1413</MinTileRow>
            <MaxTileRow>1564</MaxTileRow>
            <MinTileCol>3938</MinTileCol>
            <MaxTileCol>4090</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2826</MinTileRow>
            <MaxTileRow>3128</MaxTileRow>
            <MinTileCol>7877</MinTileCol>
            <MaxTileCol>8181</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5652</MinTileRow>
            <MaxTileRow>6257</MaxTileRow>
            <MinTileCol>15755</MinTileCol>
            <MaxTileCol>16363</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11304</MinTileRow>
            <MaxTileRow>12514</MaxTileRow>
            <MinTileCol>31511</MinTileCol>
            <MaxTileCol>32727</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22608</MinTileRow>
            <MaxTileRow>25029</MaxTileRow>
            <MinTileCol>63022</MinTileCol>
            <MaxTileCol>65455</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45217</MinTileRow>
            <MaxTileRow>50058</MaxTileRow>
            <MinTileCol>126044</MinTileCol>
            <MaxTileCol>130911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90435</MinTileRow>
            <MaxTileRow>100117</MaxTileRow>
            <MinTileCol>252088</MinTileCol>
            <MaxTileCol>261822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180871</MinTileRow>
            <MaxTileRow>200235</MaxTileRow>
            <MinTileCol>504177</MinTileCol>
            <MaxTileCol>523645</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361743</MinTileRow>
            <MaxTileRow>400470</MaxTileRow>
            <MinTileCol>1008355</MinTileCol>
            <MaxTileCol>1047290</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>723487</MinTileRow>
            <MaxTileRow>800940</MaxTileRow>
            <MinTileCol>2016710</MinTileCol>
            <MaxTileCol>2094581</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1446975</MinTileRow>
            <MaxTileRow>1601880</MaxTileRow>
            <MinTileCol>4033420</MinTileCol>
            <MaxTileCol>4189162</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>2045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2462</MinTileRow>
            <MaxTileRow>2663</MaxTileRow>
            <MinTileCol>3938</MinTileCol>
            <MaxTileCol>4090</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4924</MinTileRow>
            <MaxTileRow>5327</MaxTileRow>
            <MinTileCol>7877</MinTileCol>
            <MaxTileCol>8181</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9849</MinTileRow>
            <MaxTileRow>10654</MaxTileRow>
            <MinTileCol>15755</MinTileCol>
            <MaxTileCol>16363</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19699</MinTileRow>
            <MaxTileRow>21308</MaxTileRow>
            <MinTileCol>31511</MinTileCol>
            <MaxTileCol>32727</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39399</MinTileRow>
            <MaxTileRow>42616</MaxTileRow>
            <MinTileCol>63022</MinTileCol>
            <MaxTileCol>65455</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78798</MinTileRow>
            <MaxTileRow>85233</MaxTileRow>
            <MinTileCol>126044</MinTileCol>
            <MaxTileCol>130911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157597</MinTileRow>
            <MaxTileRow>170467</MaxTileRow>
            <MinTileCol>252088</MinTileCol>
            <MaxTileCol>261822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315194</MinTileRow>
            <MaxTileRow>340934</MaxTileRow>
            <MinTileCol>504177</MinTileCol>
            <MaxTileCol>523645</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630388</MinTileRow>
            <MaxTileRow>681868</MaxTileRow>
            <MinTileCol>1008355</MinTileCol>
            <MaxTileCol>1047290</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1260777</MinTileRow>
            <MaxTileRow>1363737</MaxTileRow>
            <MinTileCol>2016710</MinTileCol>
            <MaxTileCol>2094581</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2521554</MinTileRow>
            <MaxTileRow>2727475</MaxTileRow>
            <MinTileCol>4033420</MinTileCol>
            <MaxTileCol>4189162</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5043108</MinTileRow>
            <MaxTileRow>5454951</MaxTileRow>
            <MinTileCol>8066841</MinTileCol>
            <MaxTileCol>8378325</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10086217</MinTileRow>
            <MaxTileRow>10909903</MaxTileRow>
            <MinTileCol>16133682</MinTileCol>
            <MaxTileCol>16756651</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20172434</MinTileRow>
            <MaxTileRow>21819807</MaxTileRow>
            <MinTileCol>32267365</MinTileCol>
            <MaxTileCol>33513302</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40344868</MinTileRow>
            <MaxTileRow>43639614</MaxTileRow>
            <MinTileCol>64534731</MinTileCol>
            <MaxTileCol>67026605</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80689736</MinTileRow>
            <MaxTileRow>87279228</MaxTileRow>
            <MinTileCol>129069462</MinTileCol>
            <MaxTileCol>134053210</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161379472</MinTileRow>
            <MaxTileRow>174558457</MaxTileRow>
            <MinTileCol>258138924</MinTileCol>
            <MaxTileCol>268106421</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322758944</MinTileRow>
            <MaxTileRow>349116914</MaxTileRow>
            <MinTileCol>516277848</MinTileCol>
            <MaxTileCol>536212842</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645517888</MinTileRow>
            <MaxTileRow>698233829</MaxTileRow>
            <MinTileCol>1032555697</MinTileCol>
            <MaxTileCol>1072425684</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.DISTRICT_COUNCIL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.DISTRICT_COUNCIL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.DISTRICT_COUNCIL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.DISTRICT_COUNCIL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.DISTRICT_COUNCIL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.DISTRICT_COUNCIL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.DISTRICT_COUNCIL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.DISTRICT_COUNCIL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.DISTRICT_COUNCIL/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.DISTRICT_COUNCIL/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:GIS.DISTRICT_COUNCIL/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>Hydrology_Lake_Polygons_50K</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.24139707149737 -47.470015041356724</ows:LowerCorner>
        <ows:UpperCorner>179.5177631073767 -34.23429891522792</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:Hydrology_Lake_Polygons_50K</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:Lake_Poly</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AHydrology_Lake_Polygons_50K" 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>391</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>706</MinTileRow>
            <MaxTileRow>782</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1413</MinTileRow>
            <MaxTileRow>1564</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4090</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2827</MinTileRow>
            <MaxTileRow>3128</MaxTileRow>
            <MinTileCol>7878</MinTileCol>
            <MaxTileCol>8181</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5654</MinTileRow>
            <MaxTileRow>6256</MaxTileRow>
            <MinTileCol>15757</MinTileCol>
            <MaxTileCol>16362</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11308</MinTileRow>
            <MaxTileRow>12512</MaxTileRow>
            <MinTileCol>31515</MinTileCol>
            <MaxTileCol>32724</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22616</MinTileRow>
            <MaxTileRow>25025</MaxTileRow>
            <MinTileCol>63031</MinTileCol>
            <MaxTileCol>65448</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45232</MinTileRow>
            <MaxTileRow>50051</MaxTileRow>
            <MinTileCol>126062</MinTileCol>
            <MaxTileCol>130896</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90464</MinTileRow>
            <MaxTileRow>100102</MaxTileRow>
            <MinTileCol>252125</MinTileCol>
            <MaxTileCol>261792</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180929</MinTileRow>
            <MaxTileRow>200205</MaxTileRow>
            <MinTileCol>504250</MinTileCol>
            <MaxTileCol>523585</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361858</MinTileRow>
            <MaxTileRow>400410</MaxTileRow>
            <MinTileCol>1008501</MinTileCol>
            <MaxTileCol>1047171</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>723717</MinTileRow>
            <MaxTileRow>800820</MaxTileRow>
            <MinTileCol>2017002</MinTileCol>
            <MaxTileCol>2094342</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1447434</MinTileRow>
            <MaxTileRow>1601641</MaxTileRow>
            <MinTileCol>4034004</MinTileCol>
            <MaxTileCol>4188685</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>2045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2462</MinTileRow>
            <MaxTileRow>2663</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4090</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4925</MinTileRow>
            <MaxTileRow>5326</MaxTileRow>
            <MinTileCol>7878</MinTileCol>
            <MaxTileCol>8181</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9851</MinTileRow>
            <MaxTileRow>10652</MaxTileRow>
            <MinTileCol>15757</MinTileCol>
            <MaxTileCol>16362</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19703</MinTileRow>
            <MaxTileRow>21305</MaxTileRow>
            <MinTileCol>31515</MinTileCol>
            <MaxTileCol>32724</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39407</MinTileRow>
            <MaxTileRow>42611</MaxTileRow>
            <MinTileCol>63031</MinTileCol>
            <MaxTileCol>65448</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78815</MinTileRow>
            <MaxTileRow>85222</MaxTileRow>
            <MinTileCol>126062</MinTileCol>
            <MaxTileCol>130896</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157631</MinTileRow>
            <MaxTileRow>170445</MaxTileRow>
            <MinTileCol>252125</MinTileCol>
            <MaxTileCol>261792</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315263</MinTileRow>
            <MaxTileRow>340890</MaxTileRow>
            <MinTileCol>504250</MinTileCol>
            <MaxTileCol>523585</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630527</MinTileRow>
            <MaxTileRow>681780</MaxTileRow>
            <MinTileCol>1008501</MinTileCol>
            <MaxTileCol>1047171</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1261054</MinTileRow>
            <MaxTileRow>1363561</MaxTileRow>
            <MinTileCol>2017002</MinTileCol>
            <MaxTileCol>2094342</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2522108</MinTileRow>
            <MaxTileRow>2727122</MaxTileRow>
            <MinTileCol>4034004</MinTileCol>
            <MaxTileCol>4188685</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5044217</MinTileRow>
            <MaxTileRow>5454244</MaxTileRow>
            <MinTileCol>8068009</MinTileCol>
            <MaxTileCol>8377371</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10088435</MinTileRow>
            <MaxTileRow>10908489</MaxTileRow>
            <MinTileCol>16136018</MinTileCol>
            <MaxTileCol>16754742</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20176871</MinTileRow>
            <MaxTileRow>21816978</MaxTileRow>
            <MinTileCol>32272037</MinTileCol>
            <MaxTileCol>33509484</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40353743</MinTileRow>
            <MaxTileRow>43633957</MaxTileRow>
            <MinTileCol>64544074</MinTileCol>
            <MaxTileCol>67018968</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80707487</MinTileRow>
            <MaxTileRow>87267915</MaxTileRow>
            <MinTileCol>129088149</MinTileCol>
            <MaxTileCol>134037937</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161414975</MinTileRow>
            <MaxTileRow>174535831</MaxTileRow>
            <MinTileCol>258176298</MinTileCol>
            <MaxTileCol>268075874</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322829950</MinTileRow>
            <MaxTileRow>349071662</MaxTileRow>
            <MinTileCol>516352596</MinTileCol>
            <MaxTileCol>536151748</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645659901</MinTileRow>
            <MaxTileRow>698143324</MaxTileRow>
            <MinTileCol>1032705192</MinTileCol>
            <MaxTileCol>1072303496</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_50K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_50K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_50K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_50K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_50K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_50K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_50K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_50K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_50K/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_50K/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:Hydrology_Lake_Polygons_50K/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>MINERAL.COALFIELDS</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>167.6282767018023 -46.685212096088975</ows:LowerCorner>
        <ows:UpperCorner>175.796796557545 -35.25704441892598</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:MINERAL.COALFIELDS</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:coalfield</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=gns%3AMINERAL.COALFIELDS" 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>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>988</MinTileCol>
            <MaxTileCol>1012</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>712</MinTileRow>
            <MaxTileRow>777</MaxTileRow>
            <MinTileCol>1977</MinTileCol>
            <MaxTileCol>2024</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1425</MinTileRow>
            <MaxTileRow>1555</MaxTileRow>
            <MinTileCol>3955</MinTileCol>
            <MaxTileCol>4048</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2850</MinTileRow>
            <MaxTileRow>3110</MaxTileRow>
            <MinTileCol>7910</MinTileCol>
            <MaxTileCol>8096</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5700</MinTileRow>
            <MaxTileRow>6220</MaxTileRow>
            <MinTileCol>15820</MinTileCol>
            <MaxTileCol>16192</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11401</MinTileRow>
            <MaxTileRow>12441</MaxTileRow>
            <MinTileCol>31641</MinTileCol>
            <MaxTileCol>32385</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22802</MinTileRow>
            <MaxTileRow>24882</MaxTileRow>
            <MinTileCol>63283</MinTileCol>
            <MaxTileCol>64770</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45604</MinTileRow>
            <MaxTileRow>49765</MaxTileRow>
            <MinTileCol>126567</MinTileCol>
            <MaxTileCol>129541</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91209</MinTileRow>
            <MaxTileRow>99531</MaxTileRow>
            <MinTileCol>253135</MinTileCol>
            <MaxTileCol>259083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182418</MinTileRow>
            <MaxTileRow>199062</MaxTileRow>
            <MinTileCol>506270</MinTileCol>
            <MaxTileCol>518166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>364837</MinTileRow>
            <MaxTileRow>398124</MaxTileRow>
            <MinTileCol>1012540</MinTileCol>
            <MaxTileCol>1036333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>729675</MinTileRow>
            <MaxTileRow>796249</MaxTileRow>
            <MinTileCol>2025081</MinTileCol>
            <MaxTileCol>2072666</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1459350</MinTileRow>
            <MaxTileRow>1592498</MaxTileRow>
            <MinTileCol>4050162</MinTileCol>
            <MaxTileCol>4145333</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>77</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>988</MinTileCol>
            <MaxTileCol>1012</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1238</MinTileRow>
            <MaxTileRow>1325</MaxTileRow>
            <MinTileCol>1977</MinTileCol>
            <MaxTileCol>2024</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2477</MinTileRow>
            <MaxTileRow>2650</MaxTileRow>
            <MinTileCol>3955</MinTileCol>
            <MaxTileCol>4048</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4954</MinTileRow>
            <MaxTileRow>5300</MaxTileRow>
            <MinTileCol>7910</MinTileCol>
            <MaxTileCol>8096</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9908</MinTileRow>
            <MaxTileRow>10600</MaxTileRow>
            <MinTileCol>15820</MinTileCol>
            <MaxTileCol>16192</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19817</MinTileRow>
            <MaxTileRow>21200</MaxTileRow>
            <MinTileCol>31641</MinTileCol>
            <MaxTileCol>32385</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39634</MinTileRow>
            <MaxTileRow>42401</MaxTileRow>
            <MinTileCol>63283</MinTileCol>
            <MaxTileCol>64770</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79269</MinTileRow>
            <MaxTileRow>84802</MaxTileRow>
            <MinTileCol>126567</MinTileCol>
            <MaxTileCol>129541</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158538</MinTileRow>
            <MaxTileRow>169605</MaxTileRow>
            <MinTileCol>253135</MinTileCol>
            <MaxTileCol>259083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317076</MinTileRow>
            <MaxTileRow>339211</MaxTileRow>
            <MinTileCol>506270</MinTileCol>
            <MaxTileCol>518166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634152</MinTileRow>
            <MaxTileRow>678423</MaxTileRow>
            <MinTileCol>1012540</MinTileCol>
            <MaxTileCol>1036333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1268305</MinTileRow>
            <MaxTileRow>1356847</MaxTileRow>
            <MinTileCol>2025081</MinTileCol>
            <MaxTileCol>2072666</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2536611</MinTileRow>
            <MaxTileRow>2713695</MaxTileRow>
            <MinTileCol>4050162</MinTileCol>
            <MaxTileCol>4145333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5073222</MinTileRow>
            <MaxTileRow>5427390</MaxTileRow>
            <MinTileCol>8100325</MinTileCol>
            <MaxTileCol>8290666</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10146444</MinTileRow>
            <MaxTileRow>10854781</MaxTileRow>
            <MinTileCol>16200651</MinTileCol>
            <MaxTileCol>16581332</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20292888</MinTileRow>
            <MaxTileRow>21709563</MaxTileRow>
            <MinTileCol>32401303</MinTileCol>
            <MaxTileCol>33162665</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40585776</MinTileRow>
            <MaxTileRow>43419126</MaxTileRow>
            <MinTileCol>64802607</MinTileCol>
            <MaxTileCol>66325330</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81171552</MinTileRow>
            <MaxTileRow>86838252</MaxTileRow>
            <MinTileCol>129605215</MinTileCol>
            <MaxTileCol>132650660</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162343104</MinTileRow>
            <MaxTileRow>173676505</MaxTileRow>
            <MinTileCol>259210430</MinTileCol>
            <MaxTileCol>265301320</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>324686208</MinTileRow>
            <MaxTileRow>347353011</MaxTileRow>
            <MinTileCol>518420861</MinTileCol>
            <MaxTileCol>530602640</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>649372417</MinTileRow>
            <MaxTileRow>694706023</MaxTileRow>
            <MinTileCol>1036841722</MinTileCol>
            <MaxTileCol>1061205281</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COALFIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COALFIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COALFIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COALFIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COALFIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COALFIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COALFIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COALFIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COALFIELDS/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COALFIELDS/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:MINERAL.COALFIELDS/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>survey_area</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.21978335296822 -38.18463390512534</ows:LowerCorner>
        <ows:UpperCorner>176.3409347940757 -38.066736528213724</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>atir-nz:survey_area</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>atir-nz:survey-area</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=22&amp;height=40&amp;layer=atir-nz%3Asurvey_area" width="22" height="40"/>
      </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>22</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>45</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>91</MinTileRow>
            <MaxTileRow>91</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>182</MinTileRow>
            <MaxTileRow>182</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>364</MinTileRow>
            <MaxTileRow>364</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>728</MinTileRow>
            <MaxTileRow>729</MaxTileRow>
            <MinTileCol>2026</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1457</MinTileRow>
            <MaxTileRow>1458</MaxTileRow>
            <MinTileCol>4052</MinTileCol>
            <MaxTileCol>4054</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2914</MinTileRow>
            <MaxTileRow>2916</MaxTileRow>
            <MinTileCol>8105</MinTileCol>
            <MaxTileCol>8108</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5828</MinTileRow>
            <MaxTileRow>5833</MaxTileRow>
            <MinTileCol>16211</MinTileCol>
            <MaxTileCol>16217</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11656</MinTileRow>
            <MaxTileRow>11667</MaxTileRow>
            <MinTileCol>32423</MinTileCol>
            <MaxTileCol>32434</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23313</MinTileRow>
            <MaxTileRow>23335</MaxTileRow>
            <MinTileCol>64847</MinTileCol>
            <MaxTileCol>64869</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>46627</MinTileRow>
            <MaxTileRow>46670</MaxTileRow>
            <MinTileCol>129695</MinTileCol>
            <MaxTileCol>129739</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>93255</MinTileRow>
            <MaxTileRow>93341</MaxTileRow>
            <MinTileCol>259391</MinTileCol>
            <MaxTileCol>259479</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>186510</MinTileRow>
            <MaxTileRow>186682</MaxTileRow>
            <MinTileCol>518782</MinTileCol>
            <MaxTileCol>518959</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>373021</MinTileRow>
            <MaxTileRow>373364</MaxTileRow>
            <MinTileCol>1037565</MinTileCol>
            <MaxTileCol>1037918</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>746042</MinTileRow>
            <MaxTileRow>746729</MaxTileRow>
            <MinTileCol>2075130</MinTileCol>
            <MaxTileCol>2075836</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1492085</MinTileRow>
            <MaxTileRow>1493459</MaxTileRow>
            <MinTileCol>4150261</MinTileCol>
            <MaxTileCol>4151672</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>78</MinTileRow>
            <MaxTileRow>78</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>157</MinTileRow>
            <MaxTileRow>157</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>314</MinTileRow>
            <MaxTileRow>314</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>506</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>629</MinTileRow>
            <MaxTileRow>629</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1258</MinTileRow>
            <MaxTileRow>1259</MaxTileRow>
            <MinTileCol>2026</MinTileCol>
            <MaxTileCol>2027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2517</MinTileRow>
            <MaxTileRow>2518</MaxTileRow>
            <MinTileCol>4052</MinTileCol>
            <MaxTileCol>4054</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5034</MinTileRow>
            <MaxTileRow>5037</MaxTileRow>
            <MinTileCol>8105</MinTileCol>
            <MaxTileCol>8108</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10068</MinTileRow>
            <MaxTileRow>10074</MaxTileRow>
            <MinTileCol>16211</MinTileCol>
            <MaxTileCol>16217</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20136</MinTileRow>
            <MaxTileRow>20149</MaxTileRow>
            <MinTileCol>32423</MinTileCol>
            <MaxTileCol>32434</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40272</MinTileRow>
            <MaxTileRow>40299</MaxTileRow>
            <MinTileCol>64847</MinTileCol>
            <MaxTileCol>64869</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>80544</MinTileRow>
            <MaxTileRow>80599</MaxTileRow>
            <MinTileCol>129695</MinTileCol>
            <MaxTileCol>129739</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>161089</MinTileRow>
            <MaxTileRow>161198</MaxTileRow>
            <MinTileCol>259391</MinTileCol>
            <MaxTileCol>259479</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>322178</MinTileRow>
            <MaxTileRow>322396</MaxTileRow>
            <MinTileCol>518782</MinTileCol>
            <MaxTileCol>518959</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>644356</MinTileRow>
            <MaxTileRow>644793</MaxTileRow>
            <MinTileCol>1037565</MinTileCol>
            <MaxTileCol>1037918</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1288713</MinTileRow>
            <MaxTileRow>1289587</MaxTileRow>
            <MinTileCol>2075130</MinTileCol>
            <MaxTileCol>2075836</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2577427</MinTileRow>
            <MaxTileRow>2579174</MaxTileRow>
            <MinTileCol>4150261</MinTileCol>
            <MaxTileCol>4151672</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5154855</MinTileRow>
            <MaxTileRow>5158348</MaxTileRow>
            <MinTileCol>8300522</MinTileCol>
            <MaxTileCol>8303345</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10309711</MinTileRow>
            <MaxTileRow>10316696</MaxTileRow>
            <MinTileCol>16601045</MinTileCol>
            <MaxTileCol>16606691</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20619423</MinTileRow>
            <MaxTileRow>20633392</MaxTileRow>
            <MinTileCol>33202090</MinTileCol>
            <MaxTileCol>33213382</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41238846</MinTileRow>
            <MaxTileRow>41266784</MaxTileRow>
            <MinTileCol>66404180</MinTileCol>
            <MaxTileCol>66426764</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>82477692</MinTileRow>
            <MaxTileRow>82533568</MaxTileRow>
            <MinTileCol>132808361</MinTileCol>
            <MaxTileCol>132853529</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>164955385</MinTileRow>
            <MaxTileRow>165067137</MaxTileRow>
            <MinTileCol>265616722</MinTileCol>
            <MaxTileCol>265707059</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>329910770</MinTileRow>
            <MaxTileRow>330134274</MaxTileRow>
            <MinTileCol>531233444</MinTileCol>
            <MaxTileCol>531414118</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>659821540</MinTileRow>
            <MaxTileRow>660268548</MaxTileRow>
            <MinTileCol>1062466888</MinTileCol>
            <MaxTileCol>1062828236</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:survey_area/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:survey_area/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:survey_area/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:survey_area/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:survey_area/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:survey_area/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:survey_area/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:survey_area/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:survey_area/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:survey_area/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/atir-nz:survey_area/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZ Geology</ows:Title>
      <ows:Abstract>&lt;DIV STYLE=&quot;text-align:Left;&quot;&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Shaded version of NIWA&apos;s bathymetry model of New Zealand at 250m resolution. The model is a c&lt;/SPAN&gt;&lt;SPAN&gt;ompilation of data digitised from published coastal charts, digital soundings archive, navy collector sheets and digital multibeam data&lt;/SPAN&gt;&lt;SPAN&gt;sourced from surveys by NIWA, LINZ, as well as international surveys by vessels from United States of America, France, Germany, Australia, and Japan&lt;/SPAN&gt;&lt;SPAN&gt;. &lt;/SPAN&gt;&lt;SPAN&gt;All data used is held at NIWA.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN /&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</ows:Abstract>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-179.9999999749438 -59.788361</ows:LowerCorner>
        <ows:UpperCorner>180.0 -21.851993999999998</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZ Geology</ows:Identifier>
      <Style>
        <ows:Identifier>default</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/https://gis.gns.cri.nz/server/services/GeolWebMap/GeolWebMap/MapServer/WMSServer?request=GetLegendGraphic%26version=1.3.0%26format=image/png%26layer=2" width="20" height="20"/>
      </Style>
      <Style isDefault="true">
        <ows:Identifier>_empty</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=2&amp;height=1&amp;layer=gns%3ANZ%20Geology" width="2" height="1"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <TileMatrixSetLink>
        <TileMatrixSet>WebMercatorQuad</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>4</TileMatrix>
            <MinTileRow>8</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>5</TileMatrix>
            <MinTileRow>17</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>6</TileMatrix>
            <MinTileRow>35</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>7</TileMatrix>
            <MinTileRow>71</MinTileRow>
            <MaxTileRow>90</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>8</TileMatrix>
            <MinTileRow>143</MinTileRow>
            <MaxTileRow>181</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>9</TileMatrix>
            <MinTileRow>287</MinTileRow>
            <MaxTileRow>362</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>10</TileMatrix>
            <MinTileRow>575</MinTileRow>
            <MaxTileRow>725</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>11</TileMatrix>
            <MinTileRow>1151</MinTileRow>
            <MaxTileRow>1450</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>12</TileMatrix>
            <MinTileRow>2302</MinTileRow>
            <MaxTileRow>2901</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>13</TileMatrix>
            <MinTileRow>4605</MinTileRow>
            <MaxTileRow>5803</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>14</TileMatrix>
            <MinTileRow>9211</MinTileRow>
            <MaxTileRow>11606</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>15</TileMatrix>
            <MinTileRow>18423</MinTileRow>
            <MaxTileRow>23213</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>16</TileMatrix>
            <MinTileRow>36846</MinTileRow>
            <MaxTileRow>46427</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>17</TileMatrix>
            <MinTileRow>73692</MinTileRow>
            <MaxTileRow>92855</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>18</TileMatrix>
            <MinTileRow>147384</MinTileRow>
            <MaxTileRow>185710</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>19</TileMatrix>
            <MinTileRow>294769</MinTileRow>
            <MaxTileRow>371420</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>20</TileMatrix>
            <MinTileRow>589538</MinTileRow>
            <MaxTileRow>742840</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>21</TileMatrix>
            <MinTileRow>1179076</MinTileRow>
            <MaxTileRow>1485681</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>22</TileMatrix>
            <MinTileRow>2358152</MinTileRow>
            <MaxTileRow>2971363</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4194303</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>23</TileMatrix>
            <MinTileRow>4716305</MinTileRow>
            <MaxTileRow>5942727</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8388607</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>24</TileMatrix>
            <MinTileRow>9432610</MinTileRow>
            <MaxTileRow>11885455</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16777215</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>NZTM</TileMatrixSet>
      </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>8</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>17</MinTileRow>
            <MaxTileRow>22</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>35</MinTileRow>
            <MaxTileRow>45</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>71</MinTileRow>
            <MaxTileRow>90</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>143</MinTileRow>
            <MaxTileRow>181</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>287</MinTileRow>
            <MaxTileRow>362</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>575</MinTileRow>
            <MaxTileRow>725</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1151</MinTileRow>
            <MaxTileRow>1450</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2302</MinTileRow>
            <MaxTileRow>2901</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4605</MinTileRow>
            <MaxTileRow>5803</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9211</MinTileRow>
            <MaxTileRow>11606</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>18423</MinTileRow>
            <MaxTileRow>23213</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>36846</MinTileRow>
            <MaxTileRow>46427</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>73692</MinTileRow>
            <MaxTileRow>92855</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>147384</MinTileRow>
            <MaxTileRow>185710</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>294769</MinTileRow>
            <MaxTileRow>371420</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>589538</MinTileRow>
            <MaxTileRow>742840</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1179076</MinTileRow>
            <MaxTileRow>1485681</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2358152</MinTileRow>
            <MaxTileRow>2971363</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4194303</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>4716305</MinTileRow>
            <MaxTileRow>5942727</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8388607</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>9432610</MinTileRow>
            <MaxTileRow>11885455</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16777215</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>18865221</MinTileRow>
            <MaxTileRow>23770910</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>33554431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>37730442</MinTileRow>
            <MaxTileRow>47541820</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>67108863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>75460885</MinTileRow>
            <MaxTileRow>95083640</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>134217727</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>150921771</MinTileRow>
            <MaxTileRow>190167281</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>268435455</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>301843543</MinTileRow>
            <MaxTileRow>380334563</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>536870911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>603687087</MinTileRow>
            <MaxTileRow>760669126</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1073741823</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZ Geology/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZ Geology/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZ Geology/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZ Geology/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZ Geology/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZ Geology/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZ Geology/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZ Geology/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZ Geology/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZ Geology/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZ Geology/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>ni_head_median</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.51903347061145 -41.730802617749866</ows:LowerCorner>
        <ows:UpperCorner>178.88893784222572 -34.22529965228131</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:ni_head_median</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_ni_head</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=91&amp;height=213&amp;layer=twotw%3Ani_head_median" width="91" height="213"/>
      </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>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>706</MinTileRow>
            <MaxTileRow>749</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1413</MinTileRow>
            <MaxTileRow>1498</MaxTileRow>
            <MinTileCol>4010</MinTileCol>
            <MaxTileCol>4083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2826</MinTileRow>
            <MaxTileRow>2997</MaxTileRow>
            <MinTileCol>8021</MinTileCol>
            <MaxTileCol>8166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5653</MinTileRow>
            <MaxTileRow>5995</MaxTileRow>
            <MinTileCol>16043</MinTileCol>
            <MaxTileCol>16333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11307</MinTileRow>
            <MaxTileRow>11990</MaxTileRow>
            <MinTileCol>32087</MinTileCol>
            <MaxTileCol>32666</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22614</MinTileRow>
            <MaxTileRow>23980</MaxTileRow>
            <MinTileCol>64174</MinTileCol>
            <MaxTileCol>65333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45229</MinTileRow>
            <MaxTileRow>47961</MaxTileRow>
            <MinTileCol>128348</MinTileCol>
            <MaxTileCol>130667</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90458</MinTileRow>
            <MaxTileRow>95923</MaxTileRow>
            <MinTileCol>256696</MinTileCol>
            <MaxTileCol>261334</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180916</MinTileRow>
            <MaxTileRow>191846</MaxTileRow>
            <MinTileCol>513393</MinTileCol>
            <MaxTileCol>522669</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361832</MinTileRow>
            <MaxTileRow>383693</MaxTileRow>
            <MinTileCol>1026786</MinTileCol>
            <MaxTileCol>1045339</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>723664</MinTileRow>
            <MaxTileRow>767387</MaxTileRow>
            <MinTileCol>2053572</MinTileCol>
            <MaxTileCol>2090679</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1447329</MinTileRow>
            <MaxTileRow>1534775</MaxTileRow>
            <MinTileCol>4107144</MinTileCol>
            <MaxTileCol>4181359</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1231</MinTileRow>
            <MaxTileRow>1285</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2462</MinTileRow>
            <MaxTileRow>2571</MaxTileRow>
            <MinTileCol>4010</MinTileCol>
            <MaxTileCol>4083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4925</MinTileRow>
            <MaxTileRow>5142</MaxTileRow>
            <MinTileCol>8021</MinTileCol>
            <MaxTileCol>8166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9851</MinTileRow>
            <MaxTileRow>10285</MaxTileRow>
            <MinTileCol>16043</MinTileCol>
            <MaxTileCol>16333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19702</MinTileRow>
            <MaxTileRow>20571</MaxTileRow>
            <MinTileCol>32087</MinTileCol>
            <MaxTileCol>32666</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39405</MinTileRow>
            <MaxTileRow>41142</MaxTileRow>
            <MinTileCol>64174</MinTileCol>
            <MaxTileCol>65333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78811</MinTileRow>
            <MaxTileRow>82284</MaxTileRow>
            <MinTileCol>128348</MinTileCol>
            <MaxTileCol>130667</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157623</MinTileRow>
            <MaxTileRow>164568</MaxTileRow>
            <MinTileCol>256696</MinTileCol>
            <MaxTileCol>261334</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315247</MinTileRow>
            <MaxTileRow>329136</MaxTileRow>
            <MinTileCol>513393</MinTileCol>
            <MaxTileCol>522669</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630495</MinTileRow>
            <MaxTileRow>658273</MaxTileRow>
            <MinTileCol>1026786</MinTileCol>
            <MaxTileCol>1045339</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1260991</MinTileRow>
            <MaxTileRow>1316547</MaxTileRow>
            <MinTileCol>2053572</MinTileCol>
            <MaxTileCol>2090679</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2521982</MinTileRow>
            <MaxTileRow>2633095</MaxTileRow>
            <MinTileCol>4107144</MinTileCol>
            <MaxTileCol>4181359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5043964</MinTileRow>
            <MaxTileRow>5266190</MaxTileRow>
            <MinTileCol>8214288</MinTileCol>
            <MaxTileCol>8362718</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10087928</MinTileRow>
            <MaxTileRow>10532381</MaxTileRow>
            <MinTileCol>16428577</MinTileCol>
            <MaxTileCol>16725436</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20175857</MinTileRow>
            <MaxTileRow>21064763</MaxTileRow>
            <MinTileCol>32857155</MinTileCol>
            <MaxTileCol>33450873</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40351714</MinTileRow>
            <MaxTileRow>42129526</MaxTileRow>
            <MinTileCol>65714310</MinTileCol>
            <MaxTileCol>66901747</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80703429</MinTileRow>
            <MaxTileRow>84259052</MaxTileRow>
            <MinTileCol>131428621</MinTileCol>
            <MaxTileCol>133803494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161406859</MinTileRow>
            <MaxTileRow>168518104</MaxTileRow>
            <MinTileCol>262857243</MinTileCol>
            <MaxTileCol>267606988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322813718</MinTileRow>
            <MaxTileRow>337036208</MaxTileRow>
            <MinTileCol>525714486</MinTileCol>
            <MaxTileCol>535213976</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645627437</MinTileRow>
            <MaxTileRow>674072416</MaxTileRow>
            <MinTileCol>1051428972</MinTileCol>
            <MaxTileCol>1070427952</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_head_median/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_head_median/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:ni_head_median/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>landslide_line_feature_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.487767424107 -47.2790881102334</ows:LowerCorner>
        <ows:UpperCorner>177.820559618927 -34.4209880121066</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:landslide_line_features</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>gns:Landslide_Feature_Type_Line</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=66&amp;height=60&amp;layer=gns%3Alandslide_line_features" width="66" height="60"/>
      </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>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>390</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>1017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>707</MinTileRow>
            <MaxTileRow>780</MaxTileRow>
            <MinTileCol>1971</MinTileCol>
            <MaxTileCol>2035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1415</MinTileRow>
            <MaxTileRow>1561</MaxTileRow>
            <MinTileCol>3942</MinTileCol>
            <MaxTileCol>4071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2831</MinTileRow>
            <MaxTileRow>3123</MaxTileRow>
            <MinTileCol>7884</MinTileCol>
            <MaxTileCol>8142</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5662</MinTileRow>
            <MaxTileRow>6247</MaxTileRow>
            <MinTileCol>15769</MinTileCol>
            <MaxTileCol>16284</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11325</MinTileRow>
            <MaxTileRow>12495</MaxTileRow>
            <MinTileCol>31538</MinTileCol>
            <MaxTileCol>32569</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22650</MinTileRow>
            <MaxTileRow>24990</MaxTileRow>
            <MinTileCol>63076</MinTileCol>
            <MaxTileCol>65139</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45300</MinTileRow>
            <MaxTileRow>49981</MaxTileRow>
            <MinTileCol>126152</MinTileCol>
            <MaxTileCol>130278</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90600</MinTileRow>
            <MaxTileRow>99963</MaxTileRow>
            <MinTileCol>252304</MinTileCol>
            <MaxTileCol>260556</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>181201</MinTileRow>
            <MaxTileRow>199927</MaxTileRow>
            <MinTileCol>504609</MinTileCol>
            <MaxTileCol>521113</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>362402</MinTileRow>
            <MaxTileRow>399854</MaxTileRow>
            <MinTileCol>1009218</MinTileCol>
            <MaxTileCol>1042227</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>724804</MinTileRow>
            <MaxTileRow>799708</MaxTileRow>
            <MinTileCol>2018437</MinTileCol>
            <MaxTileCol>2084455</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1449609</MinTileRow>
            <MaxTileRow>1599417</MaxTileRow>
            <MinTileCol>4036875</MinTileCol>
            <MaxTileCol>4168911</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>77</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>254</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>308</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>508</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>616</MinTileRow>
            <MaxTileRow>664</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>1017</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1232</MinTileRow>
            <MaxTileRow>1329</MaxTileRow>
            <MinTileCol>1971</MinTileCol>
            <MaxTileCol>2035</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2465</MinTileRow>
            <MaxTileRow>2659</MaxTileRow>
            <MinTileCol>3942</MinTileCol>
            <MaxTileCol>4071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4931</MinTileRow>
            <MaxTileRow>5319</MaxTileRow>
            <MinTileCol>7884</MinTileCol>
            <MaxTileCol>8142</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9862</MinTileRow>
            <MaxTileRow>10639</MaxTileRow>
            <MinTileCol>15769</MinTileCol>
            <MaxTileCol>16284</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19724</MinTileRow>
            <MaxTileRow>21279</MaxTileRow>
            <MinTileCol>31538</MinTileCol>
            <MaxTileCol>32569</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39449</MinTileRow>
            <MaxTileRow>42559</MaxTileRow>
            <MinTileCol>63076</MinTileCol>
            <MaxTileCol>65139</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78898</MinTileRow>
            <MaxTileRow>85119</MaxTileRow>
            <MinTileCol>126152</MinTileCol>
            <MaxTileCol>130278</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157796</MinTileRow>
            <MaxTileRow>170239</MaxTileRow>
            <MinTileCol>252304</MinTileCol>
            <MaxTileCol>260556</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315592</MinTileRow>
            <MaxTileRow>340479</MaxTileRow>
            <MinTileCol>504609</MinTileCol>
            <MaxTileCol>521113</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>631185</MinTileRow>
            <MaxTileRow>680959</MaxTileRow>
            <MinTileCol>1009218</MinTileCol>
            <MaxTileCol>1042227</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1262371</MinTileRow>
            <MaxTileRow>1361918</MaxTileRow>
            <MinTileCol>2018437</MinTileCol>
            <MaxTileCol>2084455</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2524742</MinTileRow>
            <MaxTileRow>2723837</MaxTileRow>
            <MinTileCol>4036875</MinTileCol>
            <MaxTileCol>4168911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5049485</MinTileRow>
            <MaxTileRow>5447675</MaxTileRow>
            <MinTileCol>8073750</MinTileCol>
            <MaxTileCol>8337823</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10098971</MinTileRow>
            <MaxTileRow>10895350</MaxTileRow>
            <MinTileCol>16147500</MinTileCol>
            <MaxTileCol>16675646</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20197942</MinTileRow>
            <MaxTileRow>21790700</MaxTileRow>
            <MinTileCol>32295000</MinTileCol>
            <MaxTileCol>33351293</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40395885</MinTileRow>
            <MaxTileRow>43581401</MaxTileRow>
            <MinTileCol>64590001</MinTileCol>
            <MaxTileCol>66702586</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80791770</MinTileRow>
            <MaxTileRow>87162802</MaxTileRow>
            <MinTileCol>129180002</MinTileCol>
            <MaxTileCol>133405173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161583540</MinTileRow>
            <MaxTileRow>174325605</MaxTileRow>
            <MinTileCol>258360005</MinTileCol>
            <MaxTileCol>266810347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>323167081</MinTileRow>
            <MaxTileRow>348651210</MaxTileRow>
            <MinTileCol>516720010</MinTileCol>
            <MaxTileCol>533620694</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>646334162</MinTileRow>
            <MaxTileRow>697302420</MaxTileRow>
            <MinTileCol>1033440020</MinTileCol>
            <MaxTileCol>1067241389</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_line_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_line_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_line_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_line_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_line_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_line_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_line_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_line_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_line_features/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_line_features/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:landslide_line_features/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_median_10_20</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_median_10_20</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_median_10_20" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_10_20/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_10_20/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_median_10_20/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>NZL-Urban_Christchurch_geological_units</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.48944217775013 -43.729782025088596</ows:LowerCorner>
        <ows:UpperCorner>172.78194935036933 -43.2507291843837</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>gns:NZL-Urban_Christchurch_geological_units</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>Urban_Christchurch</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=72&amp;height=1080&amp;layer=gns%3ANZL-Urban_Christchurch_geological_units" width="72" height="1080"/>
      </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>94</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>189</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>379</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>758</MinTileRow>
            <MaxTileRow>760</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2006</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1516</MinTileRow>
            <MaxTileRow>1521</MaxTileRow>
            <MinTileCol>4010</MinTileCol>
            <MaxTileCol>4013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3032</MinTileRow>
            <MaxTileRow>3043</MaxTileRow>
            <MinTileCol>8021</MinTileCol>
            <MaxTileCol>8027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6064</MinTileRow>
            <MaxTileRow>6086</MaxTileRow>
            <MinTileCol>16042</MinTileCol>
            <MaxTileCol>16055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12128</MinTileRow>
            <MaxTileRow>12172</MaxTileRow>
            <MinTileCol>32084</MinTileCol>
            <MaxTileCol>32110</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24257</MinTileRow>
            <MaxTileRow>24344</MaxTileRow>
            <MinTileCol>64168</MinTileCol>
            <MaxTileCol>64221</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48515</MinTileRow>
            <MaxTileRow>48689</MaxTileRow>
            <MinTileCol>128337</MinTileCol>
            <MaxTileCol>128443</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97030</MinTileRow>
            <MaxTileRow>97379</MaxTileRow>
            <MinTileCol>256674</MinTileCol>
            <MaxTileCol>256887</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194060</MinTileRow>
            <MaxTileRow>194758</MaxTileRow>
            <MinTileCol>513349</MinTileCol>
            <MaxTileCol>513775</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>388120</MinTileRow>
            <MaxTileRow>389516</MaxTileRow>
            <MinTileCol>1026699</MinTileCol>
            <MaxTileCol>1027551</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>776241</MinTileRow>
            <MaxTileRow>779032</MaxTileRow>
            <MinTileCol>2053399</MinTileCol>
            <MaxTileCol>2055103</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1552483</MinTileRow>
            <MaxTileRow>1558064</MaxTileRow>
            <MinTileCol>4106799</MinTileCol>
            <MaxTileCol>4110207</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>324</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>648</MinTileRow>
            <MaxTileRow>650</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1297</MinTileRow>
            <MaxTileRow>1301</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2006</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2594</MinTileRow>
            <MaxTileRow>2602</MaxTileRow>
            <MinTileCol>4010</MinTileCol>
            <MaxTileCol>4013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5189</MinTileRow>
            <MaxTileRow>5204</MaxTileRow>
            <MinTileCol>8021</MinTileCol>
            <MaxTileCol>8027</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10379</MinTileRow>
            <MaxTileRow>10409</MaxTileRow>
            <MinTileCol>16042</MinTileCol>
            <MaxTileCol>16055</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20758</MinTileRow>
            <MaxTileRow>20818</MaxTileRow>
            <MinTileCol>32084</MinTileCol>
            <MaxTileCol>32110</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41517</MinTileRow>
            <MaxTileRow>41637</MaxTileRow>
            <MinTileCol>64168</MinTileCol>
            <MaxTileCol>64221</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83034</MinTileRow>
            <MaxTileRow>83275</MaxTileRow>
            <MinTileCol>128337</MinTileCol>
            <MaxTileCol>128443</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166069</MinTileRow>
            <MaxTileRow>166550</MaxTileRow>
            <MinTileCol>256674</MinTileCol>
            <MaxTileCol>256887</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>332139</MinTileRow>
            <MaxTileRow>333100</MaxTileRow>
            <MinTileCol>513349</MinTileCol>
            <MaxTileCol>513775</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>664278</MinTileRow>
            <MaxTileRow>666201</MaxTileRow>
            <MinTileCol>1026699</MinTileCol>
            <MaxTileCol>1027551</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1328556</MinTileRow>
            <MaxTileRow>1332402</MaxTileRow>
            <MinTileCol>2053399</MinTileCol>
            <MaxTileCol>2055103</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2657112</MinTileRow>
            <MaxTileRow>2664805</MaxTileRow>
            <MinTileCol>4106799</MinTileCol>
            <MaxTileCol>4110207</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5314224</MinTileRow>
            <MaxTileRow>5329611</MaxTileRow>
            <MinTileCol>8213599</MinTileCol>
            <MaxTileCol>8220415</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10628449</MinTileRow>
            <MaxTileRow>10659222</MaxTileRow>
            <MinTileCol>16427198</MinTileCol>
            <MaxTileCol>16440830</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21256899</MinTileRow>
            <MaxTileRow>21318445</MaxTileRow>
            <MinTileCol>32854397</MinTileCol>
            <MaxTileCol>32881660</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42513798</MinTileRow>
            <MaxTileRow>42636890</MaxTileRow>
            <MinTileCol>65708794</MinTileCol>
            <MaxTileCol>65763321</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85027596</MinTileRow>
            <MaxTileRow>85273781</MaxTileRow>
            <MinTileCol>131417589</MinTileCol>
            <MaxTileCol>131526643</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170055193</MinTileRow>
            <MaxTileRow>170547563</MaxTileRow>
            <MinTileCol>262835178</MinTileCol>
            <MaxTileCol>263053287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>340110386</MinTileRow>
            <MaxTileRow>341095127</MaxTileRow>
            <MinTileCol>525670356</MinTileCol>
            <MaxTileCol>526106574</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>680220773</MinTileRow>
            <MaxTileRow>682190255</MaxTileRow>
            <MinTileCol>1051340712</MinTileCol>
            <MaxTileCol>1052213149</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Christchurch_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Christchurch_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Christchurch_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Christchurch_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Christchurch_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Christchurch_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Christchurch_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Christchurch_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Christchurch_geological_units/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Christchurch_geological_units/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/gns:NZL-Urban_Christchurch_geological_units/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_mean_125_150</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_mean_125_150</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_mean_125_150" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_125_150/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_125_150/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_mean_125_150/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_heretaunga_age_std_20_30</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>176.3884877553462 -39.750481945775185</ows:LowerCorner>
        <ows:UpperCorner>176.98528171714497 -39.46043237202312</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_heretaunga_age_std_20_30</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw_age</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=84&amp;height=160&amp;layer=twotw%3Atwotw_heretaunga_age_std_20_30" width="84" height="160"/>
      </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>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>46</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>92</MinTileRow>
            <MaxTileRow>92</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>184</MinTileRow>
            <MaxTileRow>184</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>368</MinTileRow>
            <MaxTileRow>369</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>736</MinTileRow>
            <MaxTileRow>738</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1472</MinTileRow>
            <MaxTileRow>1476</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2945</MinTileRow>
            <MaxTileRow>2952</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5891</MinTileRow>
            <MaxTileRow>5905</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11783</MinTileRow>
            <MaxTileRow>11810</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>23567</MinTileRow>
            <MaxTileRow>23620</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>47135</MinTileRow>
            <MaxTileRow>47240</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>94270</MinTileRow>
            <MaxTileRow>94481</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>188540</MinTileRow>
            <MaxTileRow>188962</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>377080</MinTileRow>
            <MaxTileRow>377925</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>754161</MinTileRow>
            <MaxTileRow>755851</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1508323</MinTileRow>
            <MaxTileRow>1511702</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</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>4</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>9</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>19</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>39</MinTileRow>
            <MaxTileRow>39</MaxTileRow>
            <MinTileCol>63</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>79</MinTileRow>
            <MaxTileRow>79</MaxTileRow>
            <MinTileCol>126</MinTileCol>
            <MaxTileCol>126</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>158</MinTileRow>
            <MaxTileRow>158</MaxTileRow>
            <MinTileCol>253</MinTileCol>
            <MaxTileCol>253</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>317</MinTileRow>
            <MaxTileRow>317</MaxTileRow>
            <MinTileCol>506</MinTileCol>
            <MaxTileCol>507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>634</MinTileRow>
            <MaxTileRow>635</MaxTileRow>
            <MinTileCol>1013</MinTileCol>
            <MaxTileCol>1015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1268</MinTileRow>
            <MaxTileRow>1270</MaxTileRow>
            <MinTileCol>2027</MinTileCol>
            <MaxTileCol>2030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2537</MinTileRow>
            <MaxTileRow>2541</MaxTileRow>
            <MinTileCol>4054</MinTileCol>
            <MaxTileCol>4061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5074</MinTileRow>
            <MaxTileRow>5083</MaxTileRow>
            <MinTileCol>8109</MinTileCol>
            <MaxTileCol>8123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10149</MinTileRow>
            <MaxTileRow>10166</MaxTileRow>
            <MinTileCol>16219</MinTileCol>
            <MaxTileCol>16246</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20298</MinTileRow>
            <MaxTileRow>20333</MaxTileRow>
            <MinTileCol>32439</MinTileCol>
            <MaxTileCol>32493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>40597</MinTileRow>
            <MaxTileRow>40666</MaxTileRow>
            <MinTileCol>64878</MinTileCol>
            <MaxTileCol>64987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>81195</MinTileRow>
            <MaxTileRow>81332</MaxTileRow>
            <MinTileCol>129757</MinTileCol>
            <MaxTileCol>129974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>162390</MinTileRow>
            <MaxTileRow>162664</MaxTileRow>
            <MinTileCol>259514</MinTileCol>
            <MaxTileCol>259948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>324781</MinTileRow>
            <MaxTileRow>325329</MaxTileRow>
            <MinTileCol>519028</MinTileCol>
            <MaxTileCol>519897</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>649563</MinTileRow>
            <MaxTileRow>650659</MaxTileRow>
            <MinTileCol>1038056</MinTileCol>
            <MaxTileCol>1039794</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1299126</MinTileRow>
            <MaxTileRow>1301319</MaxTileRow>
            <MinTileCol>2076113</MinTileCol>
            <MaxTileCol>2079589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2598253</MinTileRow>
            <MaxTileRow>2602639</MaxTileRow>
            <MinTileCol>4152226</MinTileCol>
            <MaxTileCol>4159179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5196507</MinTileRow>
            <MaxTileRow>5205279</MaxTileRow>
            <MinTileCol>8304453</MinTileCol>
            <MaxTileCol>8318359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10393014</MinTileRow>
            <MaxTileRow>10410559</MaxTileRow>
            <MinTileCol>16608907</MinTileCol>
            <MaxTileCol>16636719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20786029</MinTileRow>
            <MaxTileRow>20821119</MaxTileRow>
            <MinTileCol>33217814</MinTileCol>
            <MaxTileCol>33273439</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>41572059</MinTileRow>
            <MaxTileRow>41642238</MaxTileRow>
            <MinTileCol>66435629</MinTileCol>
            <MaxTileCol>66546879</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>83144119</MinTileRow>
            <MaxTileRow>83284476</MaxTileRow>
            <MinTileCol>132871258</MinTileCol>
            <MaxTileCol>133093759</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>166288238</MinTileRow>
            <MaxTileRow>166568952</MaxTileRow>
            <MinTileCol>265742517</MinTileCol>
            <MaxTileCol>266187519</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>332576476</MinTileRow>
            <MaxTileRow>333137905</MaxTileRow>
            <MinTileCol>531485034</MinTileCol>
            <MaxTileCol>532375038</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>665152952</MinTileRow>
            <MaxTileRow>666275810</MaxTileRow>
            <MinTileCol>1062970069</MinTileCol>
            <MaxTileCol>1064750076</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_20_30/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_20_30/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_heretaunga_age_std_20_30/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_ni_dtw_layer1</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.51903347061145 -41.730802617749866</ows:LowerCorner>
        <ows:UpperCorner>178.88893784222572 -34.22529965228131</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_ni_dtw_layer1</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw:twotw_dtw</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=122&amp;height=252&amp;layer=twotw%3Atwotw_ni_dtw_layer1" width="122" height="252"/>
      </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>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>706</MinTileRow>
            <MaxTileRow>749</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1413</MinTileRow>
            <MaxTileRow>1498</MaxTileRow>
            <MinTileCol>4010</MinTileCol>
            <MaxTileCol>4083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2826</MinTileRow>
            <MaxTileRow>2997</MaxTileRow>
            <MinTileCol>8021</MinTileCol>
            <MaxTileCol>8166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5653</MinTileRow>
            <MaxTileRow>5995</MaxTileRow>
            <MinTileCol>16043</MinTileCol>
            <MaxTileCol>16333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11307</MinTileRow>
            <MaxTileRow>11990</MaxTileRow>
            <MinTileCol>32087</MinTileCol>
            <MaxTileCol>32666</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22614</MinTileRow>
            <MaxTileRow>23980</MaxTileRow>
            <MinTileCol>64174</MinTileCol>
            <MaxTileCol>65333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45229</MinTileRow>
            <MaxTileRow>47961</MaxTileRow>
            <MinTileCol>128348</MinTileCol>
            <MaxTileCol>130667</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90458</MinTileRow>
            <MaxTileRow>95923</MaxTileRow>
            <MinTileCol>256696</MinTileCol>
            <MaxTileCol>261334</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180916</MinTileRow>
            <MaxTileRow>191846</MaxTileRow>
            <MinTileCol>513393</MinTileCol>
            <MaxTileCol>522669</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361832</MinTileRow>
            <MaxTileRow>383693</MaxTileRow>
            <MinTileCol>1026786</MinTileCol>
            <MaxTileCol>1045339</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>723664</MinTileRow>
            <MaxTileRow>767387</MaxTileRow>
            <MinTileCol>2053572</MinTileCol>
            <MaxTileCol>2090679</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1447329</MinTileRow>
            <MaxTileRow>1534775</MaxTileRow>
            <MinTileCol>4107144</MinTileCol>
            <MaxTileCol>4181359</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1231</MinTileRow>
            <MaxTileRow>1285</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2462</MinTileRow>
            <MaxTileRow>2571</MaxTileRow>
            <MinTileCol>4010</MinTileCol>
            <MaxTileCol>4083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4925</MinTileRow>
            <MaxTileRow>5142</MaxTileRow>
            <MinTileCol>8021</MinTileCol>
            <MaxTileCol>8166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9851</MinTileRow>
            <MaxTileRow>10285</MaxTileRow>
            <MinTileCol>16043</MinTileCol>
            <MaxTileCol>16333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19702</MinTileRow>
            <MaxTileRow>20571</MaxTileRow>
            <MinTileCol>32087</MinTileCol>
            <MaxTileCol>32666</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39405</MinTileRow>
            <MaxTileRow>41142</MaxTileRow>
            <MinTileCol>64174</MinTileCol>
            <MaxTileCol>65333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78811</MinTileRow>
            <MaxTileRow>82284</MaxTileRow>
            <MinTileCol>128348</MinTileCol>
            <MaxTileCol>130667</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157623</MinTileRow>
            <MaxTileRow>164568</MaxTileRow>
            <MinTileCol>256696</MinTileCol>
            <MaxTileCol>261334</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315247</MinTileRow>
            <MaxTileRow>329136</MaxTileRow>
            <MinTileCol>513393</MinTileCol>
            <MaxTileCol>522669</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630495</MinTileRow>
            <MaxTileRow>658273</MaxTileRow>
            <MinTileCol>1026786</MinTileCol>
            <MaxTileCol>1045339</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1260991</MinTileRow>
            <MaxTileRow>1316547</MaxTileRow>
            <MinTileCol>2053572</MinTileCol>
            <MaxTileCol>2090679</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2521982</MinTileRow>
            <MaxTileRow>2633095</MaxTileRow>
            <MinTileCol>4107144</MinTileCol>
            <MaxTileCol>4181359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5043964</MinTileRow>
            <MaxTileRow>5266190</MaxTileRow>
            <MinTileCol>8214288</MinTileCol>
            <MaxTileCol>8362718</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10087928</MinTileRow>
            <MaxTileRow>10532381</MaxTileRow>
            <MinTileCol>16428577</MinTileCol>
            <MaxTileCol>16725436</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20175857</MinTileRow>
            <MaxTileRow>21064763</MaxTileRow>
            <MinTileCol>32857155</MinTileCol>
            <MaxTileCol>33450873</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40351714</MinTileRow>
            <MaxTileRow>42129526</MaxTileRow>
            <MinTileCol>65714310</MinTileCol>
            <MaxTileCol>66901747</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80703429</MinTileRow>
            <MaxTileRow>84259052</MaxTileRow>
            <MinTileCol>131428621</MinTileCol>
            <MaxTileCol>133803494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161406859</MinTileRow>
            <MaxTileRow>168518104</MaxTileRow>
            <MinTileCol>262857243</MinTileCol>
            <MaxTileCol>267606988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322813718</MinTileRow>
            <MaxTileRow>337036208</MaxTileRow>
            <MinTileCol>525714486</MinTileCol>
            <MaxTileCol>535213976</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645627437</MinTileRow>
            <MaxTileRow>674072416</MaxTileRow>
            <MinTileCol>1051428972</MinTileCol>
            <MaxTileCol>1070427952</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer1/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer1/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>twotw_ni_dtw_layer2</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.51903347061145 -41.730802617749866</ows:LowerCorner>
        <ows:UpperCorner>178.88893784222572 -34.22529965228131</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>twotw:twotw_ni_dtw_layer2</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>twotw:twotw_dtw</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://data.gns.cri.nz/webmaps/gns/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=122&amp;height=252&amp;layer=twotw%3Atwotw_ni_dtw_layer2" width="122" height="252"/>
      </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>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>46</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>93</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>187</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>374</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>706</MinTileRow>
            <MaxTileRow>749</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1413</MinTileRow>
            <MaxTileRow>1498</MaxTileRow>
            <MinTileCol>4010</MinTileCol>
            <MaxTileCol>4083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2826</MinTileRow>
            <MaxTileRow>2997</MaxTileRow>
            <MinTileCol>8021</MinTileCol>
            <MaxTileCol>8166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5653</MinTileRow>
            <MaxTileRow>5995</MaxTileRow>
            <MinTileCol>16043</MinTileCol>
            <MaxTileCol>16333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11307</MinTileRow>
            <MaxTileRow>11990</MaxTileRow>
            <MinTileCol>32087</MinTileCol>
            <MaxTileCol>32666</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22614</MinTileRow>
            <MaxTileRow>23980</MaxTileRow>
            <MinTileCol>64174</MinTileCol>
            <MaxTileCol>65333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45229</MinTileRow>
            <MaxTileRow>47961</MaxTileRow>
            <MinTileCol>128348</MinTileCol>
            <MaxTileCol>130667</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90458</MinTileRow>
            <MaxTileRow>95923</MaxTileRow>
            <MinTileCol>256696</MinTileCol>
            <MaxTileCol>261334</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180916</MinTileRow>
            <MaxTileRow>191846</MaxTileRow>
            <MinTileCol>513393</MinTileCol>
            <MaxTileCol>522669</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>361832</MinTileRow>
            <MaxTileRow>383693</MaxTileRow>
            <MinTileCol>1026786</MinTileCol>
            <MaxTileCol>1045339</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>723664</MinTileRow>
            <MaxTileRow>767387</MaxTileRow>
            <MinTileCol>2053572</MinTileCol>
            <MaxTileCol>2090679</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1447329</MinTileRow>
            <MaxTileRow>1534775</MaxTileRow>
            <MinTileCol>4107144</MinTileCol>
            <MaxTileCol>4181359</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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>80</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>160</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>321</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>510</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>642</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1020</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1231</MinTileRow>
            <MaxTileRow>1285</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2041</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2462</MinTileRow>
            <MaxTileRow>2571</MaxTileRow>
            <MinTileCol>4010</MinTileCol>
            <MaxTileCol>4083</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4925</MinTileRow>
            <MaxTileRow>5142</MaxTileRow>
            <MinTileCol>8021</MinTileCol>
            <MaxTileCol>8166</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9851</MinTileRow>
            <MaxTileRow>10285</MaxTileRow>
            <MinTileCol>16043</MinTileCol>
            <MaxTileCol>16333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19702</MinTileRow>
            <MaxTileRow>20571</MaxTileRow>
            <MinTileCol>32087</MinTileCol>
            <MaxTileCol>32666</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39405</MinTileRow>
            <MaxTileRow>41142</MaxTileRow>
            <MinTileCol>64174</MinTileCol>
            <MaxTileCol>65333</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78811</MinTileRow>
            <MaxTileRow>82284</MaxTileRow>
            <MinTileCol>128348</MinTileCol>
            <MaxTileCol>130667</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157623</MinTileRow>
            <MaxTileRow>164568</MaxTileRow>
            <MinTileCol>256696</MinTileCol>
            <MaxTileCol>261334</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315247</MinTileRow>
            <MaxTileRow>329136</MaxTileRow>
            <MinTileCol>513393</MinTileCol>
            <MaxTileCol>522669</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630495</MinTileRow>
            <MaxTileRow>658273</MaxTileRow>
            <MinTileCol>1026786</MinTileCol>
            <MaxTileCol>1045339</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1260991</MinTileRow>
            <MaxTileRow>1316547</MaxTileRow>
            <MinTileCol>2053572</MinTileCol>
            <MaxTileCol>2090679</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2521982</MinTileRow>
            <MaxTileRow>2633095</MaxTileRow>
            <MinTileCol>4107144</MinTileCol>
            <MaxTileCol>4181359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5043964</MinTileRow>
            <MaxTileRow>5266190</MaxTileRow>
            <MinTileCol>8214288</MinTileCol>
            <MaxTileCol>8362718</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10087928</MinTileRow>
            <MaxTileRow>10532381</MaxTileRow>
            <MinTileCol>16428577</MinTileCol>
            <MaxTileCol>16725436</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20175857</MinTileRow>
            <MaxTileRow>21064763</MaxTileRow>
            <MinTileCol>32857155</MinTileCol>
            <MaxTileCol>33450873</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40351714</MinTileRow>
            <MaxTileRow>42129526</MaxTileRow>
            <MinTileCol>65714310</MinTileCol>
            <MaxTileCol>66901747</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80703429</MinTileRow>
            <MaxTileRow>84259052</MaxTileRow>
            <MinTileCol>131428621</MinTileCol>
            <MaxTileCol>133803494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161406859</MinTileRow>
            <MaxTileRow>168518104</MaxTileRow>
            <MinTileCol>262857243</MinTileCol>
            <MaxTileCol>267606988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322813718</MinTileRow>
            <MaxTileRow>337036208</MaxTileRow>
            <MinTileCol>525714486</MinTileCol>
            <MaxTileCol>535213976</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645627437</MinTileRow>
            <MaxTileRow>674072416</MaxTileRow>
            <MinTileCol>1051428972</MinTileCol>
            <MaxTileCol>1070427952</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer2/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/twotw:twotw_ni_dtw_layer2/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <TileMatrixSet>
      <ows:Identifier>EPSG:3857</ows:Identifier>
      <ows:SupportedCRS>urn:ogc:def:crs:EPSG::3857</ows:SupportedCRS>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:0</ows:Identifier>
        <ScaleDenominator>2.7954113197544646E8</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>1</MatrixWidth>
        <MatrixHeight>1</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:1</ows:Identifier>
        <ScaleDenominator>1.3977056598772323E8</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>2</MatrixWidth>
        <MatrixHeight>2</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:2</ows:Identifier>
        <ScaleDenominator>6.988528299386162E7</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>4</MatrixWidth>
        <MatrixHeight>4</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:3</ows:Identifier>
        <ScaleDenominator>3.494264149693081E7</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>8</MatrixWidth>
        <MatrixHeight>8</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:4</ows:Identifier>
        <ScaleDenominator>1.7471320748465404E7</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>16</MatrixWidth>
        <MatrixHeight>16</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:5</ows:Identifier>
        <ScaleDenominator>8735660.374232702</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>32</MatrixWidth>
        <MatrixHeight>32</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:6</ows:Identifier>
        <ScaleDenominator>4367830.187116351</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>64</MatrixWidth>
        <MatrixHeight>64</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:7</ows:Identifier>
        <ScaleDenominator>2183915.0935581755</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>128</MatrixWidth>
        <MatrixHeight>128</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:8</ows:Identifier>
        <ScaleDenominator>1091957.5467790877</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>256</MatrixWidth>
        <MatrixHeight>256</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:9</ows:Identifier>
        <ScaleDenominator>545978.7733895439</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>512</MatrixWidth>
        <MatrixHeight>512</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:10</ows:Identifier>
        <ScaleDenominator>272989.38669477194</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>1024</MatrixWidth>
        <MatrixHeight>1024</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:11</ows:Identifier>
        <ScaleDenominator>136494.69334738597</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>2048</MatrixWidth>
        <MatrixHeight>2048</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:12</ows:Identifier>
        <ScaleDenominator>68247.34667369298</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>4096</MatrixWidth>
        <MatrixHeight>4096</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:13</ows:Identifier>
        <ScaleDenominator>34123.67333684649</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>8192</MatrixWidth>
        <MatrixHeight>8192</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:14</ows:Identifier>
        <ScaleDenominator>17061.836668423246</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>16384</MatrixWidth>
        <MatrixHeight>16384</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:15</ows:Identifier>
        <ScaleDenominator>8530.918334211623</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>32768</MatrixWidth>
        <MatrixHeight>32768</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:3857:16</ows:Identifier>
        <ScaleDenominator>4265.4591671058115</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>512</TileWidth>
        <TileHeight>512</TileHeight>
        <MatrixWidth>65536</MatrixWidth>
        <MatrixHeight>65536</MatrixHeight>
      </TileMatrix>
    </TileMatrixSet>
    <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>
    <TileMatrixSet>
      <ows:Identifier>NZTM</ows:Identifier>
      <ows:SupportedCRS>urn:ogc:def:crs:EPSG::2193</ows:SupportedCRS>
      <TileMatrix>
        <ows:Identifier>NZTM:0</ows:Identifier>
        <ScaleDenominator>2.078449518955904E7</ScaleDenominator>
        <TopLeftCorner>6226643.0 987942.4517130491</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1</MatrixWidth>
        <MatrixHeight>1</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>NZTM:1</ows:Identifier>
        <ScaleDenominator>1.039224759477952E7</ScaleDenominator>
        <TopLeftCorner>6226643.0 987942.4517130491</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2</MatrixWidth>
        <MatrixHeight>2</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>NZTM:2</ows:Identifier>
        <ScaleDenominator>5196123.79738976</ScaleDenominator>
        <TopLeftCorner>6226643.0 987942.4517130491</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4</MatrixWidth>
        <MatrixHeight>4</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>NZTM:3</ows:Identifier>
        <ScaleDenominator>2598061.89869488</ScaleDenominator>
        <TopLeftCorner>6226643.0 987942.4517130491</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>7</MatrixWidth>
        <MatrixHeight>8</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>NZTM:4</ows:Identifier>
        <ScaleDenominator>1299030.94934744</ScaleDenominator>
        <TopLeftCorner>6226643.0 987942.4517130491</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>13</MatrixWidth>
        <MatrixHeight>16</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>NZTM:5</ows:Identifier>
        <ScaleDenominator>649515.47467372</ScaleDenominator>
        <TopLeftCorner>6226643.0 987942.4517130491</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>25</MatrixWidth>
        <MatrixHeight>32</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>NZTM:6</ows:Identifier>
        <ScaleDenominator>324757.73733686</ScaleDenominator>
        <TopLeftCorner>6226643.0 987942.4517130491</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>49</MatrixWidth>
        <MatrixHeight>64</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>NZTM:7</ows:Identifier>
        <ScaleDenominator>162378.86866843</ScaleDenominator>
        <TopLeftCorner>6226643.0 987942.4517130491</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>98</MatrixWidth>
        <MatrixHeight>128</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>NZTM:8</ows:Identifier>
        <ScaleDenominator>81189.434334215</ScaleDenominator>
        <TopLeftCorner>6226643.0 987942.4517130491</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>195</MatrixWidth>
        <MatrixHeight>256</MatrixHeight>
      </TileMatrix>
    </TileMatrixSet>
    <TileMatrixSet>
      <ows:Identifier>WebMercatorQuad</ows:Identifier>
      <ows:SupportedCRS>urn:ogc:def:crs:EPSG::3857</ows:SupportedCRS>
      <TileMatrix>
        <ows:Identifier>0</ows:Identifier>
        <ScaleDenominator>5.59082264028717E8</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1</MatrixWidth>
        <MatrixHeight>1</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>1</ows:Identifier>
        <ScaleDenominator>2.79541132014358E8</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2</MatrixWidth>
        <MatrixHeight>2</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>2</ows:Identifier>
        <ScaleDenominator>1.39770566007179E8</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4</MatrixWidth>
        <MatrixHeight>4</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>3</ows:Identifier>
        <ScaleDenominator>6.98852830035897E7</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>8</MatrixWidth>
        <MatrixHeight>8</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>4</ows:Identifier>
        <ScaleDenominator>3.49426415017948E7</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>16</MatrixWidth>
        <MatrixHeight>16</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>5</ows:Identifier>
        <ScaleDenominator>1.74713207508974E7</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>32</MatrixWidth>
        <MatrixHeight>32</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>6</ows:Identifier>
        <ScaleDenominator>8735660.37544871</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>64</MatrixWidth>
        <MatrixHeight>64</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>7</ows:Identifier>
        <ScaleDenominator>4367830.18772435</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>128</MatrixWidth>
        <MatrixHeight>128</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>8</ows:Identifier>
        <ScaleDenominator>2183915.09386217</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>256</MatrixWidth>
        <MatrixHeight>256</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>9</ows:Identifier>
        <ScaleDenominator>1091957.54693108</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>512</MatrixWidth>
        <MatrixHeight>512</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>10</ows:Identifier>
        <ScaleDenominator>545978.773465544</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1024</MatrixWidth>
        <MatrixHeight>1024</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>11</ows:Identifier>
        <ScaleDenominator>272989.386732772</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2048</MatrixWidth>
        <MatrixHeight>2048</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>12</ows:Identifier>
        <ScaleDenominator>136494.693366386</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4096</MatrixWidth>
        <MatrixHeight>4096</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>13</ows:Identifier>
        <ScaleDenominator>68247.346683193</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>8192</MatrixWidth>
        <MatrixHeight>8192</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>14</ows:Identifier>
        <ScaleDenominator>34123.6733415964</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>16384</MatrixWidth>
        <MatrixHeight>16384</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>15</ows:Identifier>
        <ScaleDenominator>17061.8366707982</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>32768</MatrixWidth>
        <MatrixHeight>32768</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>16</ows:Identifier>
        <ScaleDenominator>8530.91833539913</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>65536</MatrixWidth>
        <MatrixHeight>65536</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>17</ows:Identifier>
        <ScaleDenominator>4265.45916769956</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>131072</MatrixWidth>
        <MatrixHeight>131072</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>18</ows:Identifier>
        <ScaleDenominator>2132.72958384978</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>262144</MatrixWidth>
        <MatrixHeight>262144</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>19</ows:Identifier>
        <ScaleDenominator>1066.36479192489</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>524288</MatrixWidth>
        <MatrixHeight>524288</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>20</ows:Identifier>
        <ScaleDenominator>533.182395962445</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1048576</MatrixWidth>
        <MatrixHeight>1048576</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>21</ows:Identifier>
        <ScaleDenominator>266.591197981222</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2097152</MatrixWidth>
        <MatrixHeight>2097152</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>22</ows:Identifier>
        <ScaleDenominator>133.295598990611</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4194304</MatrixWidth>
        <MatrixHeight>4194304</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>23</ows:Identifier>
        <ScaleDenominator>66.6477994953056</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>8388608</MatrixWidth>
        <MatrixHeight>8388608</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>24</ows:Identifier>
        <ScaleDenominator>33.3238997476528</ScaleDenominator>
        <TopLeftCorner>2.003750834E7 -2.003750834E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>16777216</MatrixWidth>
        <MatrixHeight>16777216</MatrixHeight>
      </TileMatrix>
    </TileMatrixSet>
  </Contents>
  <ServiceMetadataURL xlink:href="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts?SERVICE=wmts&amp;REQUEST=getcapabilities&amp;VERSION=1.0.0"/>
  <ServiceMetadataURL xlink:href="https://data.gns.cri.nz/webmaps/gns/gwc/service/wmts/rest/WMTSCapabilities.xml"/>
</Capabilities>