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

<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd" version="1.0.0">
  <ows:ServiceIdentification>
    <ows:Title>GeoServer Web Map Tile Service</ows:Title>
    <ows:Abstract>Predefined map tiles generated from vector data, raster data, and imagery.</ows:Abstract>
    <ows:ServiceType>OGC WMTS</ows:ServiceType>
    <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
    <ows:Fees>NONE</ows:Fees>
    <ows:AccessConstraints>NONE</ows:AccessConstraints>
  </ows:ServiceIdentification>
  <ows:ServiceProvider>
    <ows:ProviderName>GeoServer</ows:ProviderName>
    <ows:ProviderSite xlink:href="https://geoserver.org"/>
    <ows:ServiceContact>
      <ows:ContactInfo>
        <ows:Address/>
      </ows:ContactInfo>
    </ows:ServiceContact>
  </ows:ServiceProvider>
  <ows:OperationsMetadata>
    <ows:Operation name="GetCapabilities">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts?">
            <ows:Constraint name="GetEncoding">
              <ows:AllowedValues>
                <ows:Value>KVP</ows:Value>
              </ows:AllowedValues>
            </ows:Constraint>
          </ows:Get>
        </ows:HTTP>
      </ows:DCP>
    </ows:Operation>
    <ows:Operation name="GetTile">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts?">
            <ows:Constraint name="GetEncoding">
              <ows:AllowedValues>
                <ows:Value>KVP</ows:Value>
              </ows:AllowedValues>
            </ows:Constraint>
          </ows:Get>
        </ows:HTTP>
      </ows:DCP>
    </ows:Operation>
    <ows:Operation name="GetFeatureInfo">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts?">
            <ows:Constraint name="GetEncoding">
              <ows:AllowedValues>
                <ows:Value>KVP</ows:Value>
              </ows:AllowedValues>
            </ows:Constraint>
          </ows:Get>
        </ows:HTTP>
      </ows:DCP>
    </ows:Operation>
  </ows:OperationsMetadata>
  <Contents>
    <Layer>
      <ows:Title>building_flood_status</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.61458342599963 -43.42005425814479</ows:LowerCorner>
        <ows:UpperCorner>172.72355531620946 -43.36121180433457</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-buildings:building_flood_status</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-buildings%3Abuilding_flood_status" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>94</MinTileRow>
            <MaxTileRow>94</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>189</MinTileRow>
            <MaxTileRow>189</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>379</MinTileRow>
            <MaxTileRow>379</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>758</MinTileRow>
            <MaxTileRow>759</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2006</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1517</MinTileRow>
            <MaxTileRow>1518</MaxTileRow>
            <MinTileCol>4011</MinTileCol>
            <MaxTileCol>4013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3034</MinTileRow>
            <MaxTileRow>3036</MaxTileRow>
            <MinTileCol>8023</MinTileCol>
            <MaxTileCol>8026</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6069</MinTileRow>
            <MaxTileRow>6072</MaxTileRow>
            <MinTileCol>16047</MinTileCol>
            <MaxTileCol>16052</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12138</MinTileRow>
            <MaxTileRow>12144</MaxTileRow>
            <MinTileCol>32095</MinTileCol>
            <MaxTileCol>32105</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24277</MinTileRow>
            <MaxTileRow>24288</MaxTileRow>
            <MinTileCol>64191</MinTileCol>
            <MaxTileCol>64211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48555</MinTileRow>
            <MaxTileRow>48576</MaxTileRow>
            <MinTileCol>128383</MinTileCol>
            <MaxTileCol>128422</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97110</MinTileRow>
            <MaxTileRow>97153</MaxTileRow>
            <MinTileCol>256766</MinTileCol>
            <MaxTileCol>256845</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194221</MinTileRow>
            <MaxTileRow>194307</MaxTileRow>
            <MinTileCol>513532</MinTileCol>
            <MaxTileCol>513690</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>388442</MinTileRow>
            <MaxTileRow>388614</MaxTileRow>
            <MinTileCol>1027064</MinTileCol>
            <MaxTileCol>1027381</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>776885</MinTileRow>
            <MaxTileRow>777228</MaxTileRow>
            <MinTileCol>2054128</MinTileCol>
            <MaxTileCol>2054763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1553770</MinTileRow>
            <MaxTileRow>1554456</MaxTileRow>
            <MinTileCol>4108257</MinTileCol>
            <MaxTileCol>4109527</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>324</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>649</MinTileRow>
            <MaxTileRow>649</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1298</MinTileRow>
            <MaxTileRow>1298</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2006</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2596</MinTileRow>
            <MaxTileRow>2597</MaxTileRow>
            <MinTileCol>4011</MinTileCol>
            <MaxTileCol>4013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5193</MinTileRow>
            <MaxTileRow>5194</MaxTileRow>
            <MinTileCol>8023</MinTileCol>
            <MaxTileCol>8026</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10386</MinTileRow>
            <MaxTileRow>10389</MaxTileRow>
            <MinTileCol>16047</MinTileCol>
            <MaxTileCol>16052</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20772</MinTileRow>
            <MaxTileRow>20779</MaxTileRow>
            <MinTileCol>32095</MinTileCol>
            <MaxTileCol>32105</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41545</MinTileRow>
            <MaxTileRow>41559</MaxTileRow>
            <MinTileCol>64191</MinTileCol>
            <MaxTileCol>64211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83090</MinTileRow>
            <MaxTileRow>83119</MaxTileRow>
            <MinTileCol>128383</MinTileCol>
            <MaxTileCol>128422</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166180</MinTileRow>
            <MaxTileRow>166239</MaxTileRow>
            <MinTileCol>256766</MinTileCol>
            <MaxTileCol>256845</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>332360</MinTileRow>
            <MaxTileRow>332478</MaxTileRow>
            <MinTileCol>513532</MinTileCol>
            <MaxTileCol>513690</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>664720</MinTileRow>
            <MaxTileRow>664956</MaxTileRow>
            <MinTileCol>1027064</MinTileCol>
            <MaxTileCol>1027381</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1329440</MinTileRow>
            <MaxTileRow>1329912</MaxTileRow>
            <MinTileCol>2054128</MinTileCol>
            <MaxTileCol>2054763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2658881</MinTileRow>
            <MaxTileRow>2659824</MaxTileRow>
            <MinTileCol>4108257</MinTileCol>
            <MaxTileCol>4109527</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5317762</MinTileRow>
            <MaxTileRow>5319649</MaxTileRow>
            <MinTileCol>8216515</MinTileCol>
            <MaxTileCol>8219054</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10635525</MinTileRow>
            <MaxTileRow>10639298</MaxTileRow>
            <MinTileCol>16433030</MinTileCol>
            <MaxTileCol>16438109</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21271050</MinTileRow>
            <MaxTileRow>21278597</MaxTileRow>
            <MinTileCol>32866061</MinTileCol>
            <MaxTileCol>32876218</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42542100</MinTileRow>
            <MaxTileRow>42557195</MaxTileRow>
            <MinTileCol>65732122</MinTileCol>
            <MaxTileCol>65752436</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85084200</MinTileRow>
            <MaxTileRow>85114390</MaxTileRow>
            <MinTileCol>131464245</MinTileCol>
            <MaxTileCol>131504872</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170168401</MinTileRow>
            <MaxTileRow>170228780</MaxTileRow>
            <MinTileCol>262928490</MinTileCol>
            <MaxTileCol>263009745</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>340336803</MinTileRow>
            <MaxTileRow>340457560</MaxTileRow>
            <MinTileCol>525856980</MinTileCol>
            <MaxTileCol>526019491</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>680673606</MinTileRow>
            <MaxTileRow>680915120</MaxTileRow>
            <MinTileCol>1051713961</MinTileCol>
            <MaxTileCol>1052038982</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>region_geometry_clipped</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-180.0 -47.41964793037733</ows:LowerCorner>
        <ows:UpperCorner>180.0 -33.77340277566287</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>input_layers:region_geometry_clipped</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>generic</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=input_layers%3Aregion_geometry_clipped" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>22</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>390</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>781</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1408</MinTileRow>
            <MaxTileRow>1563</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2816</MinTileRow>
            <MaxTileRow>3127</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5633</MinTileRow>
            <MaxTileRow>6254</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11266</MinTileRow>
            <MaxTileRow>12508</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22532</MinTileRow>
            <MaxTileRow>25016</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45064</MinTileRow>
            <MaxTileRow>50032</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90129</MinTileRow>
            <MaxTileRow>100065</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180258</MinTileRow>
            <MaxTileRow>200131</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360516</MinTileRow>
            <MaxTileRow>400263</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721032</MinTileRow>
            <MaxTileRow>800527</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1442064</MinTileRow>
            <MaxTileRow>1601054</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4194303</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>4</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1228</MinTileRow>
            <MaxTileRow>1331</MaxTileRow>
            <MinTileCol>8</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2456</MinTileRow>
            <MaxTileRow>2662</MaxTileRow>
            <MinTileCol>16</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4913</MinTileRow>
            <MaxTileRow>5324</MaxTileRow>
            <MinTileCol>32</MinTileCol>
            <MaxTileCol>8190</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9826</MinTileRow>
            <MaxTileRow>10649</MaxTileRow>
            <MinTileCol>65</MinTileCol>
            <MaxTileCol>16381</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19653</MinTileRow>
            <MaxTileRow>21298</MaxTileRow>
            <MinTileCol>130</MinTileCol>
            <MaxTileCol>32762</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39306</MinTileRow>
            <MaxTileRow>42597</MaxTileRow>
            <MinTileCol>261</MinTileCol>
            <MaxTileCol>65524</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78613</MinTileRow>
            <MaxTileRow>85195</MaxTileRow>
            <MinTileCol>523</MinTileCol>
            <MaxTileCol>131048</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157226</MinTileRow>
            <MaxTileRow>170390</MaxTileRow>
            <MinTileCol>1047</MinTileCol>
            <MaxTileCol>262096</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314453</MinTileRow>
            <MaxTileRow>340781</MaxTileRow>
            <MinTileCol>2095</MinTileCol>
            <MaxTileCol>524193</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>628907</MinTileRow>
            <MaxTileRow>681563</MaxTileRow>
            <MinTileCol>4190</MinTileCol>
            <MaxTileCol>1048387</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1257815</MinTileRow>
            <MaxTileRow>1363127</MaxTileRow>
            <MinTileCol>8381</MinTileCol>
            <MaxTileCol>2096774</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2515631</MinTileRow>
            <MaxTileRow>2726254</MaxTileRow>
            <MinTileCol>16763</MinTileCol>
            <MaxTileCol>4193548</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5031262</MinTileRow>
            <MaxTileRow>5452509</MaxTileRow>
            <MinTileCol>33527</MinTileCol>
            <MaxTileCol>8387097</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10062525</MinTileRow>
            <MaxTileRow>10905018</MaxTileRow>
            <MinTileCol>67055</MinTileCol>
            <MaxTileCol>16774194</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20125051</MinTileRow>
            <MaxTileRow>21810037</MaxTileRow>
            <MinTileCol>134111</MinTileCol>
            <MaxTileCol>33548389</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40250103</MinTileRow>
            <MaxTileRow>43620074</MaxTileRow>
            <MinTileCol>268222</MinTileCol>
            <MaxTileCol>67096778</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80500207</MinTileRow>
            <MaxTileRow>87240149</MaxTileRow>
            <MinTileCol>536444</MinTileCol>
            <MaxTileCol>134193557</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161000414</MinTileRow>
            <MaxTileRow>174480298</MaxTileRow>
            <MinTileCol>1072889</MinTileCol>
            <MaxTileCol>268387114</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322000829</MinTileRow>
            <MaxTileRow>348960597</MaxTileRow>
            <MinTileCol>2145779</MinTileCol>
            <MaxTileCol>536774228</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644001659</MinTileRow>
            <MaxTileRow>697921195</MaxTileRow>
            <MinTileCol>4291558</MinTileCol>
            <MaxTileCol>1073548456</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>100y_3c_thresholded_0-1_3857</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3147871616959 -43.86954392313133</ows:LowerCorner>
        <ows:UpperCorner>172.38866892073 -43.8346956274462</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:100y_3c_thresholded_0-1_3857</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3A100y_3c_thresholded_0-1_3857" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666498</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332997</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209529</MinTileCol>
            <MaxTileCol>8211251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665994</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419059</MinTileCol>
            <MaxTileCol>16422502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331989</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838118</MinTileCol>
            <MaxTileCol>32845004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663979</MinTileRow>
            <MaxTileRow>42672987</MaxTileRow>
            <MinTileCol>65676236</MinTileCol>
            <MaxTileCol>65690009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327959</MinTileRow>
            <MaxTileRow>85345975</MaxTileRow>
            <MinTileCol>131352472</MinTileCol>
            <MaxTileCol>131380018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655918</MinTileRow>
            <MaxTileRow>170691951</MaxTileRow>
            <MinTileCol>262704945</MinTileCol>
            <MaxTileCol>262760036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311837</MinTileRow>
            <MaxTileRow>341383903</MaxTileRow>
            <MinTileCol>525409891</MinTileCol>
            <MaxTileCol>525520072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623674</MinTileRow>
            <MaxTileRow>682767807</MaxTileRow>
            <MinTileCol>1050819783</MinTileCol>
            <MaxTileCol>1051040144</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>nz_building_outlines</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.61447522618414 -43.42090302722184</ows:LowerCorner>
        <ows:UpperCorner>172.70561248314155 -43.36102421772074</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>input_layers:nz_building_outlines</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=input_layers%3Anz_building_outlines" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>94</MinTileRow>
            <MaxTileRow>94</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>189</MinTileRow>
            <MaxTileRow>189</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>379</MinTileRow>
            <MaxTileRow>379</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>758</MinTileRow>
            <MaxTileRow>759</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2006</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1517</MinTileRow>
            <MaxTileRow>1518</MaxTileRow>
            <MinTileCol>4011</MinTileCol>
            <MaxTileCol>4013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3034</MinTileRow>
            <MaxTileRow>3036</MaxTileRow>
            <MinTileCol>8023</MinTileCol>
            <MaxTileCol>8026</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6069</MinTileRow>
            <MaxTileRow>6072</MaxTileRow>
            <MinTileCol>16047</MinTileCol>
            <MaxTileCol>16052</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12138</MinTileRow>
            <MaxTileRow>12144</MaxTileRow>
            <MinTileCol>32095</MinTileCol>
            <MaxTileCol>32104</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24277</MinTileRow>
            <MaxTileRow>24288</MaxTileRow>
            <MinTileCol>64191</MinTileCol>
            <MaxTileCol>64208</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48555</MinTileRow>
            <MaxTileRow>48577</MaxTileRow>
            <MinTileCol>128383</MinTileCol>
            <MaxTileCol>128416</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97110</MinTileRow>
            <MaxTileRow>97154</MaxTileRow>
            <MinTileCol>256766</MinTileCol>
            <MaxTileCol>256832</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194221</MinTileRow>
            <MaxTileRow>194308</MaxTileRow>
            <MinTileCol>513532</MinTileCol>
            <MaxTileCol>513664</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>388442</MinTileRow>
            <MaxTileRow>388616</MaxTileRow>
            <MinTileCol>1027064</MinTileCol>
            <MaxTileCol>1027329</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>776884</MinTileRow>
            <MaxTileRow>777233</MaxTileRow>
            <MinTileCol>2054128</MinTileCol>
            <MaxTileCol>2054659</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1553768</MinTileRow>
            <MaxTileRow>1554466</MaxTileRow>
            <MinTileCol>4108256</MinTileCol>
            <MaxTileCol>4109318</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>324</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>649</MinTileRow>
            <MaxTileRow>649</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1003</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1298</MinTileRow>
            <MaxTileRow>1298</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2006</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2596</MinTileRow>
            <MaxTileRow>2597</MaxTileRow>
            <MinTileCol>4011</MinTileCol>
            <MaxTileCol>4013</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5193</MinTileRow>
            <MaxTileRow>5194</MaxTileRow>
            <MinTileCol>8023</MinTileCol>
            <MaxTileCol>8026</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10386</MinTileRow>
            <MaxTileRow>10389</MaxTileRow>
            <MinTileCol>16047</MinTileCol>
            <MaxTileCol>16052</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20772</MinTileRow>
            <MaxTileRow>20779</MaxTileRow>
            <MinTileCol>32095</MinTileCol>
            <MaxTileCol>32104</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41544</MinTileRow>
            <MaxTileRow>41559</MaxTileRow>
            <MinTileCol>64191</MinTileCol>
            <MaxTileCol>64208</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83089</MinTileRow>
            <MaxTileRow>83119</MaxTileRow>
            <MinTileCol>128383</MinTileCol>
            <MaxTileCol>128416</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166179</MinTileRow>
            <MaxTileRow>166239</MaxTileRow>
            <MinTileCol>256766</MinTileCol>
            <MaxTileCol>256832</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>332359</MinTileRow>
            <MaxTileRow>332479</MaxTileRow>
            <MinTileCol>513532</MinTileCol>
            <MaxTileCol>513664</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>664719</MinTileRow>
            <MaxTileRow>664959</MaxTileRow>
            <MinTileCol>1027064</MinTileCol>
            <MaxTileCol>1027329</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1329439</MinTileRow>
            <MaxTileRow>1329919</MaxTileRow>
            <MinTileCol>2054128</MinTileCol>
            <MaxTileCol>2054659</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2658878</MinTileRow>
            <MaxTileRow>2659838</MaxTileRow>
            <MinTileCol>4108256</MinTileCol>
            <MaxTileCol>4109318</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5317756</MinTileRow>
            <MaxTileRow>5319676</MaxTileRow>
            <MinTileCol>8216512</MinTileCol>
            <MaxTileCol>8218636</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10635513</MinTileRow>
            <MaxTileRow>10639353</MaxTileRow>
            <MinTileCol>16433025</MinTileCol>
            <MaxTileCol>16437272</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21271026</MinTileRow>
            <MaxTileRow>21278706</MaxTileRow>
            <MinTileCol>32866051</MinTileCol>
            <MaxTileCol>32874545</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42542052</MinTileRow>
            <MaxTileRow>42557412</MaxTileRow>
            <MinTileCol>65732102</MinTileCol>
            <MaxTileCol>65749091</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85084104</MinTileRow>
            <MaxTileRow>85114825</MaxTileRow>
            <MinTileCol>131464204</MinTileCol>
            <MaxTileCol>131498183</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170168209</MinTileRow>
            <MaxTileRow>170229651</MaxTileRow>
            <MinTileCol>262928409</MinTileCol>
            <MaxTileCol>262996366</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>340336418</MinTileRow>
            <MaxTileRow>340459302</MaxTileRow>
            <MinTileCol>525856819</MinTileCol>
            <MaxTileCol>525992732</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>680672837</MinTileRow>
            <MaxTileRow>680918605</MaxTileRow>
            <MinTileCol>1051713638</MinTileCol>
            <MaxTileCol>1051985465</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>lcdb_mauri_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.61447522618414 -43.421260327803</ows:LowerCorner>
        <ows:UpperCorner>173.5285312124849 -35.45900614815595</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-intermediate-wflow:lcdb_mauri_view</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-intermediate-wflow%3Alcdb_mauri_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>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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>94</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>189</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>379</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>713</MinTileRow>
            <MaxTileRow>759</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2011</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1427</MinTileRow>
            <MaxTileRow>1518</MaxTileRow>
            <MinTileCol>4011</MinTileCol>
            <MaxTileCol>4022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2854</MinTileRow>
            <MaxTileRow>3036</MaxTileRow>
            <MinTileCol>8023</MinTileCol>
            <MaxTileCol>8044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5709</MinTileRow>
            <MaxTileRow>6072</MaxTileRow>
            <MinTileCol>16047</MinTileCol>
            <MaxTileCol>16089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11419</MinTileRow>
            <MaxTileRow>12144</MaxTileRow>
            <MinTileCol>32095</MinTileCol>
            <MaxTileCol>32178</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22839</MinTileRow>
            <MaxTileRow>24288</MaxTileRow>
            <MinTileCol>64191</MinTileCol>
            <MaxTileCol>64357</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45678</MinTileRow>
            <MaxTileRow>48577</MaxTileRow>
            <MinTileCol>128383</MinTileCol>
            <MaxTileCol>128715</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91356</MinTileRow>
            <MaxTileRow>97154</MaxTileRow>
            <MinTileCol>256766</MinTileCol>
            <MaxTileCol>257431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182712</MinTileRow>
            <MaxTileRow>194308</MaxTileRow>
            <MinTileCol>513532</MinTileCol>
            <MaxTileCol>514863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>365425</MinTileRow>
            <MaxTileRow>388617</MaxTileRow>
            <MinTileCol>1027064</MinTileCol>
            <MaxTileCol>1029726</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>730851</MinTileRow>
            <MaxTileRow>777235</MaxTileRow>
            <MinTileCol>2054128</MinTileCol>
            <MaxTileCol>2059452</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1461703</MinTileRow>
            <MaxTileRow>1554470</MaxTileRow>
            <MinTileCol>4108256</MinTileCol>
            <MaxTileCol>4118905</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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>324</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>649</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1239</MinTileRow>
            <MaxTileRow>1298</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2011</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2479</MinTileRow>
            <MaxTileRow>2597</MaxTileRow>
            <MinTileCol>4011</MinTileCol>
            <MaxTileCol>4022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4959</MinTileRow>
            <MaxTileRow>5195</MaxTileRow>
            <MinTileCol>8023</MinTileCol>
            <MaxTileCol>8044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9919</MinTileRow>
            <MaxTileRow>10390</MaxTileRow>
            <MinTileCol>16047</MinTileCol>
            <MaxTileCol>16089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19839</MinTileRow>
            <MaxTileRow>20780</MaxTileRow>
            <MinTileCol>32095</MinTileCol>
            <MaxTileCol>32178</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39679</MinTileRow>
            <MaxTileRow>41560</MaxTileRow>
            <MinTileCol>64191</MinTileCol>
            <MaxTileCol>64357</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79359</MinTileRow>
            <MaxTileRow>83120</MaxTileRow>
            <MinTileCol>128383</MinTileCol>
            <MaxTileCol>128715</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158718</MinTileRow>
            <MaxTileRow>166240</MaxTileRow>
            <MinTileCol>256766</MinTileCol>
            <MaxTileCol>257431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317437</MinTileRow>
            <MaxTileRow>332480</MaxTileRow>
            <MinTileCol>513532</MinTileCol>
            <MaxTileCol>514863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634874</MinTileRow>
            <MaxTileRow>664961</MaxTileRow>
            <MinTileCol>1027064</MinTileCol>
            <MaxTileCol>1029726</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1269748</MinTileRow>
            <MaxTileRow>1329922</MaxTileRow>
            <MinTileCol>2054128</MinTileCol>
            <MaxTileCol>2059452</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2539496</MinTileRow>
            <MaxTileRow>2659844</MaxTileRow>
            <MinTileCol>4108256</MinTileCol>
            <MaxTileCol>4118905</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5078992</MinTileRow>
            <MaxTileRow>5319688</MaxTileRow>
            <MinTileCol>8216512</MinTileCol>
            <MaxTileCol>8237811</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10157984</MinTileRow>
            <MaxTileRow>10639376</MaxTileRow>
            <MinTileCol>16433025</MinTileCol>
            <MaxTileCol>16475623</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20315969</MinTileRow>
            <MaxTileRow>21278752</MaxTileRow>
            <MinTileCol>32866051</MinTileCol>
            <MaxTileCol>32951247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40631939</MinTileRow>
            <MaxTileRow>42557504</MaxTileRow>
            <MinTileCol>65732102</MinTileCol>
            <MaxTileCol>65902494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81263878</MinTileRow>
            <MaxTileRow>85115009</MaxTileRow>
            <MinTileCol>131464204</MinTileCol>
            <MaxTileCol>131804989</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162527756</MinTileRow>
            <MaxTileRow>170230018</MaxTileRow>
            <MinTileCol>262928409</MinTileCol>
            <MaxTileCol>263609979</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>325055513</MinTileRow>
            <MaxTileRow>340460036</MaxTileRow>
            <MinTileCol>525856819</MinTileCol>
            <MaxTileCol>527219958</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>650111027</MinTileRow>
            <MaxTileRow>680920072</MaxTileRow>
            <MinTileCol>1051713638</MinTileCol>
            <MaxTileCol>1054439916</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:lcdb_mauri_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:lcdb_mauri_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:lcdb_mauri_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:lcdb_mauri_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:lcdb_mauri_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:lcdb_mauri_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:lcdb_mauri_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:lcdb_mauri_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:lcdb_mauri_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:lcdb_mauri_view/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:lcdb_mauri_view/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>current_wetlands</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.4941406568789 -46.70699365412146</ows:LowerCorner>
        <ows:UpperCorner>170.86630022561218 -44.456853225190756</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:current_wetlands</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Acurrent_wetlands" 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>23</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>249</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>191</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>499</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>382</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>998</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>764</MinTileRow>
            <MaxTileRow>777</MaxTileRow>
            <MinTileCol>1971</MinTileCol>
            <MaxTileCol>1996</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1529</MinTileRow>
            <MaxTileRow>1555</MaxTileRow>
            <MinTileCol>3942</MinTileCol>
            <MaxTileCol>3992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3059</MinTileRow>
            <MaxTileRow>3110</MaxTileRow>
            <MinTileCol>7884</MinTileCol>
            <MaxTileCol>7984</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6119</MinTileRow>
            <MaxTileRow>6221</MaxTileRow>
            <MinTileCol>15769</MinTileCol>
            <MaxTileCol>15968</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12238</MinTileRow>
            <MaxTileRow>12443</MaxTileRow>
            <MinTileCol>31538</MinTileCol>
            <MaxTileCol>31936</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24477</MinTileRow>
            <MaxTileRow>24886</MaxTileRow>
            <MinTileCol>63077</MinTileCol>
            <MaxTileCol>63873</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48954</MinTileRow>
            <MaxTileRow>49773</MaxTileRow>
            <MinTileCol>126154</MinTileCol>
            <MaxTileCol>127746</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97908</MinTileRow>
            <MaxTileRow>99546</MaxTileRow>
            <MinTileCol>252309</MinTileCol>
            <MaxTileCol>255493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>195816</MinTileRow>
            <MaxTileRow>199093</MaxTileRow>
            <MinTileCol>504618</MinTileCol>
            <MaxTileCol>510986</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>391633</MinTileRow>
            <MaxTileRow>398187</MaxTileRow>
            <MinTileCol>1009237</MinTileCol>
            <MaxTileCol>1021972</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>783267</MinTileRow>
            <MaxTileRow>796375</MaxTileRow>
            <MinTileCol>2018474</MinTileCol>
            <MaxTileCol>2043944</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1566535</MinTileRow>
            <MaxTileRow>1592751</MaxTileRow>
            <MinTileCol>4036949</MinTileCol>
            <MaxTileCol>4087888</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>40</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>163</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>249</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>326</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>499</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>653</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>998</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1306</MinTileRow>
            <MaxTileRow>1325</MaxTileRow>
            <MinTileCol>1971</MinTileCol>
            <MaxTileCol>1996</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2613</MinTileRow>
            <MaxTileRow>2650</MaxTileRow>
            <MinTileCol>3942</MinTileCol>
            <MaxTileCol>3992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5227</MinTileRow>
            <MaxTileRow>5300</MaxTileRow>
            <MinTileCol>7884</MinTileCol>
            <MaxTileCol>7984</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10455</MinTileRow>
            <MaxTileRow>10601</MaxTileRow>
            <MinTileCol>15769</MinTileCol>
            <MaxTileCol>15968</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20910</MinTileRow>
            <MaxTileRow>21203</MaxTileRow>
            <MinTileCol>31538</MinTileCol>
            <MaxTileCol>31936</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41821</MinTileRow>
            <MaxTileRow>42407</MaxTileRow>
            <MinTileCol>63077</MinTileCol>
            <MaxTileCol>63873</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83643</MinTileRow>
            <MaxTileRow>84814</MaxTileRow>
            <MinTileCol>126154</MinTileCol>
            <MaxTileCol>127746</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>167287</MinTileRow>
            <MaxTileRow>169629</MaxTileRow>
            <MinTileCol>252309</MinTileCol>
            <MaxTileCol>255493</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>334575</MinTileRow>
            <MaxTileRow>339258</MaxTileRow>
            <MinTileCol>504618</MinTileCol>
            <MaxTileCol>510986</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>669150</MinTileRow>
            <MaxTileRow>678516</MaxTileRow>
            <MinTileCol>1009237</MinTileCol>
            <MaxTileCol>1021972</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1338300</MinTileRow>
            <MaxTileRow>1357032</MaxTileRow>
            <MinTileCol>2018474</MinTileCol>
            <MaxTileCol>2043944</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2676600</MinTileRow>
            <MaxTileRow>2714065</MaxTileRow>
            <MinTileCol>4036949</MinTileCol>
            <MaxTileCol>4087888</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5353201</MinTileRow>
            <MaxTileRow>5428130</MaxTileRow>
            <MinTileCol>8073898</MinTileCol>
            <MaxTileCol>8175777</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10706402</MinTileRow>
            <MaxTileRow>10856261</MaxTileRow>
            <MinTileCol>16147797</MinTileCol>
            <MaxTileCol>16351554</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21412804</MinTileRow>
            <MaxTileRow>21712523</MaxTileRow>
            <MinTileCol>32295594</MinTileCol>
            <MaxTileCol>32703109</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42825608</MinTileRow>
            <MaxTileRow>43425046</MaxTileRow>
            <MinTileCol>64591189</MinTileCol>
            <MaxTileCol>65406218</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85651217</MinTileRow>
            <MaxTileRow>86850092</MaxTileRow>
            <MinTileCol>129182378</MinTileCol>
            <MaxTileCol>130812437</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>171302435</MinTileRow>
            <MaxTileRow>173700185</MaxTileRow>
            <MinTileCol>258364757</MinTileCol>
            <MaxTileCol>261624875</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>342604870</MinTileRow>
            <MaxTileRow>347400371</MaxTileRow>
            <MinTileCol>516729514</MinTileCol>
            <MaxTileCol>523249751</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>685209740</MinTileRow>
            <MaxTileRow>694800743</MaxTileRow>
            <MinTileCol>1033459029</MinTileCol>
            <MaxTileCol>1046499503</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:current_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:current_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:current_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:current_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:current_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:current_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:current_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:current_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:current_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:current_wetlands/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:current_wetlands/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>diff_2</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.4534584567928 -35.48987896271938</ows:LowerCorner>
        <ows:UpperCorner>173.47177938203296 -35.45614597791854</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-dt-model-outputs:diff_2</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-dt-model-outputs%3Adiff_2" 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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>44</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>89</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>178</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>356</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>713</MinTileRow>
            <MaxTileRow>713</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1427</MinTileRow>
            <MaxTileRow>1427</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2854</MinTileRow>
            <MaxTileRow>2855</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5709</MinTileRow>
            <MaxTileRow>5711</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11419</MinTileRow>
            <MaxTileRow>11422</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22838</MinTileRow>
            <MaxTileRow>22844</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45677</MinTileRow>
            <MaxTileRow>45689</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91354</MinTileRow>
            <MaxTileRow>91378</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182708</MinTileRow>
            <MaxTileRow>182757</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>365417</MinTileRow>
            <MaxTileRow>365515</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>730835</MinTileRow>
            <MaxTileRow>731031</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1461670</MinTileRow>
            <MaxTileRow>1462063</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118244</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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>77</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>155</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>310</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>620</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1239</MinTileRow>
            <MaxTileRow>1240</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2479</MinTileRow>
            <MaxTileRow>2480</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4959</MinTileRow>
            <MaxTileRow>4960</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9919</MinTileRow>
            <MaxTileRow>9921</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19839</MinTileRow>
            <MaxTileRow>19843</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39678</MinTileRow>
            <MaxTileRow>39686</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79357</MinTileRow>
            <MaxTileRow>79373</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158715</MinTileRow>
            <MaxTileRow>158746</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317431</MinTileRow>
            <MaxTileRow>317492</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634863</MinTileRow>
            <MaxTileRow>634984</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1269727</MinTileRow>
            <MaxTileRow>1269968</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2539455</MinTileRow>
            <MaxTileRow>2539937</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118244</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5078910</MinTileRow>
            <MaxTileRow>5079875</MaxTileRow>
            <MinTileCol>8236062</MinTileCol>
            <MaxTileCol>8236489</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10157821</MinTileRow>
            <MaxTileRow>10159751</MaxTileRow>
            <MinTileCol>16472125</MinTileCol>
            <MaxTileCol>16472978</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20315642</MinTileRow>
            <MaxTileRow>20319503</MaxTileRow>
            <MinTileCol>32944250</MinTileCol>
            <MaxTileCol>32945957</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40631284</MinTileRow>
            <MaxTileRow>40639006</MaxTileRow>
            <MinTileCol>65888500</MinTileCol>
            <MaxTileCol>65891915</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81262569</MinTileRow>
            <MaxTileRow>81278012</MaxTileRow>
            <MinTileCol>131777000</MinTileCol>
            <MaxTileCol>131783830</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162525138</MinTileRow>
            <MaxTileRow>162556024</MaxTileRow>
            <MinTileCol>263554000</MinTileCol>
            <MaxTileCol>263567661</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>325050277</MinTileRow>
            <MaxTileRow>325112049</MaxTileRow>
            <MinTileCol>527108001</MinTileCol>
            <MaxTileCol>527135323</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>650100554</MinTileRow>
            <MaxTileRow>650224098</MaxTileRow>
            <MinTileCol>1054216003</MinTileCol>
            <MaxTileCol>1054270647</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_2/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_2/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>region_geometry</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-180.0 -47.839734278747386</ows:LowerCorner>
        <ows:UpperCorner>180.0 -33.559983564693404</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>input_layers:region_geometry</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>generic</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=input_layers%3Aregion_geometry" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>21</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>43</MinTileRow>
            <MaxTileRow>49</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>87</MinTileRow>
            <MaxTileRow>98</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>175</MinTileRow>
            <MaxTileRow>196</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>351</MinTileRow>
            <MaxTileRow>392</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>702</MinTileRow>
            <MaxTileRow>784</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1405</MinTileRow>
            <MaxTileRow>1568</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2811</MinTileRow>
            <MaxTileRow>3136</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5623</MinTileRow>
            <MaxTileRow>6273</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11246</MinTileRow>
            <MaxTileRow>12546</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22493</MinTileRow>
            <MaxTileRow>25092</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>44986</MinTileRow>
            <MaxTileRow>50185</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>89973</MinTileRow>
            <MaxTileRow>100371</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>179947</MinTileRow>
            <MaxTileRow>200743</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>359894</MinTileRow>
            <MaxTileRow>401487</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>719789</MinTileRow>
            <MaxTileRow>802974</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1439578</MinTileRow>
            <MaxTileRow>1605949</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4194303</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>306</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>613</MinTileRow>
            <MaxTileRow>667</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1226</MinTileRow>
            <MaxTileRow>1334</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2453</MinTileRow>
            <MaxTileRow>2669</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4907</MinTileRow>
            <MaxTileRow>5338</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9815</MinTileRow>
            <MaxTileRow>10677</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19630</MinTileRow>
            <MaxTileRow>21355</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39260</MinTileRow>
            <MaxTileRow>42711</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>65534</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78520</MinTileRow>
            <MaxTileRow>85422</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>131069</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157040</MinTileRow>
            <MaxTileRow>170844</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>262139</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314080</MinTileRow>
            <MaxTileRow>341689</MaxTileRow>
            <MinTileCol>495</MinTileCol>
            <MaxTileCol>524279</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>628160</MinTileRow>
            <MaxTileRow>683379</MaxTileRow>
            <MinTileCol>990</MinTileCol>
            <MaxTileCol>1048558</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1256321</MinTileRow>
            <MaxTileRow>1366758</MaxTileRow>
            <MinTileCol>1981</MinTileCol>
            <MaxTileCol>2097116</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2512643</MinTileRow>
            <MaxTileRow>2733517</MaxTileRow>
            <MinTileCol>3963</MinTileCol>
            <MaxTileCol>4194232</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5025287</MinTileRow>
            <MaxTileRow>5467034</MaxTileRow>
            <MinTileCol>7927</MinTileCol>
            <MaxTileCol>8388464</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10050575</MinTileRow>
            <MaxTileRow>10934069</MaxTileRow>
            <MinTileCol>15854</MinTileCol>
            <MaxTileCol>16776928</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20101150</MinTileRow>
            <MaxTileRow>21868138</MaxTileRow>
            <MinTileCol>31709</MinTileCol>
            <MaxTileCol>33553856</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40202301</MinTileRow>
            <MaxTileRow>43736276</MaxTileRow>
            <MinTileCol>63419</MinTileCol>
            <MaxTileCol>67107712</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80404603</MinTileRow>
            <MaxTileRow>87472552</MaxTileRow>
            <MinTileCol>126838</MinTileCol>
            <MaxTileCol>134215424</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>160809207</MinTileRow>
            <MaxTileRow>174945104</MaxTileRow>
            <MinTileCol>253677</MinTileCol>
            <MaxTileCol>268430848</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>321618415</MinTileRow>
            <MaxTileRow>349890208</MaxTileRow>
            <MinTileCol>507354</MinTileCol>
            <MaxTileCol>536861696</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>643236831</MinTileRow>
            <MaxTileRow>699780417</MaxTileRow>
            <MinTileCol>1014708</MinTileCol>
            <MaxTileCol>1073723392</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>100y_0c_thresholded_0-1_3857</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3147871616959 -43.86954392313133</ows:LowerCorner>
        <ows:UpperCorner>172.38866892073 -43.8346956274462</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:100y_0c_thresholded_0-1_3857</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3A100y_0c_thresholded_0-1_3857" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666498</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332997</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209529</MinTileCol>
            <MaxTileCol>8211251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665994</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419059</MinTileCol>
            <MaxTileCol>16422502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331989</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838118</MinTileCol>
            <MaxTileCol>32845004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663979</MinTileRow>
            <MaxTileRow>42672987</MaxTileRow>
            <MinTileCol>65676236</MinTileCol>
            <MaxTileCol>65690009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327959</MinTileRow>
            <MaxTileRow>85345975</MaxTileRow>
            <MinTileCol>131352472</MinTileCol>
            <MaxTileCol>131380018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655918</MinTileRow>
            <MaxTileRow>170691951</MaxTileRow>
            <MinTileCol>262704945</MinTileCol>
            <MaxTileCol>262760036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311837</MinTileRow>
            <MaxTileRow>341383903</MaxTileRow>
            <MinTileCol>525409891</MinTileCol>
            <MaxTileCol>525520072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623674</MinTileRow>
            <MaxTileRow>682767807</MaxTileRow>
            <MinTileCol>1050819783</MinTileCol>
            <MaxTileCol>1051040144</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>100y_3c_diff_0c</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3147871616959 -43.86954392313133</ows:LowerCorner>
        <ows:UpperCorner>172.38866892073 -43.8346956274462</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:100y_3c_diff_0c</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3A100y_3c_diff_0c" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666498</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332997</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209529</MinTileCol>
            <MaxTileCol>8211251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665994</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419059</MinTileCol>
            <MaxTileCol>16422502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331989</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838118</MinTileCol>
            <MaxTileCol>32845004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663979</MinTileRow>
            <MaxTileRow>42672987</MaxTileRow>
            <MinTileCol>65676236</MinTileCol>
            <MaxTileCol>65690009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327959</MinTileRow>
            <MaxTileRow>85345975</MaxTileRow>
            <MinTileCol>131352472</MinTileCol>
            <MaxTileCol>131380018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655918</MinTileRow>
            <MaxTileRow>170691951</MaxTileRow>
            <MinTileCol>262704945</MinTileCol>
            <MaxTileCol>262760036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311837</MinTileRow>
            <MaxTileRow>341383903</MaxTileRow>
            <MinTileCol>525409891</MinTileCol>
            <MaxTileCol>525520072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623674</MinTileRow>
            <MaxTileRow>682767807</MaxTileRow>
            <MinTileCol>1050819783</MinTileCol>
            <MaxTileCol>1051040144</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>scenario2_90yr_hightide_max</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.4534584567928 -35.48990102842357</ows:LowerCorner>
        <ows:UpperCorner>173.47181592548583 -35.45614597791854</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:scenario2_90yr_hightide_max</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Ascenario2_90yr_hightide_max" 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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>44</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>89</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>178</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>356</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>713</MinTileRow>
            <MaxTileRow>713</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1427</MinTileRow>
            <MaxTileRow>1427</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2854</MinTileRow>
            <MaxTileRow>2855</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5709</MinTileRow>
            <MaxTileRow>5711</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11419</MinTileRow>
            <MaxTileRow>11422</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22838</MinTileRow>
            <MaxTileRow>22844</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45677</MinTileRow>
            <MaxTileRow>45689</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91354</MinTileRow>
            <MaxTileRow>91378</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182708</MinTileRow>
            <MaxTileRow>182757</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>365417</MinTileRow>
            <MaxTileRow>365515</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>730835</MinTileRow>
            <MaxTileRow>731031</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1461670</MinTileRow>
            <MaxTileRow>1462063</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118245</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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>77</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>155</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>310</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>620</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1239</MinTileRow>
            <MaxTileRow>1240</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2479</MinTileRow>
            <MaxTileRow>2480</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4959</MinTileRow>
            <MaxTileRow>4960</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9919</MinTileRow>
            <MaxTileRow>9921</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19839</MinTileRow>
            <MaxTileRow>19843</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39678</MinTileRow>
            <MaxTileRow>39686</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79357</MinTileRow>
            <MaxTileRow>79373</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158715</MinTileRow>
            <MaxTileRow>158746</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317431</MinTileRow>
            <MaxTileRow>317492</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634863</MinTileRow>
            <MaxTileRow>634984</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1269727</MinTileRow>
            <MaxTileRow>1269969</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2539455</MinTileRow>
            <MaxTileRow>2539938</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118245</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5078910</MinTileRow>
            <MaxTileRow>5079876</MaxTileRow>
            <MinTileCol>8236062</MinTileCol>
            <MaxTileCol>8236490</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10157821</MinTileRow>
            <MaxTileRow>10159752</MaxTileRow>
            <MinTileCol>16472125</MinTileCol>
            <MaxTileCol>16472980</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20315642</MinTileRow>
            <MaxTileRow>20319505</MaxTileRow>
            <MinTileCol>32944250</MinTileCol>
            <MaxTileCol>32945961</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40631284</MinTileRow>
            <MaxTileRow>40639011</MaxTileRow>
            <MinTileCol>65888500</MinTileCol>
            <MaxTileCol>65891922</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81262569</MinTileRow>
            <MaxTileRow>81278022</MaxTileRow>
            <MinTileCol>131777000</MinTileCol>
            <MaxTileCol>131783844</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162525138</MinTileRow>
            <MaxTileRow>162556044</MaxTileRow>
            <MinTileCol>263554000</MinTileCol>
            <MaxTileCol>263567689</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>325050277</MinTileRow>
            <MaxTileRow>325112089</MaxTileRow>
            <MinTileCol>527108001</MinTileCol>
            <MaxTileCol>527135378</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>650100554</MinTileRow>
            <MaxTileRow>650224178</MaxTileRow>
            <MinTileCol>1054216003</MinTileCol>
            <MaxTileCol>1054270756</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_90yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_90yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_90yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_90yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_90yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_90yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_90yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_90yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_90yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_90yr_hightide_max/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_90yr_hightide_max/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>injection_points</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.4535290525972 -35.489864831363</ows:LowerCorner>
        <ows:UpperCorner>173.47177161694856 -35.460870804836816</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-flood-model-inputs:injection_points</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>point</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-flood-model-inputs%3Ainjection_points" 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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>44</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>89</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>178</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>356</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>713</MinTileRow>
            <MaxTileRow>713</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1427</MinTileRow>
            <MaxTileRow>1427</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2854</MinTileRow>
            <MaxTileRow>2855</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5709</MinTileRow>
            <MaxTileRow>5711</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11419</MinTileRow>
            <MaxTileRow>11422</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22839</MinTileRow>
            <MaxTileRow>22844</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45678</MinTileRow>
            <MaxTileRow>45689</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91357</MinTileRow>
            <MaxTileRow>91378</MaxTileRow>
            <MinTileCol>257377</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182715</MinTileRow>
            <MaxTileRow>182757</MaxTileRow>
            <MinTileCol>514754</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>365431</MinTileRow>
            <MaxTileRow>365515</MaxTileRow>
            <MinTileCol>1029508</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>730862</MinTileRow>
            <MaxTileRow>731031</MaxTileRow>
            <MinTileCol>2059016</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1461725</MinTileRow>
            <MaxTileRow>1462062</MaxTileRow>
            <MinTileCol>4118032</MinTileCol>
            <MaxTileCol>4118244</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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>77</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>155</MinTileRow>
            <MaxTileRow>155</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>310</MinTileRow>
            <MaxTileRow>310</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>620</MinTileRow>
            <MaxTileRow>620</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1240</MinTileRow>
            <MaxTileRow>1240</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2480</MinTileRow>
            <MaxTileRow>2480</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4960</MinTileRow>
            <MaxTileRow>4960</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9920</MinTileRow>
            <MaxTileRow>9921</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19840</MinTileRow>
            <MaxTileRow>19843</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39680</MinTileRow>
            <MaxTileRow>39686</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79360</MinTileRow>
            <MaxTileRow>79373</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158720</MinTileRow>
            <MaxTileRow>158746</MaxTileRow>
            <MinTileCol>257377</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317440</MinTileRow>
            <MaxTileRow>317492</MaxTileRow>
            <MinTileCol>514754</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634880</MinTileRow>
            <MaxTileRow>634984</MaxTileRow>
            <MinTileCol>1029508</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1269761</MinTileRow>
            <MaxTileRow>1269968</MaxTileRow>
            <MinTileCol>2059016</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2539522</MinTileRow>
            <MaxTileRow>2539937</MaxTileRow>
            <MinTileCol>4118032</MinTileCol>
            <MaxTileCol>4118244</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5079045</MinTileRow>
            <MaxTileRow>5079875</MaxTileRow>
            <MinTileCol>8236064</MinTileCol>
            <MaxTileCol>8236489</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10158091</MinTileRow>
            <MaxTileRow>10159750</MaxTileRow>
            <MinTileCol>16472128</MinTileCol>
            <MaxTileCol>16472978</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20316182</MinTileRow>
            <MaxTileRow>20319501</MaxTileRow>
            <MinTileCol>32944256</MinTileCol>
            <MaxTileCol>32945957</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40632365</MinTileRow>
            <MaxTileRow>40639002</MaxTileRow>
            <MinTileCol>65888513</MinTileCol>
            <MaxTileCol>65891914</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81264731</MinTileRow>
            <MaxTileRow>81278005</MaxTileRow>
            <MinTileCol>131777026</MinTileCol>
            <MaxTileCol>131783828</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162529463</MinTileRow>
            <MaxTileRow>162556011</MaxTileRow>
            <MinTileCol>263554053</MinTileCol>
            <MaxTileCol>263567656</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>325058927</MinTileRow>
            <MaxTileRow>325112023</MaxTileRow>
            <MinTileCol>527108106</MinTileCol>
            <MaxTileCol>527135312</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>650117855</MinTileRow>
            <MaxTileRow>650224046</MaxTileRow>
            <MinTileCol>1054216213</MinTileCol>
            <MaxTileCol>1054270624</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-flood-model-inputs:injection_points/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-flood-model-inputs:injection_points/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-flood-model-inputs:injection_points/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-flood-model-inputs:injection_points/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-flood-model-inputs:injection_points/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-flood-model-inputs:injection_points/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-flood-model-inputs:injection_points/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-flood-model-inputs:injection_points/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-flood-model-inputs:injection_points/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-flood-model-inputs:injection_points/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-flood-model-inputs:injection_points/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>scenario4_90yr_hightide_slr_6m_max</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.4534584567928 -35.48990102842357</ows:LowerCorner>
        <ows:UpperCorner>173.47181592548583 -35.45614597791854</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:scenario4_90yr_hightide_slr_6m_max</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Ascenario4_90yr_hightide_slr_6m_max" 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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>44</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>89</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>178</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>356</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>713</MinTileRow>
            <MaxTileRow>713</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1427</MinTileRow>
            <MaxTileRow>1427</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2854</MinTileRow>
            <MaxTileRow>2855</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5709</MinTileRow>
            <MaxTileRow>5711</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11419</MinTileRow>
            <MaxTileRow>11422</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22838</MinTileRow>
            <MaxTileRow>22844</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45677</MinTileRow>
            <MaxTileRow>45689</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91354</MinTileRow>
            <MaxTileRow>91378</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182708</MinTileRow>
            <MaxTileRow>182757</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>365417</MinTileRow>
            <MaxTileRow>365515</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>730835</MinTileRow>
            <MaxTileRow>731031</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1461670</MinTileRow>
            <MaxTileRow>1462063</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118245</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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>77</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>155</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>310</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>620</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1239</MinTileRow>
            <MaxTileRow>1240</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2479</MinTileRow>
            <MaxTileRow>2480</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4959</MinTileRow>
            <MaxTileRow>4960</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9919</MinTileRow>
            <MaxTileRow>9921</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19839</MinTileRow>
            <MaxTileRow>19843</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39678</MinTileRow>
            <MaxTileRow>39686</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79357</MinTileRow>
            <MaxTileRow>79373</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158715</MinTileRow>
            <MaxTileRow>158746</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317431</MinTileRow>
            <MaxTileRow>317492</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634863</MinTileRow>
            <MaxTileRow>634984</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1269727</MinTileRow>
            <MaxTileRow>1269969</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2539455</MinTileRow>
            <MaxTileRow>2539938</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118245</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5078910</MinTileRow>
            <MaxTileRow>5079876</MaxTileRow>
            <MinTileCol>8236062</MinTileCol>
            <MaxTileCol>8236490</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10157821</MinTileRow>
            <MaxTileRow>10159752</MaxTileRow>
            <MinTileCol>16472125</MinTileCol>
            <MaxTileCol>16472980</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20315642</MinTileRow>
            <MaxTileRow>20319505</MaxTileRow>
            <MinTileCol>32944250</MinTileCol>
            <MaxTileCol>32945961</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40631284</MinTileRow>
            <MaxTileRow>40639011</MaxTileRow>
            <MinTileCol>65888500</MinTileCol>
            <MaxTileCol>65891922</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81262569</MinTileRow>
            <MaxTileRow>81278022</MaxTileRow>
            <MinTileCol>131777000</MinTileCol>
            <MaxTileCol>131783844</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162525138</MinTileRow>
            <MaxTileRow>162556044</MaxTileRow>
            <MinTileCol>263554000</MinTileCol>
            <MaxTileCol>263567689</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>325050277</MinTileRow>
            <MaxTileRow>325112089</MaxTileRow>
            <MinTileCol>527108001</MinTileCol>
            <MaxTileCol>527135378</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>650100554</MinTileRow>
            <MaxTileRow>650224178</MaxTileRow>
            <MinTileCol>1054216003</MinTileCol>
            <MaxTileCol>1054270756</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_90yr_hightide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_90yr_hightide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_90yr_hightide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_90yr_hightide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_90yr_hightide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_90yr_hightide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_90yr_hightide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_90yr_hightide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_90yr_hightide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_90yr_hightide_slr_6m_max/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_90yr_hightide_slr_6m_max/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>nz_building_outlines</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.61447522618414 -43.421260327803</ows:LowerCorner>
        <ows:UpperCorner>173.5285312124849 -35.45900614815595</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-buildings:nz_building_outlines</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-buildings%3Anz_building_outlines" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>22</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>94</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>189</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>379</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>713</MinTileRow>
            <MaxTileRow>759</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2011</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1427</MinTileRow>
            <MaxTileRow>1518</MaxTileRow>
            <MinTileCol>4011</MinTileCol>
            <MaxTileCol>4022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2854</MinTileRow>
            <MaxTileRow>3036</MaxTileRow>
            <MinTileCol>8023</MinTileCol>
            <MaxTileCol>8044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5709</MinTileRow>
            <MaxTileRow>6072</MaxTileRow>
            <MinTileCol>16047</MinTileCol>
            <MaxTileCol>16089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11419</MinTileRow>
            <MaxTileRow>12144</MaxTileRow>
            <MinTileCol>32095</MinTileCol>
            <MaxTileCol>32178</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22839</MinTileRow>
            <MaxTileRow>24288</MaxTileRow>
            <MinTileCol>64191</MinTileCol>
            <MaxTileCol>64357</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45678</MinTileRow>
            <MaxTileRow>48577</MaxTileRow>
            <MinTileCol>128383</MinTileCol>
            <MaxTileCol>128715</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91356</MinTileRow>
            <MaxTileRow>97154</MaxTileRow>
            <MinTileCol>256766</MinTileCol>
            <MaxTileCol>257431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182712</MinTileRow>
            <MaxTileRow>194308</MaxTileRow>
            <MinTileCol>513532</MinTileCol>
            <MaxTileCol>514863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>365425</MinTileRow>
            <MaxTileRow>388617</MaxTileRow>
            <MinTileCol>1027064</MinTileCol>
            <MaxTileCol>1029726</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>730851</MinTileRow>
            <MaxTileRow>777235</MaxTileRow>
            <MinTileCol>2054128</MinTileCol>
            <MaxTileCol>2059452</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1461703</MinTileRow>
            <MaxTileRow>1554470</MaxTileRow>
            <MinTileCol>4108256</MinTileCol>
            <MaxTileCol>4118905</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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>324</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>649</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1239</MinTileRow>
            <MaxTileRow>1298</MaxTileRow>
            <MinTileCol>2005</MinTileCol>
            <MaxTileCol>2011</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2479</MinTileRow>
            <MaxTileRow>2597</MaxTileRow>
            <MinTileCol>4011</MinTileCol>
            <MaxTileCol>4022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4959</MinTileRow>
            <MaxTileRow>5195</MaxTileRow>
            <MinTileCol>8023</MinTileCol>
            <MaxTileCol>8044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9919</MinTileRow>
            <MaxTileRow>10390</MaxTileRow>
            <MinTileCol>16047</MinTileCol>
            <MaxTileCol>16089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19839</MinTileRow>
            <MaxTileRow>20780</MaxTileRow>
            <MinTileCol>32095</MinTileCol>
            <MaxTileCol>32178</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39679</MinTileRow>
            <MaxTileRow>41560</MaxTileRow>
            <MinTileCol>64191</MinTileCol>
            <MaxTileCol>64357</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79359</MinTileRow>
            <MaxTileRow>83120</MaxTileRow>
            <MinTileCol>128383</MinTileCol>
            <MaxTileCol>128715</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158718</MinTileRow>
            <MaxTileRow>166240</MaxTileRow>
            <MinTileCol>256766</MinTileCol>
            <MaxTileCol>257431</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317437</MinTileRow>
            <MaxTileRow>332480</MaxTileRow>
            <MinTileCol>513532</MinTileCol>
            <MaxTileCol>514863</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634874</MinTileRow>
            <MaxTileRow>664961</MaxTileRow>
            <MinTileCol>1027064</MinTileCol>
            <MaxTileCol>1029726</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1269748</MinTileRow>
            <MaxTileRow>1329922</MaxTileRow>
            <MinTileCol>2054128</MinTileCol>
            <MaxTileCol>2059452</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2539496</MinTileRow>
            <MaxTileRow>2659844</MaxTileRow>
            <MinTileCol>4108256</MinTileCol>
            <MaxTileCol>4118905</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5078992</MinTileRow>
            <MaxTileRow>5319688</MaxTileRow>
            <MinTileCol>8216512</MinTileCol>
            <MaxTileCol>8237811</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10157984</MinTileRow>
            <MaxTileRow>10639376</MaxTileRow>
            <MinTileCol>16433025</MinTileCol>
            <MaxTileCol>16475623</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20315969</MinTileRow>
            <MaxTileRow>21278752</MaxTileRow>
            <MinTileCol>32866051</MinTileCol>
            <MaxTileCol>32951247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40631939</MinTileRow>
            <MaxTileRow>42557504</MaxTileRow>
            <MinTileCol>65732102</MinTileCol>
            <MaxTileCol>65902494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81263878</MinTileRow>
            <MaxTileRow>85115009</MaxTileRow>
            <MinTileCol>131464204</MinTileCol>
            <MaxTileCol>131804989</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162527756</MinTileRow>
            <MaxTileRow>170230018</MaxTileRow>
            <MinTileCol>262928409</MinTileCol>
            <MaxTileCol>263609979</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>325055513</MinTileRow>
            <MaxTileRow>340460036</MaxTileRow>
            <MinTileCol>525856819</MinTileCol>
            <MaxTileCol>527219958</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>650111027</MinTileRow>
            <MaxTileRow>680920072</MaxTileRow>
            <MinTileCol>1051713638</MinTileCol>
            <MaxTileCol>1054439916</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>scenario1_past_event_noSLR_10_year_max</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.4534584567928 -35.48990102842357</ows:LowerCorner>
        <ows:UpperCorner>173.47181592548583 -35.45614597791854</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:scenario1_past_event_noSLR_10_year_max</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Ascenario1_past_event_noSLR_10_year_max" 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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>44</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>89</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>178</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>356</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>713</MinTileRow>
            <MaxTileRow>713</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1427</MinTileRow>
            <MaxTileRow>1427</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2854</MinTileRow>
            <MaxTileRow>2855</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5709</MinTileRow>
            <MaxTileRow>5711</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11419</MinTileRow>
            <MaxTileRow>11422</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22838</MinTileRow>
            <MaxTileRow>22844</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45677</MinTileRow>
            <MaxTileRow>45689</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91354</MinTileRow>
            <MaxTileRow>91378</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182708</MinTileRow>
            <MaxTileRow>182757</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>365417</MinTileRow>
            <MaxTileRow>365515</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>730835</MinTileRow>
            <MaxTileRow>731031</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1461670</MinTileRow>
            <MaxTileRow>1462063</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118245</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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>77</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>155</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>310</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>620</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1239</MinTileRow>
            <MaxTileRow>1240</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2479</MinTileRow>
            <MaxTileRow>2480</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4959</MinTileRow>
            <MaxTileRow>4960</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9919</MinTileRow>
            <MaxTileRow>9921</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19839</MinTileRow>
            <MaxTileRow>19843</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39678</MinTileRow>
            <MaxTileRow>39686</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79357</MinTileRow>
            <MaxTileRow>79373</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158715</MinTileRow>
            <MaxTileRow>158746</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317431</MinTileRow>
            <MaxTileRow>317492</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634863</MinTileRow>
            <MaxTileRow>634984</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1269727</MinTileRow>
            <MaxTileRow>1269969</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2539455</MinTileRow>
            <MaxTileRow>2539938</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118245</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5078910</MinTileRow>
            <MaxTileRow>5079876</MaxTileRow>
            <MinTileCol>8236062</MinTileCol>
            <MaxTileCol>8236490</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10157821</MinTileRow>
            <MaxTileRow>10159752</MaxTileRow>
            <MinTileCol>16472125</MinTileCol>
            <MaxTileCol>16472980</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20315642</MinTileRow>
            <MaxTileRow>20319505</MaxTileRow>
            <MinTileCol>32944250</MinTileCol>
            <MaxTileCol>32945961</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40631284</MinTileRow>
            <MaxTileRow>40639011</MaxTileRow>
            <MinTileCol>65888500</MinTileCol>
            <MaxTileCol>65891922</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81262569</MinTileRow>
            <MaxTileRow>81278022</MaxTileRow>
            <MinTileCol>131777000</MinTileCol>
            <MaxTileCol>131783844</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162525138</MinTileRow>
            <MaxTileRow>162556044</MaxTileRow>
            <MinTileCol>263554000</MinTileCol>
            <MaxTileCol>263567689</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>325050277</MinTileRow>
            <MaxTileRow>325112089</MaxTileRow>
            <MinTileCol>527108001</MinTileCol>
            <MaxTileCol>527135378</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>650100554</MinTileRow>
            <MaxTileRow>650224178</MaxTileRow>
            <MinTileCol>1054216003</MinTileCol>
            <MaxTileCol>1054270756</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_10_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_10_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_10_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_10_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_10_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_10_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_10_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_10_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_10_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_10_year_max/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_10_year_max/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>roads</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.28435701636423 -43.87111426914291</ows:LowerCorner>
        <ows:UpperCorner>172.37260786343467 -43.82885749493583</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:roads</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Aroads" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32065</MinTileCol>
            <MaxTileCol>32073</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24362</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64131</MinTileCol>
            <MaxTileCol>64147</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48725</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128262</MinTileCol>
            <MaxTileCol>128294</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97451</MinTileRow>
            <MaxTileRow>97481</MaxTileRow>
            <MinTileCol>256525</MinTileCol>
            <MaxTileCol>256589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194902</MinTileRow>
            <MaxTileRow>194963</MaxTileRow>
            <MinTileCol>513051</MinTileCol>
            <MaxTileCol>513179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389804</MinTileRow>
            <MaxTileRow>389927</MaxTileRow>
            <MinTileCol>1026102</MinTileCol>
            <MaxTileCol>1026359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779609</MinTileRow>
            <MaxTileRow>779855</MaxTileRow>
            <MinTileCol>2052205</MinTileCol>
            <MaxTileCol>2052719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559219</MinTileRow>
            <MaxTileRow>1559711</MaxTileRow>
            <MinTileCol>4104410</MinTileCol>
            <MaxTileCol>4105438</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>650</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1301</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2603</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5207</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10415</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20831</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32065</MinTileCol>
            <MaxTileCol>32073</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41662</MinTileRow>
            <MaxTileRow>41673</MaxTileRow>
            <MinTileCol>64131</MinTileCol>
            <MaxTileCol>64147</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83325</MinTileRow>
            <MaxTileRow>83346</MaxTileRow>
            <MinTileCol>128262</MinTileCol>
            <MaxTileCol>128294</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166650</MinTileRow>
            <MaxTileRow>166692</MaxTileRow>
            <MinTileCol>256525</MinTileCol>
            <MaxTileCol>256589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333300</MinTileRow>
            <MaxTileRow>333385</MaxTileRow>
            <MinTileCol>513051</MinTileCol>
            <MaxTileCol>513179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666601</MinTileRow>
            <MaxTileRow>666771</MaxTileRow>
            <MinTileCol>1026102</MinTileCol>
            <MaxTileCol>1026359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333202</MinTileRow>
            <MaxTileRow>1333543</MaxTileRow>
            <MinTileCol>2052205</MinTileCol>
            <MaxTileCol>2052719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666404</MinTileRow>
            <MaxTileRow>2667087</MaxTileRow>
            <MinTileCol>4104410</MinTileCol>
            <MaxTileCol>4105438</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332808</MinTileRow>
            <MaxTileRow>5334174</MaxTileRow>
            <MinTileCol>8208820</MinTileCol>
            <MaxTileCol>8210876</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665617</MinTileRow>
            <MaxTileRow>10668348</MaxTileRow>
            <MinTileCol>16417640</MinTileCol>
            <MaxTileCol>16421753</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331235</MinTileRow>
            <MaxTileRow>21336697</MaxTileRow>
            <MinTileCol>32835281</MinTileCol>
            <MaxTileCol>32843507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42662470</MinTileRow>
            <MaxTileRow>42673394</MaxTileRow>
            <MinTileCol>65670563</MinTileCol>
            <MaxTileCol>65687015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85324941</MinTileRow>
            <MaxTileRow>85346788</MaxTileRow>
            <MinTileCol>131341127</MinTileCol>
            <MaxTileCol>131374030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170649883</MinTileRow>
            <MaxTileRow>170693576</MaxTileRow>
            <MinTileCol>262682255</MinTileCol>
            <MaxTileCol>262748060</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341299767</MinTileRow>
            <MaxTileRow>341387152</MaxTileRow>
            <MinTileCol>525364511</MinTileCol>
            <MaxTileCol>525496120</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682599535</MinTileRow>
            <MaxTileRow>682774304</MaxTileRow>
            <MinTileCol>1050729022</MinTileCol>
            <MaxTileCol>1050992240</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>scenario5_90yr_lowtide_slr_6m_max</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.4534584567928 -35.48990102842357</ows:LowerCorner>
        <ows:UpperCorner>173.47181592548583 -35.45614597791854</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:scenario5_90yr_lowtide_slr_6m_max</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Ascenario5_90yr_lowtide_slr_6m_max" 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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>44</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>89</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>178</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>356</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>713</MinTileRow>
            <MaxTileRow>713</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1427</MinTileRow>
            <MaxTileRow>1427</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2854</MinTileRow>
            <MaxTileRow>2855</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5709</MinTileRow>
            <MaxTileRow>5711</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11419</MinTileRow>
            <MaxTileRow>11422</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22838</MinTileRow>
            <MaxTileRow>22844</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45677</MinTileRow>
            <MaxTileRow>45689</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91354</MinTileRow>
            <MaxTileRow>91378</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182708</MinTileRow>
            <MaxTileRow>182757</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>365417</MinTileRow>
            <MaxTileRow>365515</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>730835</MinTileRow>
            <MaxTileRow>731031</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1461670</MinTileRow>
            <MaxTileRow>1462063</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118245</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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>77</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>155</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>310</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>620</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1239</MinTileRow>
            <MaxTileRow>1240</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2479</MinTileRow>
            <MaxTileRow>2480</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4959</MinTileRow>
            <MaxTileRow>4960</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9919</MinTileRow>
            <MaxTileRow>9921</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19839</MinTileRow>
            <MaxTileRow>19843</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39678</MinTileRow>
            <MaxTileRow>39686</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79357</MinTileRow>
            <MaxTileRow>79373</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158715</MinTileRow>
            <MaxTileRow>158746</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317431</MinTileRow>
            <MaxTileRow>317492</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634863</MinTileRow>
            <MaxTileRow>634984</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1269727</MinTileRow>
            <MaxTileRow>1269969</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2539455</MinTileRow>
            <MaxTileRow>2539938</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118245</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5078910</MinTileRow>
            <MaxTileRow>5079876</MaxTileRow>
            <MinTileCol>8236062</MinTileCol>
            <MaxTileCol>8236490</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10157821</MinTileRow>
            <MaxTileRow>10159752</MaxTileRow>
            <MinTileCol>16472125</MinTileCol>
            <MaxTileCol>16472980</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20315642</MinTileRow>
            <MaxTileRow>20319505</MaxTileRow>
            <MinTileCol>32944250</MinTileCol>
            <MaxTileCol>32945961</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40631284</MinTileRow>
            <MaxTileRow>40639011</MaxTileRow>
            <MinTileCol>65888500</MinTileCol>
            <MaxTileCol>65891922</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81262569</MinTileRow>
            <MaxTileRow>81278022</MaxTileRow>
            <MinTileCol>131777000</MinTileCol>
            <MaxTileCol>131783844</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162525138</MinTileRow>
            <MaxTileRow>162556044</MaxTileRow>
            <MinTileCol>263554000</MinTileCol>
            <MaxTileCol>263567689</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>325050277</MinTileRow>
            <MaxTileRow>325112089</MaxTileRow>
            <MinTileCol>527108001</MinTileCol>
            <MaxTileCol>527135378</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>650100554</MinTileRow>
            <MaxTileRow>650224178</MaxTileRow>
            <MinTileCol>1054216003</MinTileCol>
            <MaxTileCol>1054270756</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_90yr_lowtide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_90yr_lowtide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_90yr_lowtide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_90yr_lowtide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_90yr_lowtide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_90yr_lowtide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_90yr_lowtide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_90yr_lowtide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_90yr_lowtide_slr_6m_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_90yr_lowtide_slr_6m_max/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_90yr_lowtide_slr_6m_max/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>output_1</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.4534584567928 -35.48987896271938</ows:LowerCorner>
        <ows:UpperCorner>173.47177938203296 -35.45614597791854</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-dt-model-outputs:output_1</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-dt-model-outputs%3Aoutput_1" 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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>44</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>89</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>178</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>356</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>713</MinTileRow>
            <MaxTileRow>713</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1427</MinTileRow>
            <MaxTileRow>1427</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2854</MinTileRow>
            <MaxTileRow>2855</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5709</MinTileRow>
            <MaxTileRow>5711</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11419</MinTileRow>
            <MaxTileRow>11422</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22838</MinTileRow>
            <MaxTileRow>22844</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45677</MinTileRow>
            <MaxTileRow>45689</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91354</MinTileRow>
            <MaxTileRow>91378</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182708</MinTileRow>
            <MaxTileRow>182757</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>365417</MinTileRow>
            <MaxTileRow>365515</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>730835</MinTileRow>
            <MaxTileRow>731031</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1461670</MinTileRow>
            <MaxTileRow>1462063</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118244</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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>77</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>155</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>310</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>620</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1239</MinTileRow>
            <MaxTileRow>1240</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2479</MinTileRow>
            <MaxTileRow>2480</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4959</MinTileRow>
            <MaxTileRow>4960</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9919</MinTileRow>
            <MaxTileRow>9921</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19839</MinTileRow>
            <MaxTileRow>19843</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39678</MinTileRow>
            <MaxTileRow>39686</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79357</MinTileRow>
            <MaxTileRow>79373</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158715</MinTileRow>
            <MaxTileRow>158746</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317431</MinTileRow>
            <MaxTileRow>317492</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634863</MinTileRow>
            <MaxTileRow>634984</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1269727</MinTileRow>
            <MaxTileRow>1269968</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2539455</MinTileRow>
            <MaxTileRow>2539937</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118244</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5078910</MinTileRow>
            <MaxTileRow>5079875</MaxTileRow>
            <MinTileCol>8236062</MinTileCol>
            <MaxTileCol>8236489</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10157821</MinTileRow>
            <MaxTileRow>10159751</MaxTileRow>
            <MinTileCol>16472125</MinTileCol>
            <MaxTileCol>16472978</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20315642</MinTileRow>
            <MaxTileRow>20319503</MaxTileRow>
            <MinTileCol>32944250</MinTileCol>
            <MaxTileCol>32945957</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40631284</MinTileRow>
            <MaxTileRow>40639006</MaxTileRow>
            <MinTileCol>65888500</MinTileCol>
            <MaxTileCol>65891915</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81262569</MinTileRow>
            <MaxTileRow>81278012</MaxTileRow>
            <MinTileCol>131777000</MinTileCol>
            <MaxTileCol>131783830</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162525138</MinTileRow>
            <MaxTileRow>162556024</MaxTileRow>
            <MinTileCol>263554000</MinTileCol>
            <MaxTileCol>263567661</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>325050277</MinTileRow>
            <MaxTileRow>325112049</MaxTileRow>
            <MinTileCol>527108001</MinTileCol>
            <MaxTileCol>527135323</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>650100554</MinTileRow>
            <MaxTileRow>650224098</MaxTileRow>
            <MinTileCol>1054216003</MinTileCol>
            <MaxTileCol>1054270647</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_1/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_1/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>output_2</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.4534584567928 -35.48987896271938</ows:LowerCorner>
        <ows:UpperCorner>173.47177938203296 -35.45614597791854</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-dt-model-outputs:output_2</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-dt-model-outputs%3Aoutput_2" 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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>44</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>89</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>178</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>356</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>713</MinTileRow>
            <MaxTileRow>713</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1427</MinTileRow>
            <MaxTileRow>1427</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2854</MinTileRow>
            <MaxTileRow>2855</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5709</MinTileRow>
            <MaxTileRow>5711</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11419</MinTileRow>
            <MaxTileRow>11422</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22838</MinTileRow>
            <MaxTileRow>22844</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45677</MinTileRow>
            <MaxTileRow>45689</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91354</MinTileRow>
            <MaxTileRow>91378</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182708</MinTileRow>
            <MaxTileRow>182757</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>365417</MinTileRow>
            <MaxTileRow>365515</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>730835</MinTileRow>
            <MaxTileRow>731031</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1461670</MinTileRow>
            <MaxTileRow>1462063</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118244</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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>77</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>155</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>310</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>620</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1239</MinTileRow>
            <MaxTileRow>1240</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2479</MinTileRow>
            <MaxTileRow>2480</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4959</MinTileRow>
            <MaxTileRow>4960</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9919</MinTileRow>
            <MaxTileRow>9921</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19839</MinTileRow>
            <MaxTileRow>19843</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39678</MinTileRow>
            <MaxTileRow>39686</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79357</MinTileRow>
            <MaxTileRow>79373</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158715</MinTileRow>
            <MaxTileRow>158746</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317431</MinTileRow>
            <MaxTileRow>317492</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634863</MinTileRow>
            <MaxTileRow>634984</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1269727</MinTileRow>
            <MaxTileRow>1269968</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2539455</MinTileRow>
            <MaxTileRow>2539937</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118244</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5078910</MinTileRow>
            <MaxTileRow>5079875</MaxTileRow>
            <MinTileCol>8236062</MinTileCol>
            <MaxTileCol>8236489</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10157821</MinTileRow>
            <MaxTileRow>10159751</MaxTileRow>
            <MinTileCol>16472125</MinTileCol>
            <MaxTileCol>16472978</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20315642</MinTileRow>
            <MaxTileRow>20319503</MaxTileRow>
            <MinTileCol>32944250</MinTileCol>
            <MaxTileCol>32945957</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40631284</MinTileRow>
            <MaxTileRow>40639006</MaxTileRow>
            <MinTileCol>65888500</MinTileCol>
            <MaxTileCol>65891915</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81262569</MinTileRow>
            <MaxTileRow>81278012</MaxTileRow>
            <MinTileCol>131777000</MinTileCol>
            <MaxTileCol>131783830</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162525138</MinTileRow>
            <MaxTileRow>162556024</MaxTileRow>
            <MinTileCol>263554000</MinTileCol>
            <MaxTileCol>263567661</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>325050277</MinTileRow>
            <MaxTileRow>325112049</MaxTileRow>
            <MinTileCol>527108001</MinTileCol>
            <MaxTileCol>527135323</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>650100554</MinTileRow>
            <MaxTileRow>650224098</MaxTileRow>
            <MinTileCol>1054216003</MinTileCol>
            <MaxTileCol>1054270647</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_2/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_2/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>riparian_forest</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.34374854075054 -46.109998993156125</ows:LowerCorner>
        <ows:UpperCorner>169.28511031230377 -45.12535734080501</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:riparian_forest</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Ariparian_forest" 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>96</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>192</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>495</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>384</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>990</MinTileCol>
            <MaxTileCol>993</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>768</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1981</MinTileCol>
            <MaxTileCol>1987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1537</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3963</MinTileCol>
            <MaxTileCol>3974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3074</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7926</MinTileCol>
            <MaxTileCol>7948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6149</MinTileRow>
            <MaxTileRow>6194</MaxTileRow>
            <MinTileCol>15853</MinTileCol>
            <MaxTileCol>15896</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12299</MinTileRow>
            <MaxTileRow>12389</MaxTileRow>
            <MinTileCol>31707</MinTileCol>
            <MaxTileCol>31792</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24598</MinTileRow>
            <MaxTileRow>24778</MaxTileRow>
            <MinTileCol>63414</MinTileCol>
            <MaxTileCol>63585</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49197</MinTileRow>
            <MaxTileRow>49556</MaxTileRow>
            <MinTileCol>126828</MinTileCol>
            <MaxTileCol>127170</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>98395</MinTileRow>
            <MaxTileRow>99112</MaxTileRow>
            <MinTileCol>253656</MinTileCol>
            <MaxTileCol>254341</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>196790</MinTileRow>
            <MaxTileRow>198224</MaxTileRow>
            <MinTileCol>507312</MinTileCol>
            <MaxTileCol>508683</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>393581</MinTileRow>
            <MaxTileRow>396449</MaxTileRow>
            <MinTileCol>1014624</MinTileCol>
            <MaxTileCol>1017366</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>787162</MinTileRow>
            <MaxTileRow>792898</MaxTileRow>
            <MinTileCol>2029249</MinTileCol>
            <MaxTileCol>2034733</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1574324</MinTileRow>
            <MaxTileRow>1585796</MaxTileRow>
            <MinTileCol>4058498</MinTileCol>
            <MaxTileCol>4069466</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>247</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>328</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>495</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>656</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>990</MinTileCol>
            <MaxTileCol>993</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1312</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1981</MinTileCol>
            <MaxTileCol>1987</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2624</MinTileRow>
            <MaxTileRow>2640</MaxTileRow>
            <MinTileCol>3963</MinTileCol>
            <MaxTileCol>3974</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5249</MinTileRow>
            <MaxTileRow>5281</MaxTileRow>
            <MinTileCol>7926</MinTileCol>
            <MaxTileCol>7948</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10498</MinTileRow>
            <MaxTileRow>10562</MaxTileRow>
            <MinTileCol>15853</MinTileCol>
            <MaxTileCol>15896</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20996</MinTileRow>
            <MaxTileRow>21124</MaxTileRow>
            <MinTileCol>31707</MinTileCol>
            <MaxTileCol>31792</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41993</MinTileRow>
            <MaxTileRow>42249</MaxTileRow>
            <MinTileCol>63414</MinTileCol>
            <MaxTileCol>63585</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83986</MinTileRow>
            <MaxTileRow>84499</MaxTileRow>
            <MinTileCol>126828</MinTileCol>
            <MaxTileCol>127170</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>167973</MinTileRow>
            <MaxTileRow>168998</MaxTileRow>
            <MinTileCol>253656</MinTileCol>
            <MaxTileCol>254341</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>335946</MinTileRow>
            <MaxTileRow>337997</MaxTileRow>
            <MinTileCol>507312</MinTileCol>
            <MaxTileCol>508683</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>671893</MinTileRow>
            <MaxTileRow>675994</MaxTileRow>
            <MinTileCol>1014624</MinTileCol>
            <MaxTileCol>1017366</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1343787</MinTileRow>
            <MaxTileRow>1351988</MaxTileRow>
            <MinTileCol>2029249</MinTileCol>
            <MaxTileCol>2034733</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2687575</MinTileRow>
            <MaxTileRow>2703977</MaxTileRow>
            <MinTileCol>4058498</MinTileCol>
            <MaxTileCol>4069466</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5375151</MinTileRow>
            <MaxTileRow>5407955</MaxTileRow>
            <MinTileCol>8116997</MinTileCol>
            <MaxTileCol>8138932</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10750302</MinTileRow>
            <MaxTileRow>10815910</MaxTileRow>
            <MinTileCol>16233995</MinTileCol>
            <MaxTileCol>16277865</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21500604</MinTileRow>
            <MaxTileRow>21631821</MaxTileRow>
            <MinTileCol>32467990</MinTileCol>
            <MaxTileCol>32555731</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43001209</MinTileRow>
            <MaxTileRow>43263643</MaxTileRow>
            <MinTileCol>64935981</MinTileCol>
            <MaxTileCol>65111463</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86002418</MinTileRow>
            <MaxTileRow>86527286</MaxTileRow>
            <MinTileCol>129871962</MinTileCol>
            <MaxTileCol>130222927</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>172004837</MinTileRow>
            <MaxTileRow>173054573</MaxTileRow>
            <MinTileCol>259743924</MinTileCol>
            <MaxTileCol>260445855</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>344009675</MinTileRow>
            <MaxTileRow>346109146</MaxTileRow>
            <MinTileCol>519487849</MinTileCol>
            <MaxTileCol>520891710</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>688019350</MinTileRow>
            <MaxTileRow>692218292</MaxTileRow>
            <MinTileCol>1038975699</MinTileCol>
            <MaxTileCol>1041783420</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:riparian_forest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:riparian_forest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:riparian_forest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:riparian_forest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:riparian_forest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:riparian_forest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:riparian_forest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:riparian_forest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:riparian_forest/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:riparian_forest/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:riparian_forest/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>scenario3_90yr_lowtide_max</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.4534584567928 -35.48990102842357</ows:LowerCorner>
        <ows:UpperCorner>173.47181592548583 -35.45614597791854</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:scenario3_90yr_lowtide_max</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Ascenario3_90yr_lowtide_max" 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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>44</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>89</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>178</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>356</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>713</MinTileRow>
            <MaxTileRow>713</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1427</MinTileRow>
            <MaxTileRow>1427</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2854</MinTileRow>
            <MaxTileRow>2855</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5709</MinTileRow>
            <MaxTileRow>5711</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11419</MinTileRow>
            <MaxTileRow>11422</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22838</MinTileRow>
            <MaxTileRow>22844</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45677</MinTileRow>
            <MaxTileRow>45689</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91354</MinTileRow>
            <MaxTileRow>91378</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182708</MinTileRow>
            <MaxTileRow>182757</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>365417</MinTileRow>
            <MaxTileRow>365515</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>730835</MinTileRow>
            <MaxTileRow>731031</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1461670</MinTileRow>
            <MaxTileRow>1462063</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118245</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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>77</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>155</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>310</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>620</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1239</MinTileRow>
            <MaxTileRow>1240</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2010</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2479</MinTileRow>
            <MaxTileRow>2480</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4021</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4959</MinTileRow>
            <MaxTileRow>4960</MaxTileRow>
            <MinTileCol>8043</MinTileCol>
            <MaxTileCol>8043</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9919</MinTileRow>
            <MaxTileRow>9921</MaxTileRow>
            <MinTileCol>16086</MinTileCol>
            <MaxTileCol>16086</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19839</MinTileRow>
            <MaxTileRow>19843</MaxTileRow>
            <MinTileCol>32172</MinTileCol>
            <MaxTileCol>32173</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39678</MinTileRow>
            <MaxTileRow>39686</MaxTileRow>
            <MinTileCol>64344</MinTileCol>
            <MaxTileCol>64347</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79357</MinTileRow>
            <MaxTileRow>79373</MaxTileRow>
            <MinTileCol>128688</MinTileCol>
            <MaxTileCol>128695</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158715</MinTileRow>
            <MaxTileRow>158746</MaxTileRow>
            <MinTileCol>257376</MinTileCol>
            <MaxTileCol>257390</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317431</MinTileRow>
            <MaxTileRow>317492</MaxTileRow>
            <MinTileCol>514753</MinTileCol>
            <MaxTileCol>514780</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634863</MinTileRow>
            <MaxTileRow>634984</MaxTileRow>
            <MinTileCol>1029507</MinTileCol>
            <MaxTileCol>1029561</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1269727</MinTileRow>
            <MaxTileRow>1269969</MaxTileRow>
            <MinTileCol>2059015</MinTileCol>
            <MaxTileCol>2059122</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2539455</MinTileRow>
            <MaxTileRow>2539938</MaxTileRow>
            <MinTileCol>4118031</MinTileCol>
            <MaxTileCol>4118245</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5078910</MinTileRow>
            <MaxTileRow>5079876</MaxTileRow>
            <MinTileCol>8236062</MinTileCol>
            <MaxTileCol>8236490</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10157821</MinTileRow>
            <MaxTileRow>10159752</MaxTileRow>
            <MinTileCol>16472125</MinTileCol>
            <MaxTileCol>16472980</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20315642</MinTileRow>
            <MaxTileRow>20319505</MaxTileRow>
            <MinTileCol>32944250</MinTileCol>
            <MaxTileCol>32945961</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40631284</MinTileRow>
            <MaxTileRow>40639011</MaxTileRow>
            <MinTileCol>65888500</MinTileCol>
            <MaxTileCol>65891922</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81262569</MinTileRow>
            <MaxTileRow>81278022</MaxTileRow>
            <MinTileCol>131777000</MinTileCol>
            <MaxTileCol>131783844</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162525138</MinTileRow>
            <MaxTileRow>162556044</MaxTileRow>
            <MinTileCol>263554000</MinTileCol>
            <MaxTileCol>263567689</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>325050277</MinTileRow>
            <MaxTileRow>325112089</MaxTileRow>
            <MinTileCol>527108001</MinTileCol>
            <MaxTileCol>527135378</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>650100554</MinTileRow>
            <MaxTileRow>650224178</MaxTileRow>
            <MinTileCol>1054216003</MinTileCol>
            <MaxTileCol>1054270756</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_90yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_90yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_90yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_90yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_90yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_90yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_90yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_90yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_90yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_90yr_lowtide_max/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_90yr_lowtide_max/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>wflow_catchment_boundary</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>173.4419726787056 -35.53414213386763</ows:LowerCorner>
        <ows:UpperCorner>173.56042788619294 -35.455209877482986</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-intermediate-wflow:wflow_catchment_boundary</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-intermediate-wflow%3Awflow_catchment_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>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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>44</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>89</MinTileRow>
            <MaxTileRow>89</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>178</MinTileRow>
            <MaxTileRow>178</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>356</MinTileRow>
            <MaxTileRow>357</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>713</MinTileRow>
            <MaxTileRow>714</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2011</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1427</MinTileRow>
            <MaxTileRow>1428</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2854</MinTileRow>
            <MaxTileRow>2856</MaxTileRow>
            <MinTileCol>8042</MinTileCol>
            <MaxTileCol>8045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5709</MinTileRow>
            <MaxTileRow>5713</MaxTileRow>
            <MinTileCol>16085</MinTileCol>
            <MaxTileCol>16090</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11419</MinTileRow>
            <MaxTileRow>11426</MaxTileRow>
            <MinTileCol>32171</MinTileCol>
            <MaxTileCol>32181</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22838</MinTileRow>
            <MaxTileRow>22852</MaxTileRow>
            <MinTileCol>64342</MinTileCol>
            <MaxTileCol>64363</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45676</MinTileRow>
            <MaxTileRow>45705</MaxTileRow>
            <MinTileCol>128684</MinTileCol>
            <MaxTileCol>128727</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>91353</MinTileRow>
            <MaxTileRow>91411</MaxTileRow>
            <MinTileCol>257368</MinTileCol>
            <MaxTileCol>257454</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>182707</MinTileRow>
            <MaxTileRow>182822</MaxTileRow>
            <MinTileCol>514737</MinTileCol>
            <MaxTileCol>514909</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>365414</MinTileRow>
            <MaxTileRow>365644</MaxTileRow>
            <MinTileCol>1029474</MinTileCol>
            <MaxTileCol>1029819</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>730829</MinTileRow>
            <MaxTileRow>731289</MaxTileRow>
            <MinTileCol>2058948</MinTileCol>
            <MaxTileCol>2059638</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1461659</MinTileRow>
            <MaxTileRow>1462578</MaxTileRow>
            <MinTileCol>4117897</MinTileCol>
            <MaxTileCol>4119277</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>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>77</MinTileRow>
            <MaxTileRow>77</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>154</MinTileRow>
            <MaxTileRow>155</MaxTileRow>
            <MinTileCol>251</MinTileCol>
            <MaxTileCol>251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>309</MinTileRow>
            <MaxTileRow>310</MaxTileRow>
            <MinTileCol>502</MinTileCol>
            <MaxTileCol>502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>619</MinTileRow>
            <MaxTileRow>620</MaxTileRow>
            <MinTileCol>1005</MinTileCol>
            <MaxTileCol>1005</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1239</MinTileRow>
            <MaxTileRow>1240</MaxTileRow>
            <MinTileCol>2010</MinTileCol>
            <MaxTileCol>2011</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2479</MinTileRow>
            <MaxTileRow>2481</MaxTileRow>
            <MinTileCol>4021</MinTileCol>
            <MaxTileCol>4022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4959</MinTileRow>
            <MaxTileRow>4962</MaxTileRow>
            <MinTileCol>8042</MinTileCol>
            <MaxTileCol>8045</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9919</MinTileRow>
            <MaxTileRow>9924</MaxTileRow>
            <MinTileCol>16085</MinTileCol>
            <MaxTileCol>16090</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19839</MinTileRow>
            <MaxTileRow>19848</MaxTileRow>
            <MinTileCol>32171</MinTileCol>
            <MaxTileCol>32181</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39678</MinTileRow>
            <MaxTileRow>39696</MaxTileRow>
            <MinTileCol>64342</MinTileCol>
            <MaxTileCol>64363</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>79357</MinTileRow>
            <MaxTileRow>79392</MaxTileRow>
            <MinTileCol>128684</MinTileCol>
            <MaxTileCol>128727</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>158715</MinTileRow>
            <MaxTileRow>158785</MaxTileRow>
            <MinTileCol>257368</MinTileCol>
            <MaxTileCol>257454</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>317430</MinTileRow>
            <MaxTileRow>317571</MaxTileRow>
            <MinTileCol>514737</MinTileCol>
            <MaxTileCol>514909</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>634860</MinTileRow>
            <MaxTileRow>635142</MaxTileRow>
            <MinTileCol>1029474</MinTileCol>
            <MaxTileCol>1029819</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1269720</MinTileRow>
            <MaxTileRow>1270285</MaxTileRow>
            <MinTileCol>2058948</MinTileCol>
            <MaxTileCol>2059638</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2539441</MinTileRow>
            <MaxTileRow>2540571</MaxTileRow>
            <MinTileCol>4117897</MinTileCol>
            <MaxTileCol>4119277</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5078883</MinTileRow>
            <MaxTileRow>5081142</MaxTileRow>
            <MinTileCol>8235794</MinTileCol>
            <MaxTileCol>8238555</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10157767</MinTileRow>
            <MaxTileRow>10162285</MaxTileRow>
            <MinTileCol>16471589</MinTileCol>
            <MaxTileCol>16477110</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20315535</MinTileRow>
            <MaxTileRow>20324571</MaxTileRow>
            <MinTileCol>32943179</MinTileCol>
            <MaxTileCol>32954220</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40631070</MinTileRow>
            <MaxTileRow>40649142</MaxTileRow>
            <MinTileCol>65886359</MinTileCol>
            <MaxTileCol>65908440</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>81262140</MinTileRow>
            <MaxTileRow>81298285</MaxTileRow>
            <MinTileCol>131772718</MinTileCol>
            <MaxTileCol>131816881</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>162524281</MinTileRow>
            <MaxTileRow>162596571</MaxTileRow>
            <MinTileCol>263545436</MinTileCol>
            <MaxTileCol>263633763</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>325048563</MinTileRow>
            <MaxTileRow>325193143</MaxTileRow>
            <MinTileCol>527090872</MinTileCol>
            <MaxTileCol>527267526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>650097126</MinTileRow>
            <MaxTileRow>650386286</MaxTileRow>
            <MinTileCol>1054181745</MinTileCol>
            <MaxTileCol>1054535052</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:wflow_catchment_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:wflow_catchment_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:wflow_catchment_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:wflow_catchment_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:wflow_catchment_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:wflow_catchment_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:wflow_catchment_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:wflow_catchment_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:wflow_catchment_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:wflow_catchment_boundary/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:wflow_catchment_boundary/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>100y_3c_thresholded_0-1_3857_32b</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3147871616959 -43.86954392313133</ows:LowerCorner>
        <ows:UpperCorner>172.38866892073 -43.8346956274462</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:100y_3c_thresholded_0-1_3857_32b</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3A100y_3c_thresholded_0-1_3857_32b" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666498</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332997</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209529</MinTileCol>
            <MaxTileCol>8211251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665994</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419059</MinTileCol>
            <MaxTileCol>16422502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331989</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838118</MinTileCol>
            <MaxTileCol>32845004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663979</MinTileRow>
            <MaxTileRow>42672987</MaxTileRow>
            <MinTileCol>65676236</MinTileCol>
            <MaxTileCol>65690009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327959</MinTileRow>
            <MaxTileRow>85345975</MaxTileRow>
            <MinTileCol>131352472</MinTileCol>
            <MaxTileCol>131380018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655918</MinTileRow>
            <MaxTileRow>170691951</MaxTileRow>
            <MinTileCol>262704945</MinTileCol>
            <MaxTileCol>262760036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311837</MinTileRow>
            <MaxTileRow>341383903</MaxTileRow>
            <MinTileCol>525409891</MinTileCol>
            <MaxTileCol>525520072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623674</MinTileRow>
            <MaxTileRow>682767807</MaxTileRow>
            <MinTileCol>1050819783</MinTileCol>
            <MaxTileCol>1051040144</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>100y_0c_thresholded_0-1_3857_32b</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3147871616959 -43.86954392313133</ows:LowerCorner>
        <ows:UpperCorner>172.38866892073 -43.8346956274462</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:100y_0c_thresholded_0-1_3857_32b</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3A100y_0c_thresholded_0-1_3857_32b" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666498</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332997</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209529</MinTileCol>
            <MaxTileCol>8211251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665994</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419059</MinTileCol>
            <MaxTileCol>16422502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331989</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838118</MinTileCol>
            <MaxTileCol>32845004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663979</MinTileRow>
            <MaxTileRow>42672987</MaxTileRow>
            <MinTileCol>65676236</MinTileCol>
            <MaxTileCol>65690009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327959</MinTileRow>
            <MaxTileRow>85345975</MaxTileRow>
            <MinTileCol>131352472</MinTileCol>
            <MaxTileCol>131380018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655918</MinTileRow>
            <MaxTileRow>170691951</MaxTileRow>
            <MinTileCol>262704945</MinTileCol>
            <MaxTileCol>262760036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311837</MinTileRow>
            <MaxTileRow>341383903</MaxTileRow>
            <MinTileCol>525409891</MinTileCol>
            <MaxTileCol>525520072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623674</MinTileRow>
            <MaxTileRow>682767807</MaxTileRow>
            <MinTileCol>1050819783</MinTileCol>
            <MaxTileCol>1051040144</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>pre-human_wetlands</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.4946424875532 -46.70697852583356</ows:LowerCorner>
        <ows:UpperCorner>170.8661525334528 -44.45688042001861</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:pre-human_wetlands</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Apre-human_wetlands" 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>23</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>249</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>191</MinTileRow>
            <MaxTileRow>194</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>499</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>382</MinTileRow>
            <MaxTileRow>388</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>998</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>764</MinTileRow>
            <MaxTileRow>777</MaxTileRow>
            <MinTileCol>1971</MinTileCol>
            <MaxTileCol>1996</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1529</MinTileRow>
            <MaxTileRow>1555</MaxTileRow>
            <MinTileCol>3942</MinTileCol>
            <MaxTileCol>3992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3059</MinTileRow>
            <MaxTileRow>3110</MaxTileRow>
            <MinTileCol>7884</MinTileCol>
            <MaxTileCol>7984</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6119</MinTileRow>
            <MaxTileRow>6221</MaxTileRow>
            <MinTileCol>15769</MinTileCol>
            <MaxTileCol>15968</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12238</MinTileRow>
            <MaxTileRow>12443</MaxTileRow>
            <MinTileCol>31538</MinTileCol>
            <MaxTileCol>31936</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24477</MinTileRow>
            <MaxTileRow>24886</MaxTileRow>
            <MinTileCol>63077</MinTileCol>
            <MaxTileCol>63873</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48954</MinTileRow>
            <MaxTileRow>49773</MaxTileRow>
            <MinTileCol>126154</MinTileCol>
            <MaxTileCol>127746</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97908</MinTileRow>
            <MaxTileRow>99546</MaxTileRow>
            <MinTileCol>252309</MinTileCol>
            <MaxTileCol>255492</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>195817</MinTileRow>
            <MaxTileRow>199093</MaxTileRow>
            <MinTileCol>504619</MinTileCol>
            <MaxTileCol>510985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>391634</MinTileRow>
            <MaxTileRow>398187</MaxTileRow>
            <MinTileCol>1009238</MinTileCol>
            <MaxTileCol>1021971</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>783268</MinTileRow>
            <MaxTileRow>796375</MaxTileRow>
            <MinTileCol>2018477</MinTileCol>
            <MaxTileCol>2043943</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1566536</MinTileRow>
            <MaxTileRow>1592751</MaxTileRow>
            <MinTileCol>4036955</MinTileCol>
            <MaxTileCol>4087886</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>40</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>163</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>249</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>326</MinTileRow>
            <MaxTileRow>331</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>499</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>653</MinTileRow>
            <MaxTileRow>662</MaxTileRow>
            <MinTileCol>985</MinTileCol>
            <MaxTileCol>998</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1306</MinTileRow>
            <MaxTileRow>1325</MaxTileRow>
            <MinTileCol>1971</MinTileCol>
            <MaxTileCol>1996</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2613</MinTileRow>
            <MaxTileRow>2650</MaxTileRow>
            <MinTileCol>3942</MinTileCol>
            <MaxTileCol>3992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5227</MinTileRow>
            <MaxTileRow>5300</MaxTileRow>
            <MinTileCol>7884</MinTileCol>
            <MaxTileCol>7984</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10455</MinTileRow>
            <MaxTileRow>10601</MaxTileRow>
            <MinTileCol>15769</MinTileCol>
            <MaxTileCol>15968</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20910</MinTileRow>
            <MaxTileRow>21203</MaxTileRow>
            <MinTileCol>31538</MinTileCol>
            <MaxTileCol>31936</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41821</MinTileRow>
            <MaxTileRow>42407</MaxTileRow>
            <MinTileCol>63077</MinTileCol>
            <MaxTileCol>63873</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83643</MinTileRow>
            <MaxTileRow>84814</MaxTileRow>
            <MinTileCol>126154</MinTileCol>
            <MaxTileCol>127746</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>167287</MinTileRow>
            <MaxTileRow>169629</MaxTileRow>
            <MinTileCol>252309</MinTileCol>
            <MaxTileCol>255492</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>334575</MinTileRow>
            <MaxTileRow>339258</MaxTileRow>
            <MinTileCol>504619</MinTileCol>
            <MaxTileCol>510985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>669150</MinTileRow>
            <MaxTileRow>678516</MaxTileRow>
            <MinTileCol>1009238</MinTileCol>
            <MaxTileCol>1021971</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1338300</MinTileRow>
            <MaxTileRow>1357032</MaxTileRow>
            <MinTileCol>2018477</MinTileCol>
            <MaxTileCol>2043943</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2676600</MinTileRow>
            <MaxTileRow>2714065</MaxTileRow>
            <MinTileCol>4036955</MinTileCol>
            <MaxTileCol>4087886</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5353201</MinTileRow>
            <MaxTileRow>5428130</MaxTileRow>
            <MinTileCol>8073910</MinTileCol>
            <MaxTileCol>8175773</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10706403</MinTileRow>
            <MaxTileRow>10856260</MaxTileRow>
            <MinTileCol>16147820</MinTileCol>
            <MaxTileCol>16351547</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21412807</MinTileRow>
            <MaxTileRow>21712521</MaxTileRow>
            <MinTileCol>32295641</MinTileCol>
            <MaxTileCol>32703095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42825615</MinTileRow>
            <MaxTileRow>43425042</MaxTileRow>
            <MinTileCol>64591282</MinTileCol>
            <MaxTileCol>65406191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85651231</MinTileRow>
            <MaxTileRow>86850084</MaxTileRow>
            <MinTileCol>129182565</MinTileCol>
            <MaxTileCol>130812382</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>171302463</MinTileRow>
            <MaxTileRow>173700169</MaxTileRow>
            <MinTileCol>258365131</MinTileCol>
            <MaxTileCol>261624765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>342604926</MinTileRow>
            <MaxTileRow>347400339</MaxTileRow>
            <MinTileCol>516730263</MinTileCol>
            <MaxTileCol>523249531</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>685209853</MinTileRow>
            <MaxTileRow>694800678</MaxTileRow>
            <MinTileCol>1033460526</MinTileCol>
            <MaxTileCol>1046499062</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:pre-human_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:pre-human_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:pre-human_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:pre-human_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:pre-human_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:pre-human_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:pre-human_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:pre-human_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:pre-human_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:pre-human_wetlands/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:pre-human_wetlands/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <TileMatrixSet>
      <ows:Identifier>EPSG:4326</ows:Identifier>
      <ows:SupportedCRS>urn:ogc:def:crs:EPSG::4326</ows:SupportedCRS>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:0</ows:Identifier>
        <ScaleDenominator>2.795411320143589E8</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2</MatrixWidth>
        <MatrixHeight>1</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:1</ows:Identifier>
        <ScaleDenominator>1.3977056600717944E8</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4</MatrixWidth>
        <MatrixHeight>2</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:2</ows:Identifier>
        <ScaleDenominator>6.988528300358972E7</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>8</MatrixWidth>
        <MatrixHeight>4</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:3</ows:Identifier>
        <ScaleDenominator>3.494264150179486E7</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>16</MatrixWidth>
        <MatrixHeight>8</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:4</ows:Identifier>
        <ScaleDenominator>1.747132075089743E7</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>32</MatrixWidth>
        <MatrixHeight>16</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:5</ows:Identifier>
        <ScaleDenominator>8735660.375448715</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>64</MatrixWidth>
        <MatrixHeight>32</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:6</ows:Identifier>
        <ScaleDenominator>4367830.1877243575</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>128</MatrixWidth>
        <MatrixHeight>64</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:7</ows:Identifier>
        <ScaleDenominator>2183915.0938621787</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>256</MatrixWidth>
        <MatrixHeight>128</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:8</ows:Identifier>
        <ScaleDenominator>1091957.5469310894</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>512</MatrixWidth>
        <MatrixHeight>256</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:9</ows:Identifier>
        <ScaleDenominator>545978.7734655447</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1024</MatrixWidth>
        <MatrixHeight>512</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:10</ows:Identifier>
        <ScaleDenominator>272989.38673277234</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2048</MatrixWidth>
        <MatrixHeight>1024</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:11</ows:Identifier>
        <ScaleDenominator>136494.69336638617</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4096</MatrixWidth>
        <MatrixHeight>2048</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:12</ows:Identifier>
        <ScaleDenominator>68247.34668319309</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>8192</MatrixWidth>
        <MatrixHeight>4096</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:13</ows:Identifier>
        <ScaleDenominator>34123.67334159654</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>16384</MatrixWidth>
        <MatrixHeight>8192</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:14</ows:Identifier>
        <ScaleDenominator>17061.83667079827</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>32768</MatrixWidth>
        <MatrixHeight>16384</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:15</ows:Identifier>
        <ScaleDenominator>8530.918335399136</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>65536</MatrixWidth>
        <MatrixHeight>32768</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:16</ows:Identifier>
        <ScaleDenominator>4265.459167699568</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>131072</MatrixWidth>
        <MatrixHeight>65536</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:17</ows:Identifier>
        <ScaleDenominator>2132.729583849784</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>262144</MatrixWidth>
        <MatrixHeight>131072</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:18</ows:Identifier>
        <ScaleDenominator>1066.364791924892</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>524288</MatrixWidth>
        <MatrixHeight>262144</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:19</ows:Identifier>
        <ScaleDenominator>533.182395962446</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1048576</MatrixWidth>
        <MatrixHeight>524288</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:20</ows:Identifier>
        <ScaleDenominator>266.591197981223</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2097152</MatrixWidth>
        <MatrixHeight>1048576</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:4326:21</ows:Identifier>
        <ScaleDenominator>133.2955989906115</ScaleDenominator>
        <TopLeftCorner>90.0 -180.0</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4194304</MatrixWidth>
        <MatrixHeight>2097152</MatrixHeight>
      </TileMatrix>
    </TileMatrixSet>
    <TileMatrixSet>
      <ows:Identifier>EPSG:900913</ows:Identifier>
      <ows:SupportedCRS>urn:ogc:def:crs:EPSG::900913</ows:SupportedCRS>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:0</ows:Identifier>
        <ScaleDenominator>5.590822639508929E8</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1</MatrixWidth>
        <MatrixHeight>1</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:1</ows:Identifier>
        <ScaleDenominator>2.7954113197544646E8</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2</MatrixWidth>
        <MatrixHeight>2</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:2</ows:Identifier>
        <ScaleDenominator>1.3977056598772323E8</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4</MatrixWidth>
        <MatrixHeight>4</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:3</ows:Identifier>
        <ScaleDenominator>6.988528299386162E7</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>8</MatrixWidth>
        <MatrixHeight>8</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:4</ows:Identifier>
        <ScaleDenominator>3.494264149693081E7</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>16</MatrixWidth>
        <MatrixHeight>16</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:5</ows:Identifier>
        <ScaleDenominator>1.7471320748465404E7</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>32</MatrixWidth>
        <MatrixHeight>32</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:6</ows:Identifier>
        <ScaleDenominator>8735660.374232702</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>64</MatrixWidth>
        <MatrixHeight>64</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:7</ows:Identifier>
        <ScaleDenominator>4367830.187116351</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>128</MatrixWidth>
        <MatrixHeight>128</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:8</ows:Identifier>
        <ScaleDenominator>2183915.0935581755</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>256</MatrixWidth>
        <MatrixHeight>256</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:9</ows:Identifier>
        <ScaleDenominator>1091957.5467790877</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>512</MatrixWidth>
        <MatrixHeight>512</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:10</ows:Identifier>
        <ScaleDenominator>545978.7733895439</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1024</MatrixWidth>
        <MatrixHeight>1024</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:11</ows:Identifier>
        <ScaleDenominator>272989.38669477194</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2048</MatrixWidth>
        <MatrixHeight>2048</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:12</ows:Identifier>
        <ScaleDenominator>136494.69334738597</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4096</MatrixWidth>
        <MatrixHeight>4096</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:13</ows:Identifier>
        <ScaleDenominator>68247.34667369298</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>8192</MatrixWidth>
        <MatrixHeight>8192</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:14</ows:Identifier>
        <ScaleDenominator>34123.67333684649</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>16384</MatrixWidth>
        <MatrixHeight>16384</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:15</ows:Identifier>
        <ScaleDenominator>17061.836668423246</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>32768</MatrixWidth>
        <MatrixHeight>32768</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:16</ows:Identifier>
        <ScaleDenominator>8530.918334211623</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>65536</MatrixWidth>
        <MatrixHeight>65536</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:17</ows:Identifier>
        <ScaleDenominator>4265.4591671058115</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>131072</MatrixWidth>
        <MatrixHeight>131072</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:18</ows:Identifier>
        <ScaleDenominator>2132.7295835529058</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>262144</MatrixWidth>
        <MatrixHeight>262144</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:19</ows:Identifier>
        <ScaleDenominator>1066.3647917764529</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>524288</MatrixWidth>
        <MatrixHeight>524288</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:20</ows:Identifier>
        <ScaleDenominator>533.1823958882264</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1048576</MatrixWidth>
        <MatrixHeight>1048576</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:21</ows:Identifier>
        <ScaleDenominator>266.5911979441132</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2097152</MatrixWidth>
        <MatrixHeight>2097152</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:22</ows:Identifier>
        <ScaleDenominator>133.2955989720566</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4194304</MatrixWidth>
        <MatrixHeight>4194304</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:23</ows:Identifier>
        <ScaleDenominator>66.6477994860283</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>8388608</MatrixWidth>
        <MatrixHeight>8388608</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:24</ows:Identifier>
        <ScaleDenominator>33.32389974301415</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>16777216</MatrixWidth>
        <MatrixHeight>16777216</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:25</ows:Identifier>
        <ScaleDenominator>16.661949871507076</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>33554432</MatrixWidth>
        <MatrixHeight>33554432</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:26</ows:Identifier>
        <ScaleDenominator>8.330974935753538</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>67108864</MatrixWidth>
        <MatrixHeight>67108864</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:27</ows:Identifier>
        <ScaleDenominator>4.165487467876769</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>134217728</MatrixWidth>
        <MatrixHeight>134217728</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:28</ows:Identifier>
        <ScaleDenominator>2.0827437339383845</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>268435456</MatrixWidth>
        <MatrixHeight>268435456</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:29</ows:Identifier>
        <ScaleDenominator>1.0413718669691923</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>536870912</MatrixWidth>
        <MatrixHeight>536870912</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>EPSG:900913:30</ows:Identifier>
        <ScaleDenominator>0.5206859334845961</ScaleDenominator>
        <TopLeftCorner>-2.003750834E7 2.0037508E7</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1073741824</MatrixWidth>
        <MatrixHeight>1073741824</MatrixHeight>
      </TileMatrix>
    </TileMatrixSet>
  </Contents>
  <ServiceMetadataURL xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts?SERVICE=wmts&amp;REQUEST=getcapabilities&amp;VERSION=1.0.0"/>
  <ServiceMetadataURL xlink:href="https://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/WMTSCapabilities.xml"/>
</Capabilities>