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

<Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:ows="http://www.opengis.net/ows/1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gml="http://www.opengis.net/gml" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd" version="1.0.0">
  <ows:ServiceIdentification>
    <ows:Title>GeoServer Web Map Tile Service</ows:Title>
    <ows:Abstract>Predefined map tiles generated from vector data, raster data, and imagery.</ows:Abstract>
    <ows:ServiceType>OGC WMTS</ows:ServiceType>
    <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
    <ows:Fees>NONE</ows:Fees>
    <ows:AccessConstraints>NONE</ows:AccessConstraints>
  </ows:ServiceIdentification>
  <ows:ServiceProvider>
    <ows:ProviderName>GeoServer</ows:ProviderName>
    <ows:ProviderSite xlink:href="https://geoserver.org"/>
    <ows:ServiceContact>
      <ows:ContactInfo>
        <ows:Address/>
      </ows:ContactInfo>
    </ows:ServiceContact>
  </ows:ServiceProvider>
  <ows:OperationsMetadata>
    <ows:Operation name="GetCapabilities">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts?">
            <ows:Constraint name="GetEncoding">
              <ows:AllowedValues>
                <ows:Value>KVP</ows:Value>
              </ows:AllowedValues>
            </ows:Constraint>
          </ows:Get>
        </ows:HTTP>
      </ows:DCP>
    </ows:Operation>
    <ows:Operation name="GetTile">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts?">
            <ows:Constraint name="GetEncoding">
              <ows:AllowedValues>
                <ows:Value>KVP</ows:Value>
              </ows:AllowedValues>
            </ows:Constraint>
          </ows:Get>
        </ows:HTTP>
      </ows:DCP>
    </ows:Operation>
    <ows:Operation name="GetFeatureInfo">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts?">
            <ows:Constraint name="GetEncoding">
              <ows:AllowedValues>
                <ows:Value>KVP</ows:Value>
              </ows:AllowedValues>
            </ows:Constraint>
          </ows:Get>
        </ows:HTTP>
      </ows:DCP>
    </ows:Operation>
  </ows:OperationsMetadata>
  <Contents>
    <Layer>
      <ows:Title>scenario4_40yr_hightide_slr2150_max</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>167.9377887832845 -46.35944922301398</ows:LowerCorner>
        <ows:UpperCorner>168.02791682993382 -46.32451475939033</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:scenario4_40yr_hightide_slr2150_max</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Ascenario4_40yr_hightide_slr2150_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>3</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>30</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>61</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>989</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>775</MinTileRow>
            <MaxTileRow>775</MaxTileRow>
            <MinTileCol>1979</MinTileCol>
            <MaxTileCol>1979</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1551</MinTileRow>
            <MaxTileRow>1551</MaxTileRow>
            <MinTileCol>3958</MinTileCol>
            <MaxTileCol>3959</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3102</MinTileRow>
            <MaxTileRow>3102</MaxTileRow>
            <MinTileCol>7917</MinTileCol>
            <MaxTileCol>7919</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6204</MinTileRow>
            <MaxTileRow>6205</MaxTileRow>
            <MinTileCol>15835</MinTileCol>
            <MaxTileCol>15839</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12408</MinTileRow>
            <MaxTileRow>12411</MaxTileRow>
            <MinTileCol>31670</MinTileCol>
            <MaxTileCol>31678</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24817</MinTileRow>
            <MaxTileRow>24823</MaxTileRow>
            <MinTileCol>63340</MinTileCol>
            <MaxTileCol>63356</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49634</MinTileRow>
            <MaxTileRow>49646</MaxTileRow>
            <MinTileCol>126680</MinTileCol>
            <MaxTileCol>126713</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99268</MinTileRow>
            <MaxTileRow>99293</MaxTileRow>
            <MinTileCol>253360</MinTileCol>
            <MaxTileCol>253426</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198536</MinTileRow>
            <MaxTileRow>198587</MaxTileRow>
            <MinTileCol>506721</MinTileCol>
            <MaxTileCol>506852</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>397073</MinTileRow>
            <MaxTileRow>397175</MaxTileRow>
            <MinTileCol>1013442</MinTileCol>
            <MaxTileCol>1013704</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>794147</MinTileRow>
            <MaxTileRow>794351</MaxTileRow>
            <MinTileCol>2026884</MinTileCol>
            <MaxTileCol>2027409</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1588295</MinTileRow>
            <MaxTileRow>1588702</MaxTileRow>
            <MinTileCol>4053769</MinTileCol>
            <MaxTileCol>4054819</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>30</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>61</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>165</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>330</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>661</MinTileRow>
            <MaxTileRow>661</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>989</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1322</MinTileRow>
            <MaxTileRow>1322</MaxTileRow>
            <MinTileCol>1979</MinTileCol>
            <MaxTileCol>1979</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2644</MinTileRow>
            <MaxTileRow>2644</MaxTileRow>
            <MinTileCol>3958</MinTileCol>
            <MaxTileCol>3959</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5288</MinTileRow>
            <MaxTileRow>5289</MaxTileRow>
            <MinTileCol>7917</MinTileCol>
            <MaxTileCol>7919</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10576</MinTileRow>
            <MaxTileRow>10578</MaxTileRow>
            <MinTileCol>15835</MinTileCol>
            <MaxTileCol>15839</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21153</MinTileRow>
            <MaxTileRow>21157</MaxTileRow>
            <MinTileCol>31670</MinTileCol>
            <MaxTileCol>31678</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42306</MinTileRow>
            <MaxTileRow>42315</MaxTileRow>
            <MinTileCol>63340</MinTileCol>
            <MaxTileCol>63356</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84612</MinTileRow>
            <MaxTileRow>84630</MaxTileRow>
            <MinTileCol>126680</MinTileCol>
            <MaxTileCol>126713</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>169224</MinTileRow>
            <MaxTileRow>169261</MaxTileRow>
            <MinTileCol>253360</MinTileCol>
            <MaxTileCol>253426</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>338448</MinTileRow>
            <MaxTileRow>338522</MaxTileRow>
            <MinTileCol>506721</MinTileCol>
            <MaxTileCol>506852</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>676897</MinTileRow>
            <MaxTileRow>677044</MaxTileRow>
            <MinTileCol>1013442</MinTileCol>
            <MaxTileCol>1013704</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1353794</MinTileRow>
            <MaxTileRow>1354089</MaxTileRow>
            <MinTileCol>2026884</MinTileCol>
            <MaxTileCol>2027409</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2707589</MinTileRow>
            <MaxTileRow>2708179</MaxTileRow>
            <MinTileCol>4053769</MinTileCol>
            <MaxTileCol>4054819</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5415179</MinTileRow>
            <MaxTileRow>5416358</MaxTileRow>
            <MinTileCol>8107538</MinTileCol>
            <MaxTileCol>8109638</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10830359</MinTileRow>
            <MaxTileRow>10832717</MaxTileRow>
            <MinTileCol>16215076</MinTileCol>
            <MaxTileCol>16219276</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21660718</MinTileRow>
            <MaxTileRow>21665434</MaxTileRow>
            <MinTileCol>32430152</MinTileCol>
            <MaxTileCol>32438552</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43321436</MinTileRow>
            <MaxTileRow>43330869</MaxTileRow>
            <MinTileCol>64860304</MinTileCol>
            <MaxTileCol>64877105</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86642873</MinTileRow>
            <MaxTileRow>86661739</MaxTileRow>
            <MinTileCol>129720609</MinTileCol>
            <MaxTileCol>129754211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173285746</MinTileRow>
            <MaxTileRow>173323479</MaxTileRow>
            <MinTileCol>259441219</MinTileCol>
            <MaxTileCol>259508423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346571493</MinTileRow>
            <MaxTileRow>346646958</MaxTileRow>
            <MinTileCol>518882438</MinTileCol>
            <MaxTileCol>519016847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>693142986</MinTileRow>
            <MaxTileRow>693293917</MaxTileRow>
            <MinTileCol>1037764877</MinTileCol>
            <MaxTileCol>1038033695</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_40yr_hightide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_40yr_hightide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_40yr_hightide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_40yr_hightide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_40yr_hightide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_40yr_hightide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_40yr_hightide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_40yr_hightide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_40yr_hightide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_40yr_hightide_slr2150_max/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario4_40yr_hightide_slr2150_max/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <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="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-buildings%3Abuilding_flood_status" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>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="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:building_flood_status/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>region_geometry_clipped</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-180.0 -47.41964793037733</ows:LowerCorner>
        <ows:UpperCorner>180.0 -33.77340277566287</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>input_layers:region_geometry_clipped</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>generic</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=input_layers%3Aregion_geometry_clipped" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>22</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>352</MinTileRow>
            <MaxTileRow>390</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>704</MinTileRow>
            <MaxTileRow>781</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1408</MinTileRow>
            <MaxTileRow>1563</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2816</MinTileRow>
            <MaxTileRow>3127</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5633</MinTileRow>
            <MaxTileRow>6254</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11266</MinTileRow>
            <MaxTileRow>12508</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22532</MinTileRow>
            <MaxTileRow>25016</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45064</MinTileRow>
            <MaxTileRow>50032</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90129</MinTileRow>
            <MaxTileRow>100065</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>180258</MinTileRow>
            <MaxTileRow>200131</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>360516</MinTileRow>
            <MaxTileRow>400263</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>721032</MinTileRow>
            <MaxTileRow>800527</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1442064</MinTileRow>
            <MaxTileRow>1601054</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4194303</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>2</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>614</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>4</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1228</MinTileRow>
            <MaxTileRow>1331</MaxTileRow>
            <MinTileCol>8</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2456</MinTileRow>
            <MaxTileRow>2662</MaxTileRow>
            <MinTileCol>16</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4913</MinTileRow>
            <MaxTileRow>5324</MaxTileRow>
            <MinTileCol>32</MinTileCol>
            <MaxTileCol>8190</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9826</MinTileRow>
            <MaxTileRow>10649</MaxTileRow>
            <MinTileCol>65</MinTileCol>
            <MaxTileCol>16381</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19653</MinTileRow>
            <MaxTileRow>21298</MaxTileRow>
            <MinTileCol>130</MinTileCol>
            <MaxTileCol>32762</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39306</MinTileRow>
            <MaxTileRow>42597</MaxTileRow>
            <MinTileCol>261</MinTileCol>
            <MaxTileCol>65524</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78613</MinTileRow>
            <MaxTileRow>85195</MaxTileRow>
            <MinTileCol>523</MinTileCol>
            <MaxTileCol>131048</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157226</MinTileRow>
            <MaxTileRow>170390</MaxTileRow>
            <MinTileCol>1047</MinTileCol>
            <MaxTileCol>262096</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314453</MinTileRow>
            <MaxTileRow>340781</MaxTileRow>
            <MinTileCol>2095</MinTileCol>
            <MaxTileCol>524193</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>628907</MinTileRow>
            <MaxTileRow>681563</MaxTileRow>
            <MinTileCol>4190</MinTileCol>
            <MaxTileCol>1048387</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1257815</MinTileRow>
            <MaxTileRow>1363127</MaxTileRow>
            <MinTileCol>8381</MinTileCol>
            <MaxTileCol>2096774</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2515631</MinTileRow>
            <MaxTileRow>2726254</MaxTileRow>
            <MinTileCol>16763</MinTileCol>
            <MaxTileCol>4193548</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5031262</MinTileRow>
            <MaxTileRow>5452509</MaxTileRow>
            <MinTileCol>33527</MinTileCol>
            <MaxTileCol>8387097</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10062525</MinTileRow>
            <MaxTileRow>10905018</MaxTileRow>
            <MinTileCol>67055</MinTileCol>
            <MaxTileCol>16774194</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20125051</MinTileRow>
            <MaxTileRow>21810037</MaxTileRow>
            <MinTileCol>134111</MinTileCol>
            <MaxTileCol>33548389</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40250103</MinTileRow>
            <MaxTileRow>43620074</MaxTileRow>
            <MinTileCol>268222</MinTileCol>
            <MaxTileCol>67096778</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80500207</MinTileRow>
            <MaxTileRow>87240149</MaxTileRow>
            <MinTileCol>536444</MinTileCol>
            <MaxTileCol>134193557</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161000414</MinTileRow>
            <MaxTileRow>174480298</MaxTileRow>
            <MinTileCol>1072889</MinTileCol>
            <MaxTileCol>268387114</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322000829</MinTileRow>
            <MaxTileRow>348960597</MaxTileRow>
            <MinTileCol>2145779</MinTileCol>
            <MaxTileCol>536774228</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>644001659</MinTileRow>
            <MaxTileRow>697921195</MaxTileRow>
            <MinTileCol>4291558</MinTileCol>
            <MaxTileCol>1073548456</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry_clipped/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>100y_3c_thresholded_0-1_3857</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3147871616959 -43.86954392313133</ows:LowerCorner>
        <ows:UpperCorner>172.38866892073 -43.8346956274462</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:100y_3c_thresholded_0-1_3857</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3A100y_3c_thresholded_0-1_3857" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666498</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332997</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209529</MinTileCol>
            <MaxTileCol>8211251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665994</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419059</MinTileCol>
            <MaxTileCol>16422502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331989</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838118</MinTileCol>
            <MaxTileCol>32845004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663979</MinTileRow>
            <MaxTileRow>42672987</MaxTileRow>
            <MinTileCol>65676236</MinTileCol>
            <MaxTileCol>65690009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327959</MinTileRow>
            <MaxTileRow>85345975</MaxTileRow>
            <MinTileCol>131352472</MinTileCol>
            <MaxTileCol>131380018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655918</MinTileRow>
            <MaxTileRow>170691951</MaxTileRow>
            <MinTileCol>262704945</MinTileCol>
            <MaxTileCol>262760036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311837</MinTileRow>
            <MaxTileRow>341383903</MaxTileRow>
            <MinTileCol>525409891</MinTileCol>
            <MaxTileCol>525520072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623674</MinTileRow>
            <MaxTileRow>682767807</MaxTileRow>
            <MinTileCol>1050819783</MinTileCol>
            <MaxTileCol>1051040144</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>nz_building_outlines</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.9055941494813 -46.13641375660738</ows:LowerCorner>
        <ows:UpperCorner>168.98589553012928 -46.06166984758917</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>input_layers:nz_building_outlines</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=input_layers%3Anz_building_outlines" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>3</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198263</MaxTileRow>
            <MinTileCol>508130</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396526</MaxTileRow>
            <MinTileCol>1016261</MinTileCol>
            <MaxTileCol>1016495</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792616</MinTileRow>
            <MaxTileRow>793052</MaxTileRow>
            <MinTileCol>2032522</MinTileCol>
            <MaxTileCol>2032990</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585233</MinTileRow>
            <MaxTileRow>1586104</MaxTileRow>
            <MinTileCol>4065044</MinTileCol>
            <MaxTileCol>4065980</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84513</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169026</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338052</MaxTileRow>
            <MinTileCol>508130</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676105</MaxTileRow>
            <MinTileCol>1016261</MinTileCol>
            <MaxTileCol>1016495</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351582</MinTileRow>
            <MaxTileRow>1352210</MaxTileRow>
            <MinTileCol>2032522</MinTileCol>
            <MaxTileCol>2032990</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703165</MinTileRow>
            <MaxTileRow>2704421</MaxTileRow>
            <MinTileCol>4065044</MinTileCol>
            <MaxTileCol>4065980</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406331</MinTileRow>
            <MaxTileRow>5408843</MaxTileRow>
            <MinTileCol>8130089</MinTileCol>
            <MaxTileCol>8131960</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812663</MinTileRow>
            <MaxTileRow>10817686</MaxTileRow>
            <MinTileCol>16260179</MinTileCol>
            <MaxTileCol>16263921</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625326</MinTileRow>
            <MaxTileRow>21635373</MaxTileRow>
            <MinTileCol>32520358</MinTileCol>
            <MaxTileCol>32527843</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250653</MinTileRow>
            <MaxTileRow>43270747</MaxTileRow>
            <MinTileCol>65040716</MinTileCol>
            <MaxTileCol>65055686</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501307</MinTileRow>
            <MaxTileRow>86541495</MaxTileRow>
            <MinTileCol>130081433</MinTileCol>
            <MaxTileCol>130111372</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002615</MinTileRow>
            <MaxTileRow>173082990</MaxTileRow>
            <MinTileCol>260162867</MinTileCol>
            <MaxTileCol>260222744</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005230</MinTileRow>
            <MaxTileRow>346165980</MaxTileRow>
            <MinTileCol>520325734</MinTileCol>
            <MaxTileCol>520445488</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010461</MinTileRow>
            <MaxTileRow>692331961</MaxTileRow>
            <MinTileCol>1040651469</MinTileCol>
            <MaxTileCol>1040890977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:nz_building_outlines/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>lcdb_mauri_view</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.9055941494813 -46.13641375660738</ows:LowerCorner>
        <ows:UpperCorner>168.98589553012928 -46.06166984758917</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="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-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>3</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198263</MaxTileRow>
            <MinTileCol>508130</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396526</MaxTileRow>
            <MinTileCol>1016261</MinTileCol>
            <MaxTileCol>1016495</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792616</MinTileRow>
            <MaxTileRow>793052</MaxTileRow>
            <MinTileCol>2032522</MinTileCol>
            <MaxTileCol>2032990</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585233</MinTileRow>
            <MaxTileRow>1586104</MaxTileRow>
            <MinTileCol>4065044</MinTileCol>
            <MaxTileCol>4065980</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84513</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169026</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338052</MaxTileRow>
            <MinTileCol>508130</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676105</MaxTileRow>
            <MinTileCol>1016261</MinTileCol>
            <MaxTileCol>1016495</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351582</MinTileRow>
            <MaxTileRow>1352210</MaxTileRow>
            <MinTileCol>2032522</MinTileCol>
            <MaxTileCol>2032990</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703165</MinTileRow>
            <MaxTileRow>2704421</MaxTileRow>
            <MinTileCol>4065044</MinTileCol>
            <MaxTileCol>4065980</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406331</MinTileRow>
            <MaxTileRow>5408843</MaxTileRow>
            <MinTileCol>8130089</MinTileCol>
            <MaxTileCol>8131960</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812663</MinTileRow>
            <MaxTileRow>10817686</MaxTileRow>
            <MinTileCol>16260179</MinTileCol>
            <MaxTileCol>16263921</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625326</MinTileRow>
            <MaxTileRow>21635373</MaxTileRow>
            <MinTileCol>32520358</MinTileCol>
            <MaxTileCol>32527843</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250653</MinTileRow>
            <MaxTileRow>43270747</MaxTileRow>
            <MinTileCol>65040716</MinTileCol>
            <MaxTileCol>65055686</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501307</MinTileRow>
            <MaxTileRow>86541495</MaxTileRow>
            <MinTileCol>130081433</MinTileCol>
            <MaxTileCol>130111372</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002615</MinTileRow>
            <MaxTileRow>173082990</MaxTileRow>
            <MinTileCol>260162867</MinTileCol>
            <MaxTileCol>260222744</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005230</MinTileRow>
            <MaxTileRow>346165980</MaxTileRow>
            <MinTileCol>520325734</MinTileCol>
            <MaxTileCol>520445488</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010461</MinTileRow>
            <MaxTileRow>692331961</MaxTileRow>
            <MinTileCol>1040651469</MinTileCol>
            <MaxTileCol>1040890977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:lcdb_mauri_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:lcdb_mauri_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:lcdb_mauri_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:lcdb_mauri_view/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-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="http://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="http://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="http://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="http://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="http://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="http://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>diff_3</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.90599572632266 -46.1358560862954</ows:LowerCorner>
        <ows:UpperCorner>168.98567286512676 -46.061783034086325</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-dt-model-outputs:diff_3</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-dt-model-outputs%3Adiff_3" 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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198262</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396524</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792617</MinTileRow>
            <MaxTileRow>793048</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585234</MinTileRow>
            <MaxTileRow>1586097</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84512</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169025</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338051</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676103</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351583</MinTileRow>
            <MaxTileRow>1352206</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703167</MinTileRow>
            <MaxTileRow>2704412</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406335</MinTileRow>
            <MaxTileRow>5408824</MaxTileRow>
            <MinTileCol>8130098</MinTileCol>
            <MaxTileCol>8131955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812671</MinTileRow>
            <MaxTileRow>10817649</MaxTileRow>
            <MinTileCol>16260197</MinTileCol>
            <MaxTileCol>16263911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625342</MinTileRow>
            <MaxTileRow>21635298</MaxTileRow>
            <MinTileCol>32520395</MinTileCol>
            <MaxTileCol>32527822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250684</MinTileRow>
            <MaxTileRow>43270597</MaxTileRow>
            <MinTileCol>65040791</MinTileCol>
            <MaxTileCol>65055644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501368</MinTileRow>
            <MaxTileRow>86541195</MaxTileRow>
            <MinTileCol>130081583</MinTileCol>
            <MaxTileCol>130111289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002737</MinTileRow>
            <MaxTileRow>173082390</MaxTileRow>
            <MinTileCol>260163166</MinTileCol>
            <MaxTileCol>260222578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005474</MinTileRow>
            <MaxTileRow>346164780</MaxTileRow>
            <MinTileCol>520326333</MinTileCol>
            <MaxTileCol>520445156</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010948</MinTileRow>
            <MaxTileRow>692329561</MaxTileRow>
            <MinTileCol>1040652667</MinTileCol>
            <MaxTileCol>1040890313</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_3/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_3/{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="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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>168.90599572632266 -46.1358560862954</ows:LowerCorner>
        <ows:UpperCorner>168.98567286512676 -46.061783034086325</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="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-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>3</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198262</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396524</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792617</MinTileRow>
            <MaxTileRow>793048</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585234</MinTileRow>
            <MaxTileRow>1586097</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84512</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169025</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338051</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676103</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351583</MinTileRow>
            <MaxTileRow>1352206</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703167</MinTileRow>
            <MaxTileRow>2704412</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406335</MinTileRow>
            <MaxTileRow>5408824</MaxTileRow>
            <MinTileCol>8130098</MinTileCol>
            <MaxTileCol>8131955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812671</MinTileRow>
            <MaxTileRow>10817649</MaxTileRow>
            <MinTileCol>16260197</MinTileCol>
            <MaxTileCol>16263911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625342</MinTileRow>
            <MaxTileRow>21635298</MaxTileRow>
            <MinTileCol>32520395</MinTileCol>
            <MaxTileCol>32527822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250684</MinTileRow>
            <MaxTileRow>43270597</MaxTileRow>
            <MinTileCol>65040791</MinTileCol>
            <MaxTileCol>65055644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501368</MinTileRow>
            <MaxTileRow>86541195</MaxTileRow>
            <MinTileCol>130081583</MinTileCol>
            <MaxTileCol>130111289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002737</MinTileRow>
            <MaxTileRow>173082390</MaxTileRow>
            <MinTileCol>260163166</MinTileCol>
            <MaxTileCol>260222578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005474</MinTileRow>
            <MaxTileRow>346164780</MaxTileRow>
            <MinTileCol>520326333</MinTileCol>
            <MaxTileCol>520445156</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010948</MinTileRow>
            <MaxTileRow>692329561</MaxTileRow>
            <MinTileCol>1040652667</MinTileCol>
            <MaxTileCol>1040890313</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-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="http://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="http://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="http://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="http://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="http://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="http://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>scenario3_40yr_lowtide_max</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>167.9377887832845 -46.35944922301398</ows:LowerCorner>
        <ows:UpperCorner>168.02791682993382 -46.32451475939033</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:scenario3_40yr_lowtide_max</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Ascenario3_40yr_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>3</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>30</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>61</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>989</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>775</MinTileRow>
            <MaxTileRow>775</MaxTileRow>
            <MinTileCol>1979</MinTileCol>
            <MaxTileCol>1979</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1551</MinTileRow>
            <MaxTileRow>1551</MaxTileRow>
            <MinTileCol>3958</MinTileCol>
            <MaxTileCol>3959</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3102</MinTileRow>
            <MaxTileRow>3102</MaxTileRow>
            <MinTileCol>7917</MinTileCol>
            <MaxTileCol>7919</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6204</MinTileRow>
            <MaxTileRow>6205</MaxTileRow>
            <MinTileCol>15835</MinTileCol>
            <MaxTileCol>15839</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12408</MinTileRow>
            <MaxTileRow>12411</MaxTileRow>
            <MinTileCol>31670</MinTileCol>
            <MaxTileCol>31678</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24817</MinTileRow>
            <MaxTileRow>24823</MaxTileRow>
            <MinTileCol>63340</MinTileCol>
            <MaxTileCol>63356</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49634</MinTileRow>
            <MaxTileRow>49646</MaxTileRow>
            <MinTileCol>126680</MinTileCol>
            <MaxTileCol>126713</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99268</MinTileRow>
            <MaxTileRow>99293</MaxTileRow>
            <MinTileCol>253360</MinTileCol>
            <MaxTileCol>253426</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198536</MinTileRow>
            <MaxTileRow>198587</MaxTileRow>
            <MinTileCol>506721</MinTileCol>
            <MaxTileCol>506852</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>397073</MinTileRow>
            <MaxTileRow>397175</MaxTileRow>
            <MinTileCol>1013442</MinTileCol>
            <MaxTileCol>1013704</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>794147</MinTileRow>
            <MaxTileRow>794351</MaxTileRow>
            <MinTileCol>2026884</MinTileCol>
            <MaxTileCol>2027409</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1588295</MinTileRow>
            <MaxTileRow>1588702</MaxTileRow>
            <MinTileCol>4053769</MinTileCol>
            <MaxTileCol>4054819</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>30</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>61</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>165</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>330</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>661</MinTileRow>
            <MaxTileRow>661</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>989</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1322</MinTileRow>
            <MaxTileRow>1322</MaxTileRow>
            <MinTileCol>1979</MinTileCol>
            <MaxTileCol>1979</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2644</MinTileRow>
            <MaxTileRow>2644</MaxTileRow>
            <MinTileCol>3958</MinTileCol>
            <MaxTileCol>3959</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5288</MinTileRow>
            <MaxTileRow>5289</MaxTileRow>
            <MinTileCol>7917</MinTileCol>
            <MaxTileCol>7919</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10576</MinTileRow>
            <MaxTileRow>10578</MaxTileRow>
            <MinTileCol>15835</MinTileCol>
            <MaxTileCol>15839</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21153</MinTileRow>
            <MaxTileRow>21157</MaxTileRow>
            <MinTileCol>31670</MinTileCol>
            <MaxTileCol>31678</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42306</MinTileRow>
            <MaxTileRow>42315</MaxTileRow>
            <MinTileCol>63340</MinTileCol>
            <MaxTileCol>63356</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84612</MinTileRow>
            <MaxTileRow>84630</MaxTileRow>
            <MinTileCol>126680</MinTileCol>
            <MaxTileCol>126713</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>169224</MinTileRow>
            <MaxTileRow>169261</MaxTileRow>
            <MinTileCol>253360</MinTileCol>
            <MaxTileCol>253426</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>338448</MinTileRow>
            <MaxTileRow>338522</MaxTileRow>
            <MinTileCol>506721</MinTileCol>
            <MaxTileCol>506852</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>676897</MinTileRow>
            <MaxTileRow>677044</MaxTileRow>
            <MinTileCol>1013442</MinTileCol>
            <MaxTileCol>1013704</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1353794</MinTileRow>
            <MaxTileRow>1354089</MaxTileRow>
            <MinTileCol>2026884</MinTileCol>
            <MaxTileCol>2027409</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2707589</MinTileRow>
            <MaxTileRow>2708179</MaxTileRow>
            <MinTileCol>4053769</MinTileCol>
            <MaxTileCol>4054819</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5415179</MinTileRow>
            <MaxTileRow>5416358</MaxTileRow>
            <MinTileCol>8107538</MinTileCol>
            <MaxTileCol>8109638</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10830359</MinTileRow>
            <MaxTileRow>10832717</MaxTileRow>
            <MinTileCol>16215076</MinTileCol>
            <MaxTileCol>16219276</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21660718</MinTileRow>
            <MaxTileRow>21665434</MaxTileRow>
            <MinTileCol>32430152</MinTileCol>
            <MaxTileCol>32438552</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43321436</MinTileRow>
            <MaxTileRow>43330869</MaxTileRow>
            <MinTileCol>64860304</MinTileCol>
            <MaxTileCol>64877105</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86642873</MinTileRow>
            <MaxTileRow>86661739</MaxTileRow>
            <MinTileCol>129720609</MinTileCol>
            <MaxTileCol>129754211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173285746</MinTileRow>
            <MaxTileRow>173323479</MaxTileRow>
            <MinTileCol>259441219</MinTileCol>
            <MaxTileCol>259508423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346571493</MinTileRow>
            <MaxTileRow>346646958</MaxTileRow>
            <MinTileCol>518882438</MinTileCol>
            <MaxTileCol>519016847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>693142986</MinTileRow>
            <MaxTileRow>693293917</MaxTileRow>
            <MinTileCol>1037764877</MinTileCol>
            <MaxTileCol>1038033695</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_40yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_40yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_40yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_40yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_40yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_40yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_40yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_40yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_40yr_lowtide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_40yr_lowtide_max/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario3_40yr_lowtide_max/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>diff_5</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.90599572632266 -46.1358560862954</ows:LowerCorner>
        <ows:UpperCorner>168.98567286512676 -46.061783034086325</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-dt-model-outputs:diff_5</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-dt-model-outputs%3Adiff_5" 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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198262</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396524</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792617</MinTileRow>
            <MaxTileRow>793048</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585234</MinTileRow>
            <MaxTileRow>1586097</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84512</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169025</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338051</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676103</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351583</MinTileRow>
            <MaxTileRow>1352206</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703167</MinTileRow>
            <MaxTileRow>2704412</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406335</MinTileRow>
            <MaxTileRow>5408824</MaxTileRow>
            <MinTileCol>8130098</MinTileCol>
            <MaxTileCol>8131955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812671</MinTileRow>
            <MaxTileRow>10817649</MaxTileRow>
            <MinTileCol>16260197</MinTileCol>
            <MaxTileCol>16263911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625342</MinTileRow>
            <MaxTileRow>21635298</MaxTileRow>
            <MinTileCol>32520395</MinTileCol>
            <MaxTileCol>32527822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250684</MinTileRow>
            <MaxTileRow>43270597</MaxTileRow>
            <MinTileCol>65040791</MinTileCol>
            <MaxTileCol>65055644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501368</MinTileRow>
            <MaxTileRow>86541195</MaxTileRow>
            <MinTileCol>130081583</MinTileCol>
            <MaxTileCol>130111289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002737</MinTileRow>
            <MaxTileRow>173082390</MaxTileRow>
            <MinTileCol>260163166</MinTileCol>
            <MaxTileCol>260222578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005474</MinTileRow>
            <MaxTileRow>346164780</MaxTileRow>
            <MinTileCol>520326333</MinTileCol>
            <MaxTileCol>520445156</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010948</MinTileRow>
            <MaxTileRow>692329561</MaxTileRow>
            <MinTileCol>1040652667</MinTileCol>
            <MaxTileCol>1040890313</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_5/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_5/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>diff_4</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.90599572632266 -46.1358560862954</ows:LowerCorner>
        <ows:UpperCorner>168.98567286512676 -46.061783034086325</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-dt-model-outputs:diff_4</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-dt-model-outputs%3Adiff_4" 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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198262</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396524</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792617</MinTileRow>
            <MaxTileRow>793048</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585234</MinTileRow>
            <MaxTileRow>1586097</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84512</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169025</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338051</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676103</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351583</MinTileRow>
            <MaxTileRow>1352206</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703167</MinTileRow>
            <MaxTileRow>2704412</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406335</MinTileRow>
            <MaxTileRow>5408824</MaxTileRow>
            <MinTileCol>8130098</MinTileCol>
            <MaxTileCol>8131955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812671</MinTileRow>
            <MaxTileRow>10817649</MaxTileRow>
            <MinTileCol>16260197</MinTileCol>
            <MaxTileCol>16263911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625342</MinTileRow>
            <MaxTileRow>21635298</MaxTileRow>
            <MinTileCol>32520395</MinTileCol>
            <MaxTileCol>32527822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250684</MinTileRow>
            <MaxTileRow>43270597</MaxTileRow>
            <MinTileCol>65040791</MinTileCol>
            <MaxTileCol>65055644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501368</MinTileRow>
            <MaxTileRow>86541195</MaxTileRow>
            <MinTileCol>130081583</MinTileCol>
            <MaxTileCol>130111289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002737</MinTileRow>
            <MaxTileRow>173082390</MaxTileRow>
            <MinTileCol>260163166</MinTileCol>
            <MaxTileCol>260222578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005474</MinTileRow>
            <MaxTileRow>346164780</MaxTileRow>
            <MinTileCol>520326333</MinTileCol>
            <MaxTileCol>520445156</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010948</MinTileRow>
            <MaxTileRow>692329561</MaxTileRow>
            <MinTileCol>1040652667</MinTileCol>
            <MaxTileCol>1040890313</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_4/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_4/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>diff_7</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.90599572632266 -46.1358560862954</ows:LowerCorner>
        <ows:UpperCorner>168.98567286512676 -46.061783034086325</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-dt-model-outputs:diff_7</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-dt-model-outputs%3Adiff_7" 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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198262</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396524</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792617</MinTileRow>
            <MaxTileRow>793048</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585234</MinTileRow>
            <MaxTileRow>1586097</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84512</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169025</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338051</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676103</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351583</MinTileRow>
            <MaxTileRow>1352206</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703167</MinTileRow>
            <MaxTileRow>2704412</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406335</MinTileRow>
            <MaxTileRow>5408824</MaxTileRow>
            <MinTileCol>8130098</MinTileCol>
            <MaxTileCol>8131955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812671</MinTileRow>
            <MaxTileRow>10817649</MaxTileRow>
            <MinTileCol>16260197</MinTileCol>
            <MaxTileCol>16263911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625342</MinTileRow>
            <MaxTileRow>21635298</MaxTileRow>
            <MinTileCol>32520395</MinTileCol>
            <MaxTileCol>32527822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250684</MinTileRow>
            <MaxTileRow>43270597</MaxTileRow>
            <MinTileCol>65040791</MinTileCol>
            <MaxTileCol>65055644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501368</MinTileRow>
            <MaxTileRow>86541195</MaxTileRow>
            <MinTileCol>130081583</MinTileCol>
            <MaxTileCol>130111289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002737</MinTileRow>
            <MaxTileRow>173082390</MaxTileRow>
            <MinTileCol>260163166</MinTileCol>
            <MaxTileCol>260222578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005474</MinTileRow>
            <MaxTileRow>346164780</MaxTileRow>
            <MinTileCol>520326333</MinTileCol>
            <MaxTileCol>520445156</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010948</MinTileRow>
            <MaxTileRow>692329561</MaxTileRow>
            <MinTileCol>1040652667</MinTileCol>
            <MaxTileCol>1040890313</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_7/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_7/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>diff_6</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.90599572632266 -46.1358560862954</ows:LowerCorner>
        <ows:UpperCorner>168.98567286512676 -46.061783034086325</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-dt-model-outputs:diff_6</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-dt-model-outputs%3Adiff_6" 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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198262</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396524</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792617</MinTileRow>
            <MaxTileRow>793048</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585234</MinTileRow>
            <MaxTileRow>1586097</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84512</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169025</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338051</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676103</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351583</MinTileRow>
            <MaxTileRow>1352206</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703167</MinTileRow>
            <MaxTileRow>2704412</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406335</MinTileRow>
            <MaxTileRow>5408824</MaxTileRow>
            <MinTileCol>8130098</MinTileCol>
            <MaxTileCol>8131955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812671</MinTileRow>
            <MaxTileRow>10817649</MaxTileRow>
            <MinTileCol>16260197</MinTileCol>
            <MaxTileCol>16263911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625342</MinTileRow>
            <MaxTileRow>21635298</MaxTileRow>
            <MinTileCol>32520395</MinTileCol>
            <MaxTileCol>32527822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250684</MinTileRow>
            <MaxTileRow>43270597</MaxTileRow>
            <MinTileCol>65040791</MinTileCol>
            <MaxTileCol>65055644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501368</MinTileRow>
            <MaxTileRow>86541195</MaxTileRow>
            <MinTileCol>130081583</MinTileCol>
            <MaxTileCol>130111289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002737</MinTileRow>
            <MaxTileRow>173082390</MaxTileRow>
            <MinTileCol>260163166</MinTileCol>
            <MaxTileCol>260222578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005474</MinTileRow>
            <MaxTileRow>346164780</MaxTileRow>
            <MinTileCol>520326333</MinTileCol>
            <MaxTileCol>520445156</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010948</MinTileRow>
            <MaxTileRow>692329561</MaxTileRow>
            <MinTileCol>1040652667</MinTileCol>
            <MaxTileCol>1040890313</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_6/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:diff_6/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>region_geometry</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>-180.0 -47.839734278747386</ows:LowerCorner>
        <ows:UpperCorner>180.0 -33.559983564693404</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>input_layers:region_geometry</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>generic</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=input_layers%3Aregion_geometry" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>21</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>43</MinTileRow>
            <MaxTileRow>49</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>87</MinTileRow>
            <MaxTileRow>98</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>175</MinTileRow>
            <MaxTileRow>196</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>351</MinTileRow>
            <MaxTileRow>392</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>702</MinTileRow>
            <MaxTileRow>784</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1405</MinTileRow>
            <MaxTileRow>1568</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2811</MinTileRow>
            <MaxTileRow>3136</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5623</MinTileRow>
            <MaxTileRow>6273</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11246</MinTileRow>
            <MaxTileRow>12546</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22493</MinTileRow>
            <MaxTileRow>25092</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>65535</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>44986</MinTileRow>
            <MaxTileRow>50185</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>131071</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>89973</MinTileRow>
            <MaxTileRow>100371</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>262143</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>179947</MinTileRow>
            <MaxTileRow>200743</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>524287</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>359894</MinTileRow>
            <MaxTileRow>401487</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1048575</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>719789</MinTileRow>
            <MaxTileRow>802974</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>2097151</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1439578</MinTileRow>
            <MaxTileRow>1605949</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>4194303</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>306</MinTileRow>
            <MaxTileRow>333</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>613</MinTileRow>
            <MaxTileRow>667</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>1023</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1226</MinTileRow>
            <MaxTileRow>1334</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>2047</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2453</MinTileRow>
            <MaxTileRow>2669</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>4095</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4907</MinTileRow>
            <MaxTileRow>5338</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>8191</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9815</MinTileRow>
            <MaxTileRow>10677</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>16383</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19630</MinTileRow>
            <MaxTileRow>21355</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>32767</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39260</MinTileRow>
            <MaxTileRow>42711</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>65534</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78520</MinTileRow>
            <MaxTileRow>85422</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>131069</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157040</MinTileRow>
            <MaxTileRow>170844</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>262139</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>314080</MinTileRow>
            <MaxTileRow>341689</MaxTileRow>
            <MinTileCol>495</MinTileCol>
            <MaxTileCol>524279</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>628160</MinTileRow>
            <MaxTileRow>683379</MaxTileRow>
            <MinTileCol>990</MinTileCol>
            <MaxTileCol>1048558</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1256321</MinTileRow>
            <MaxTileRow>1366758</MaxTileRow>
            <MinTileCol>1981</MinTileCol>
            <MaxTileCol>2097116</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2512643</MinTileRow>
            <MaxTileRow>2733517</MaxTileRow>
            <MinTileCol>3963</MinTileCol>
            <MaxTileCol>4194232</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5025287</MinTileRow>
            <MaxTileRow>5467034</MaxTileRow>
            <MinTileCol>7927</MinTileCol>
            <MaxTileCol>8388464</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10050575</MinTileRow>
            <MaxTileRow>10934069</MaxTileRow>
            <MinTileCol>15854</MinTileCol>
            <MaxTileCol>16776928</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20101150</MinTileRow>
            <MaxTileRow>21868138</MaxTileRow>
            <MinTileCol>31709</MinTileCol>
            <MaxTileCol>33553856</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40202301</MinTileRow>
            <MaxTileRow>43736276</MaxTileRow>
            <MinTileCol>63419</MinTileCol>
            <MaxTileCol>67107712</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80404603</MinTileRow>
            <MaxTileRow>87472552</MaxTileRow>
            <MinTileCol>126838</MinTileCol>
            <MaxTileCol>134215424</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>160809207</MinTileRow>
            <MaxTileRow>174945104</MaxTileRow>
            <MinTileCol>253677</MinTileCol>
            <MaxTileCol>268430848</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>321618415</MinTileRow>
            <MaxTileRow>349890208</MaxTileRow>
            <MinTileCol>507354</MinTileCol>
            <MaxTileCol>536861696</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>643236831</MinTileRow>
            <MaxTileRow>699780417</MaxTileRow>
            <MinTileCol>1014708</MinTileCol>
            <MaxTileCol>1073723392</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/input_layers:region_geometry/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>100y_0c_thresholded_0-1_3857</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3147871616959 -43.86954392313133</ows:LowerCorner>
        <ows:UpperCorner>172.38866892073 -43.8346956274462</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:100y_0c_thresholded_0-1_3857</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3A100y_0c_thresholded_0-1_3857" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666498</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332997</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209529</MinTileCol>
            <MaxTileCol>8211251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665994</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419059</MinTileCol>
            <MaxTileCol>16422502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331989</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838118</MinTileCol>
            <MaxTileCol>32845004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663979</MinTileRow>
            <MaxTileRow>42672987</MaxTileRow>
            <MinTileCol>65676236</MinTileCol>
            <MaxTileCol>65690009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327959</MinTileRow>
            <MaxTileRow>85345975</MaxTileRow>
            <MinTileCol>131352472</MinTileCol>
            <MaxTileCol>131380018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655918</MinTileRow>
            <MaxTileRow>170691951</MaxTileRow>
            <MinTileCol>262704945</MinTileCol>
            <MaxTileCol>262760036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311837</MinTileRow>
            <MaxTileRow>341383903</MaxTileRow>
            <MinTileCol>525409891</MinTileCol>
            <MaxTileCol>525520072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623674</MinTileRow>
            <MaxTileRow>682767807</MaxTileRow>
            <MinTileCol>1050819783</MinTileCol>
            <MaxTileCol>1051040144</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>100y_3c_diff_0c</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3147871616959 -43.86954392313133</ows:LowerCorner>
        <ows:UpperCorner>172.38866892073 -43.8346956274462</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:100y_3c_diff_0c</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3A100y_3c_diff_0c" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666498</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332997</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209529</MinTileCol>
            <MaxTileCol>8211251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665994</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419059</MinTileCol>
            <MaxTileCol>16422502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331989</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838118</MinTileCol>
            <MaxTileCol>32845004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663979</MinTileRow>
            <MaxTileRow>42672987</MaxTileRow>
            <MinTileCol>65676236</MinTileCol>
            <MaxTileCol>65690009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327959</MinTileRow>
            <MaxTileRow>85345975</MaxTileRow>
            <MinTileCol>131352472</MinTileCol>
            <MaxTileCol>131380018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655918</MinTileRow>
            <MaxTileRow>170691951</MaxTileRow>
            <MinTileCol>262704945</MinTileCol>
            <MaxTileCol>262760036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311837</MinTileRow>
            <MaxTileRow>341383903</MaxTileRow>
            <MinTileCol>525409891</MinTileCol>
            <MaxTileCol>525520072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623674</MinTileRow>
            <MaxTileRow>682767807</MaxTileRow>
            <MinTileCol>1050819783</MinTileCol>
            <MaxTileCol>1051040144</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_diff_0c/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>injection_points</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.90748854890373 -46.11645937248543</ows:LowerCorner>
        <ows:UpperCorner>168.98562449658758 -46.06182083213712</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="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-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>3</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6194</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12389</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24779</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49558</MaxTileRow>
            <MinTileCol>127033</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99116</MaxTileRow>
            <MinTileCol>254066</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198233</MaxTileRow>
            <MinTileCol>508133</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396467</MaxTileRow>
            <MinTileCol>1016266</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792617</MinTileRow>
            <MaxTileRow>792935</MaxTileRow>
            <MinTileCol>2032533</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585235</MinTileRow>
            <MaxTileRow>1585871</MaxTileRow>
            <MinTileCol>4065066</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2640</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5281</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10562</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21125</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42237</MinTileRow>
            <MaxTileRow>42251</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84474</MinTileRow>
            <MaxTileRow>84502</MaxTileRow>
            <MinTileCol>127033</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168948</MinTileRow>
            <MaxTileRow>169005</MaxTileRow>
            <MinTileCol>254066</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337896</MinTileRow>
            <MaxTileRow>338010</MaxTileRow>
            <MinTileCol>508133</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675792</MinTileRow>
            <MaxTileRow>676021</MaxTileRow>
            <MinTileCol>1016266</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351584</MinTileRow>
            <MaxTileRow>1352043</MaxTileRow>
            <MinTileCol>2032533</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703168</MinTileRow>
            <MaxTileRow>2704086</MaxTileRow>
            <MinTileCol>4065066</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406336</MinTileRow>
            <MaxTileRow>5408172</MaxTileRow>
            <MinTileCol>8130133</MinTileCol>
            <MaxTileCol>8131954</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812673</MinTileRow>
            <MaxTileRow>10816345</MaxTileRow>
            <MinTileCol>16260267</MinTileCol>
            <MaxTileCol>16263908</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625347</MinTileRow>
            <MaxTileRow>21632690</MaxTileRow>
            <MinTileCol>32520534</MinTileCol>
            <MaxTileCol>32527817</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250694</MinTileRow>
            <MaxTileRow>43265380</MaxTileRow>
            <MinTileCol>65041069</MinTileCol>
            <MaxTileCol>65055635</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501388</MinTileRow>
            <MaxTileRow>86530760</MaxTileRow>
            <MinTileCol>130082139</MinTileCol>
            <MaxTileCol>130111271</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002777</MinTileRow>
            <MaxTileRow>173061521</MaxTileRow>
            <MinTileCol>260164279</MinTileCol>
            <MaxTileCol>260222542</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005555</MinTileRow>
            <MaxTileRow>346123043</MaxTileRow>
            <MinTileCol>520328559</MinTileCol>
            <MaxTileCol>520445084</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692011110</MinTileRow>
            <MaxTileRow>692246087</MaxTileRow>
            <MinTileCol>1040657119</MinTileCol>
            <MaxTileCol>1040890169</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-flood-model-inputs:injection_points/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-flood-model-inputs:injection_points/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-flood-model-inputs:injection_points/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-flood-model-inputs:injection_points/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-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="http://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="http://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="http://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="http://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="http://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="http://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>nz_building_outlines</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.9055941494813 -46.13641375660738</ows:LowerCorner>
        <ows:UpperCorner>168.98589553012928 -46.06166984758917</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-buildings:nz_building_outlines</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>polygon</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-buildings%3Anz_building_outlines" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>3</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198263</MaxTileRow>
            <MinTileCol>508130</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396526</MaxTileRow>
            <MinTileCol>1016261</MinTileCol>
            <MaxTileCol>1016495</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792616</MinTileRow>
            <MaxTileRow>793052</MaxTileRow>
            <MinTileCol>2032522</MinTileCol>
            <MaxTileCol>2032990</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585233</MinTileRow>
            <MaxTileRow>1586104</MaxTileRow>
            <MinTileCol>4065044</MinTileCol>
            <MaxTileCol>4065980</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84513</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169026</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338052</MaxTileRow>
            <MinTileCol>508130</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676105</MaxTileRow>
            <MinTileCol>1016261</MinTileCol>
            <MaxTileCol>1016495</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351582</MinTileRow>
            <MaxTileRow>1352210</MaxTileRow>
            <MinTileCol>2032522</MinTileCol>
            <MaxTileCol>2032990</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703165</MinTileRow>
            <MaxTileRow>2704421</MaxTileRow>
            <MinTileCol>4065044</MinTileCol>
            <MaxTileCol>4065980</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406331</MinTileRow>
            <MaxTileRow>5408843</MaxTileRow>
            <MinTileCol>8130089</MinTileCol>
            <MaxTileCol>8131960</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812663</MinTileRow>
            <MaxTileRow>10817686</MaxTileRow>
            <MinTileCol>16260179</MinTileCol>
            <MaxTileCol>16263921</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625326</MinTileRow>
            <MaxTileRow>21635373</MaxTileRow>
            <MinTileCol>32520358</MinTileCol>
            <MaxTileCol>32527843</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250653</MinTileRow>
            <MaxTileRow>43270747</MaxTileRow>
            <MinTileCol>65040716</MinTileCol>
            <MaxTileCol>65055686</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501307</MinTileRow>
            <MaxTileRow>86541495</MaxTileRow>
            <MinTileCol>130081433</MinTileCol>
            <MaxTileCol>130111372</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002615</MinTileRow>
            <MaxTileRow>173082990</MaxTileRow>
            <MinTileCol>260162867</MinTileCol>
            <MaxTileCol>260222744</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005230</MinTileRow>
            <MaxTileRow>346165980</MaxTileRow>
            <MinTileCol>520325734</MinTileCol>
            <MaxTileCol>520445488</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010461</MinTileRow>
            <MaxTileRow>692331961</MaxTileRow>
            <MinTileCol>1040651469</MinTileCol>
            <MaxTileCol>1040890977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-buildings:nz_building_outlines/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>scenario5_40yr_lowtide_slr2150_max</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>167.9377887832845 -46.35944922301398</ows:LowerCorner>
        <ows:UpperCorner>168.02791682993382 -46.32451475939033</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:scenario5_40yr_lowtide_slr2150_max</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Ascenario5_40yr_lowtide_slr2150_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>3</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>30</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>61</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>989</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>775</MinTileRow>
            <MaxTileRow>775</MaxTileRow>
            <MinTileCol>1979</MinTileCol>
            <MaxTileCol>1979</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1551</MinTileRow>
            <MaxTileRow>1551</MaxTileRow>
            <MinTileCol>3958</MinTileCol>
            <MaxTileCol>3959</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3102</MinTileRow>
            <MaxTileRow>3102</MaxTileRow>
            <MinTileCol>7917</MinTileCol>
            <MaxTileCol>7919</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6204</MinTileRow>
            <MaxTileRow>6205</MaxTileRow>
            <MinTileCol>15835</MinTileCol>
            <MaxTileCol>15839</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12408</MinTileRow>
            <MaxTileRow>12411</MaxTileRow>
            <MinTileCol>31670</MinTileCol>
            <MaxTileCol>31678</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24817</MinTileRow>
            <MaxTileRow>24823</MaxTileRow>
            <MinTileCol>63340</MinTileCol>
            <MaxTileCol>63356</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49634</MinTileRow>
            <MaxTileRow>49646</MaxTileRow>
            <MinTileCol>126680</MinTileCol>
            <MaxTileCol>126713</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99268</MinTileRow>
            <MaxTileRow>99293</MaxTileRow>
            <MinTileCol>253360</MinTileCol>
            <MaxTileCol>253426</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198536</MinTileRow>
            <MaxTileRow>198587</MaxTileRow>
            <MinTileCol>506721</MinTileCol>
            <MaxTileCol>506852</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>397073</MinTileRow>
            <MaxTileRow>397175</MaxTileRow>
            <MinTileCol>1013442</MinTileCol>
            <MaxTileCol>1013704</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>794147</MinTileRow>
            <MaxTileRow>794351</MaxTileRow>
            <MinTileCol>2026884</MinTileCol>
            <MaxTileCol>2027409</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1588295</MinTileRow>
            <MaxTileRow>1588702</MaxTileRow>
            <MinTileCol>4053769</MinTileCol>
            <MaxTileCol>4054819</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>30</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>61</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>165</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>330</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>661</MinTileRow>
            <MaxTileRow>661</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>989</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1322</MinTileRow>
            <MaxTileRow>1322</MaxTileRow>
            <MinTileCol>1979</MinTileCol>
            <MaxTileCol>1979</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2644</MinTileRow>
            <MaxTileRow>2644</MaxTileRow>
            <MinTileCol>3958</MinTileCol>
            <MaxTileCol>3959</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5288</MinTileRow>
            <MaxTileRow>5289</MaxTileRow>
            <MinTileCol>7917</MinTileCol>
            <MaxTileCol>7919</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10576</MinTileRow>
            <MaxTileRow>10578</MaxTileRow>
            <MinTileCol>15835</MinTileCol>
            <MaxTileCol>15839</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21153</MinTileRow>
            <MaxTileRow>21157</MaxTileRow>
            <MinTileCol>31670</MinTileCol>
            <MaxTileCol>31678</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42306</MinTileRow>
            <MaxTileRow>42315</MaxTileRow>
            <MinTileCol>63340</MinTileCol>
            <MaxTileCol>63356</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84612</MinTileRow>
            <MaxTileRow>84630</MaxTileRow>
            <MinTileCol>126680</MinTileCol>
            <MaxTileCol>126713</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>169224</MinTileRow>
            <MaxTileRow>169261</MaxTileRow>
            <MinTileCol>253360</MinTileCol>
            <MaxTileCol>253426</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>338448</MinTileRow>
            <MaxTileRow>338522</MaxTileRow>
            <MinTileCol>506721</MinTileCol>
            <MaxTileCol>506852</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>676897</MinTileRow>
            <MaxTileRow>677044</MaxTileRow>
            <MinTileCol>1013442</MinTileCol>
            <MaxTileCol>1013704</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1353794</MinTileRow>
            <MaxTileRow>1354089</MaxTileRow>
            <MinTileCol>2026884</MinTileCol>
            <MaxTileCol>2027409</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2707589</MinTileRow>
            <MaxTileRow>2708179</MaxTileRow>
            <MinTileCol>4053769</MinTileCol>
            <MaxTileCol>4054819</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5415179</MinTileRow>
            <MaxTileRow>5416358</MaxTileRow>
            <MinTileCol>8107538</MinTileCol>
            <MaxTileCol>8109638</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10830359</MinTileRow>
            <MaxTileRow>10832717</MaxTileRow>
            <MinTileCol>16215076</MinTileCol>
            <MaxTileCol>16219276</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21660718</MinTileRow>
            <MaxTileRow>21665434</MaxTileRow>
            <MinTileCol>32430152</MinTileCol>
            <MaxTileCol>32438552</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43321436</MinTileRow>
            <MaxTileRow>43330869</MaxTileRow>
            <MinTileCol>64860304</MinTileCol>
            <MaxTileCol>64877105</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86642873</MinTileRow>
            <MaxTileRow>86661739</MaxTileRow>
            <MinTileCol>129720609</MinTileCol>
            <MaxTileCol>129754211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173285746</MinTileRow>
            <MaxTileRow>173323479</MaxTileRow>
            <MinTileCol>259441219</MinTileCol>
            <MaxTileCol>259508423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346571493</MinTileRow>
            <MaxTileRow>346646958</MaxTileRow>
            <MinTileCol>518882438</MinTileCol>
            <MaxTileCol>519016847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>693142986</MinTileRow>
            <MaxTileRow>693293917</MaxTileRow>
            <MinTileCol>1037764877</MinTileCol>
            <MaxTileCol>1038033695</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_40yr_lowtide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_40yr_lowtide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_40yr_lowtide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_40yr_lowtide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_40yr_lowtide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_40yr_lowtide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_40yr_lowtide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_40yr_lowtide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_40yr_lowtide_slr2150_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_40yr_lowtide_slr2150_max/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario5_40yr_lowtide_slr2150_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="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Aroads" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32065</MinTileCol>
            <MaxTileCol>32073</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24362</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64131</MinTileCol>
            <MaxTileCol>64147</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48725</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128262</MinTileCol>
            <MaxTileCol>128294</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97451</MinTileRow>
            <MaxTileRow>97481</MaxTileRow>
            <MinTileCol>256525</MinTileCol>
            <MaxTileCol>256589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194902</MinTileRow>
            <MaxTileRow>194963</MaxTileRow>
            <MinTileCol>513051</MinTileCol>
            <MaxTileCol>513179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389804</MinTileRow>
            <MaxTileRow>389927</MaxTileRow>
            <MinTileCol>1026102</MinTileCol>
            <MaxTileCol>1026359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779609</MinTileRow>
            <MaxTileRow>779855</MaxTileRow>
            <MinTileCol>2052205</MinTileCol>
            <MaxTileCol>2052719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559219</MinTileRow>
            <MaxTileRow>1559711</MaxTileRow>
            <MinTileCol>4104410</MinTileCol>
            <MaxTileCol>4105438</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>650</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1301</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2603</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5207</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8016</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10415</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16032</MinTileCol>
            <MaxTileCol>16036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20831</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32065</MinTileCol>
            <MaxTileCol>32073</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41662</MinTileRow>
            <MaxTileRow>41673</MaxTileRow>
            <MinTileCol>64131</MinTileCol>
            <MaxTileCol>64147</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83325</MinTileRow>
            <MaxTileRow>83346</MaxTileRow>
            <MinTileCol>128262</MinTileCol>
            <MaxTileCol>128294</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166650</MinTileRow>
            <MaxTileRow>166692</MaxTileRow>
            <MinTileCol>256525</MinTileCol>
            <MaxTileCol>256589</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333300</MinTileRow>
            <MaxTileRow>333385</MaxTileRow>
            <MinTileCol>513051</MinTileCol>
            <MaxTileCol>513179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666601</MinTileRow>
            <MaxTileRow>666771</MaxTileRow>
            <MinTileCol>1026102</MinTileCol>
            <MaxTileCol>1026359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333202</MinTileRow>
            <MaxTileRow>1333543</MaxTileRow>
            <MinTileCol>2052205</MinTileCol>
            <MaxTileCol>2052719</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666404</MinTileRow>
            <MaxTileRow>2667087</MaxTileRow>
            <MinTileCol>4104410</MinTileCol>
            <MaxTileCol>4105438</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332808</MinTileRow>
            <MaxTileRow>5334174</MaxTileRow>
            <MinTileCol>8208820</MinTileCol>
            <MaxTileCol>8210876</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665617</MinTileRow>
            <MaxTileRow>10668348</MaxTileRow>
            <MinTileCol>16417640</MinTileCol>
            <MaxTileCol>16421753</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331235</MinTileRow>
            <MaxTileRow>21336697</MaxTileRow>
            <MinTileCol>32835281</MinTileCol>
            <MaxTileCol>32843507</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42662470</MinTileRow>
            <MaxTileRow>42673394</MaxTileRow>
            <MinTileCol>65670563</MinTileCol>
            <MaxTileCol>65687015</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85324941</MinTileRow>
            <MaxTileRow>85346788</MaxTileRow>
            <MinTileCol>131341127</MinTileCol>
            <MaxTileCol>131374030</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170649883</MinTileRow>
            <MaxTileRow>170693576</MaxTileRow>
            <MinTileCol>262682255</MinTileCol>
            <MaxTileCol>262748060</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341299767</MinTileRow>
            <MaxTileRow>341387152</MaxTileRow>
            <MinTileCol>525364511</MinTileCol>
            <MaxTileCol>525496120</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682599535</MinTileRow>
            <MaxTileRow>682774304</MaxTileRow>
            <MinTileCol>1050729022</MinTileCol>
            <MaxTileCol>1050992240</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:roads/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>output_1</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.90599572632266 -46.1358560862954</ows:LowerCorner>
        <ows:UpperCorner>168.98567286512676 -46.061783034086325</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="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-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>3</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198262</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396524</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792617</MinTileRow>
            <MaxTileRow>793048</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585234</MinTileRow>
            <MaxTileRow>1586097</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84512</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169025</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338051</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676103</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351583</MinTileRow>
            <MaxTileRow>1352206</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703167</MinTileRow>
            <MaxTileRow>2704412</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406335</MinTileRow>
            <MaxTileRow>5408824</MaxTileRow>
            <MinTileCol>8130098</MinTileCol>
            <MaxTileCol>8131955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812671</MinTileRow>
            <MaxTileRow>10817649</MaxTileRow>
            <MinTileCol>16260197</MinTileCol>
            <MaxTileCol>16263911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625342</MinTileRow>
            <MaxTileRow>21635298</MaxTileRow>
            <MinTileCol>32520395</MinTileCol>
            <MaxTileCol>32527822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250684</MinTileRow>
            <MaxTileRow>43270597</MaxTileRow>
            <MinTileCol>65040791</MinTileCol>
            <MaxTileCol>65055644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501368</MinTileRow>
            <MaxTileRow>86541195</MaxTileRow>
            <MinTileCol>130081583</MinTileCol>
            <MaxTileCol>130111289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002737</MinTileRow>
            <MaxTileRow>173082390</MaxTileRow>
            <MinTileCol>260163166</MinTileCol>
            <MaxTileCol>260222578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005474</MinTileRow>
            <MaxTileRow>346164780</MaxTileRow>
            <MinTileCol>520326333</MinTileCol>
            <MaxTileCol>520445156</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010948</MinTileRow>
            <MaxTileRow>692329561</MaxTileRow>
            <MinTileCol>1040652667</MinTileCol>
            <MaxTileCol>1040890313</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_1/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-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="http://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="http://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="http://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="http://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="http://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="http://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>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="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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="http://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>output_2</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.90599572632266 -46.1358560862954</ows:LowerCorner>
        <ows:UpperCorner>168.98567286512676 -46.061783034086325</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="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-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>3</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198262</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396524</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792617</MinTileRow>
            <MaxTileRow>793048</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585234</MinTileRow>
            <MaxTileRow>1586097</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84512</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169025</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338051</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676103</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351583</MinTileRow>
            <MaxTileRow>1352206</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703167</MinTileRow>
            <MaxTileRow>2704412</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406335</MinTileRow>
            <MaxTileRow>5408824</MaxTileRow>
            <MinTileCol>8130098</MinTileCol>
            <MaxTileCol>8131955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812671</MinTileRow>
            <MaxTileRow>10817649</MaxTileRow>
            <MinTileCol>16260197</MinTileCol>
            <MaxTileCol>16263911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625342</MinTileRow>
            <MaxTileRow>21635298</MaxTileRow>
            <MinTileCol>32520395</MinTileCol>
            <MaxTileCol>32527822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250684</MinTileRow>
            <MaxTileRow>43270597</MaxTileRow>
            <MinTileCol>65040791</MinTileCol>
            <MaxTileCol>65055644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501368</MinTileRow>
            <MaxTileRow>86541195</MaxTileRow>
            <MinTileCol>130081583</MinTileCol>
            <MaxTileCol>130111289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002737</MinTileRow>
            <MaxTileRow>173082390</MaxTileRow>
            <MinTileCol>260163166</MinTileCol>
            <MaxTileCol>260222578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005474</MinTileRow>
            <MaxTileRow>346164780</MaxTileRow>
            <MinTileCol>520326333</MinTileCol>
            <MaxTileCol>520445156</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010948</MinTileRow>
            <MaxTileRow>692329561</MaxTileRow>
            <MinTileCol>1040652667</MinTileCol>
            <MaxTileCol>1040890313</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_2/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-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="http://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="http://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="http://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="http://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="http://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="http://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>output_3</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.90599572632266 -46.1358560862954</ows:LowerCorner>
        <ows:UpperCorner>168.98567286512676 -46.061783034086325</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-dt-model-outputs:output_3</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-dt-model-outputs%3Aoutput_3" 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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198262</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396524</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792617</MinTileRow>
            <MaxTileRow>793048</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585234</MinTileRow>
            <MaxTileRow>1586097</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84512</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169025</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338051</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676103</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351583</MinTileRow>
            <MaxTileRow>1352206</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703167</MinTileRow>
            <MaxTileRow>2704412</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406335</MinTileRow>
            <MaxTileRow>5408824</MaxTileRow>
            <MinTileCol>8130098</MinTileCol>
            <MaxTileCol>8131955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812671</MinTileRow>
            <MaxTileRow>10817649</MaxTileRow>
            <MinTileCol>16260197</MinTileCol>
            <MaxTileCol>16263911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625342</MinTileRow>
            <MaxTileRow>21635298</MaxTileRow>
            <MinTileCol>32520395</MinTileCol>
            <MaxTileCol>32527822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250684</MinTileRow>
            <MaxTileRow>43270597</MaxTileRow>
            <MinTileCol>65040791</MinTileCol>
            <MaxTileCol>65055644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501368</MinTileRow>
            <MaxTileRow>86541195</MaxTileRow>
            <MinTileCol>130081583</MinTileCol>
            <MaxTileCol>130111289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002737</MinTileRow>
            <MaxTileRow>173082390</MaxTileRow>
            <MinTileCol>260163166</MinTileCol>
            <MaxTileCol>260222578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005474</MinTileRow>
            <MaxTileRow>346164780</MaxTileRow>
            <MinTileCol>520326333</MinTileCol>
            <MaxTileCol>520445156</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010948</MinTileRow>
            <MaxTileRow>692329561</MaxTileRow>
            <MinTileCol>1040652667</MinTileCol>
            <MaxTileCol>1040890313</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_3/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_3/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_3/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>output_4</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.90599572632266 -46.1358560862954</ows:LowerCorner>
        <ows:UpperCorner>168.98567286512676 -46.061783034086325</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-dt-model-outputs:output_4</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-dt-model-outputs%3Aoutput_4" 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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198262</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396524</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792617</MinTileRow>
            <MaxTileRow>793048</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585234</MinTileRow>
            <MaxTileRow>1586097</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84512</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169025</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338051</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676103</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351583</MinTileRow>
            <MaxTileRow>1352206</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703167</MinTileRow>
            <MaxTileRow>2704412</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406335</MinTileRow>
            <MaxTileRow>5408824</MaxTileRow>
            <MinTileCol>8130098</MinTileCol>
            <MaxTileCol>8131955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812671</MinTileRow>
            <MaxTileRow>10817649</MaxTileRow>
            <MinTileCol>16260197</MinTileCol>
            <MaxTileCol>16263911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625342</MinTileRow>
            <MaxTileRow>21635298</MaxTileRow>
            <MinTileCol>32520395</MinTileCol>
            <MaxTileCol>32527822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250684</MinTileRow>
            <MaxTileRow>43270597</MaxTileRow>
            <MinTileCol>65040791</MinTileCol>
            <MaxTileCol>65055644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501368</MinTileRow>
            <MaxTileRow>86541195</MaxTileRow>
            <MinTileCol>130081583</MinTileCol>
            <MaxTileCol>130111289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002737</MinTileRow>
            <MaxTileRow>173082390</MaxTileRow>
            <MinTileCol>260163166</MinTileCol>
            <MaxTileCol>260222578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005474</MinTileRow>
            <MaxTileRow>346164780</MaxTileRow>
            <MinTileCol>520326333</MinTileCol>
            <MaxTileCol>520445156</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010948</MinTileRow>
            <MaxTileRow>692329561</MaxTileRow>
            <MinTileCol>1040652667</MinTileCol>
            <MaxTileCol>1040890313</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_4/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_4/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_4/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>output_5</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.90599572632266 -46.1358560862954</ows:LowerCorner>
        <ows:UpperCorner>168.98567286512676 -46.061783034086325</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-dt-model-outputs:output_5</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-dt-model-outputs%3Aoutput_5" 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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198262</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396524</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792617</MinTileRow>
            <MaxTileRow>793048</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585234</MinTileRow>
            <MaxTileRow>1586097</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84512</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169025</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338051</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676103</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351583</MinTileRow>
            <MaxTileRow>1352206</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703167</MinTileRow>
            <MaxTileRow>2704412</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406335</MinTileRow>
            <MaxTileRow>5408824</MaxTileRow>
            <MinTileCol>8130098</MinTileCol>
            <MaxTileCol>8131955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812671</MinTileRow>
            <MaxTileRow>10817649</MaxTileRow>
            <MinTileCol>16260197</MinTileCol>
            <MaxTileCol>16263911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625342</MinTileRow>
            <MaxTileRow>21635298</MaxTileRow>
            <MinTileCol>32520395</MinTileCol>
            <MaxTileCol>32527822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250684</MinTileRow>
            <MaxTileRow>43270597</MaxTileRow>
            <MinTileCol>65040791</MinTileCol>
            <MaxTileCol>65055644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501368</MinTileRow>
            <MaxTileRow>86541195</MaxTileRow>
            <MinTileCol>130081583</MinTileCol>
            <MaxTileCol>130111289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002737</MinTileRow>
            <MaxTileRow>173082390</MaxTileRow>
            <MinTileCol>260163166</MinTileCol>
            <MaxTileCol>260222578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005474</MinTileRow>
            <MaxTileRow>346164780</MaxTileRow>
            <MinTileCol>520326333</MinTileCol>
            <MaxTileCol>520445156</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010948</MinTileRow>
            <MaxTileRow>692329561</MaxTileRow>
            <MinTileCol>1040652667</MinTileCol>
            <MaxTileCol>1040890313</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_5/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_5/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_5/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>output_6</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.90599572632266 -46.1358560862954</ows:LowerCorner>
        <ows:UpperCorner>168.98567286512676 -46.061783034086325</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-dt-model-outputs:output_6</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-dt-model-outputs%3Aoutput_6" 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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198262</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396524</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792617</MinTileRow>
            <MaxTileRow>793048</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585234</MinTileRow>
            <MaxTileRow>1586097</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84512</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169025</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338051</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676103</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351583</MinTileRow>
            <MaxTileRow>1352206</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703167</MinTileRow>
            <MaxTileRow>2704412</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406335</MinTileRow>
            <MaxTileRow>5408824</MaxTileRow>
            <MinTileCol>8130098</MinTileCol>
            <MaxTileCol>8131955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812671</MinTileRow>
            <MaxTileRow>10817649</MaxTileRow>
            <MinTileCol>16260197</MinTileCol>
            <MaxTileCol>16263911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625342</MinTileRow>
            <MaxTileRow>21635298</MaxTileRow>
            <MinTileCol>32520395</MinTileCol>
            <MaxTileCol>32527822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250684</MinTileRow>
            <MaxTileRow>43270597</MaxTileRow>
            <MinTileCol>65040791</MinTileCol>
            <MaxTileCol>65055644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501368</MinTileRow>
            <MaxTileRow>86541195</MaxTileRow>
            <MinTileCol>130081583</MinTileCol>
            <MaxTileCol>130111289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002737</MinTileRow>
            <MaxTileRow>173082390</MaxTileRow>
            <MinTileCol>260163166</MinTileCol>
            <MaxTileCol>260222578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005474</MinTileRow>
            <MaxTileRow>346164780</MaxTileRow>
            <MinTileCol>520326333</MinTileCol>
            <MaxTileCol>520445156</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010948</MinTileRow>
            <MaxTileRow>692329561</MaxTileRow>
            <MinTileCol>1040652667</MinTileCol>
            <MaxTileCol>1040890313</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_6/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_6/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_6/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>output_7</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.90599572632266 -46.1358560862954</ows:LowerCorner>
        <ows:UpperCorner>168.98567286512676 -46.061783034086325</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>db-dt-model-outputs:output_7</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-dt-model-outputs%3Aoutput_7" 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>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>774</MinTileRow>
            <MaxTileRow>774</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1548</MinTileRow>
            <MaxTileRow>1548</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3096</MinTileRow>
            <MaxTileRow>3097</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6192</MinTileRow>
            <MaxTileRow>6195</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12384</MinTileRow>
            <MaxTileRow>12391</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24769</MinTileRow>
            <MaxTileRow>24782</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49538</MinTileRow>
            <MaxTileRow>49565</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99077</MinTileRow>
            <MaxTileRow>99131</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198154</MinTileRow>
            <MaxTileRow>198262</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>396308</MinTileRow>
            <MaxTileRow>396524</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>792617</MinTileRow>
            <MaxTileRow>793048</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1585234</MinTileRow>
            <MaxTileRow>1586097</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>124</MinTileCol>
            <MaxTileCol>124</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>164</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>248</MinTileCol>
            <MaxTileCol>248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>329</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>496</MinTileCol>
            <MaxTileCol>496</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>659</MinTileRow>
            <MaxTileRow>660</MaxTileRow>
            <MinTileCol>992</MinTileCol>
            <MaxTileCol>992</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1319</MinTileRow>
            <MaxTileRow>1320</MaxTileRow>
            <MinTileCol>1984</MinTileCol>
            <MaxTileCol>1985</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2639</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3969</MinTileCol>
            <MaxTileCol>3970</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5279</MinTileRow>
            <MaxTileRow>5282</MaxTileRow>
            <MinTileCol>7939</MinTileCol>
            <MaxTileCol>7941</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10559</MinTileRow>
            <MaxTileRow>10564</MaxTileRow>
            <MinTileCol>15879</MinTileCol>
            <MaxTileCol>15882</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21118</MinTileRow>
            <MaxTileRow>21128</MaxTileRow>
            <MinTileCol>31758</MinTileCol>
            <MaxTileCol>31765</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42236</MinTileRow>
            <MaxTileRow>42256</MaxTileRow>
            <MinTileCol>63516</MinTileCol>
            <MaxTileCol>63530</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84473</MinTileRow>
            <MaxTileRow>84512</MaxTileRow>
            <MinTileCol>127032</MinTileCol>
            <MaxTileCol>127061</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>168947</MinTileRow>
            <MaxTileRow>169025</MaxTileRow>
            <MinTileCol>254065</MinTileCol>
            <MaxTileCol>254123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>337895</MinTileRow>
            <MaxTileRow>338051</MaxTileRow>
            <MinTileCol>508131</MinTileCol>
            <MaxTileCol>508247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>675791</MinTileRow>
            <MaxTileRow>676103</MaxTileRow>
            <MinTileCol>1016262</MinTileCol>
            <MaxTileCol>1016494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1351583</MinTileRow>
            <MaxTileRow>1352206</MaxTileRow>
            <MinTileCol>2032524</MinTileCol>
            <MaxTileCol>2032988</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2703167</MinTileRow>
            <MaxTileRow>2704412</MaxTileRow>
            <MinTileCol>4065049</MinTileCol>
            <MaxTileCol>4065977</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5406335</MinTileRow>
            <MaxTileRow>5408824</MaxTileRow>
            <MinTileCol>8130098</MinTileCol>
            <MaxTileCol>8131955</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10812671</MinTileRow>
            <MaxTileRow>10817649</MaxTileRow>
            <MinTileCol>16260197</MinTileCol>
            <MaxTileCol>16263911</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21625342</MinTileRow>
            <MaxTileRow>21635298</MaxTileRow>
            <MinTileCol>32520395</MinTileCol>
            <MaxTileCol>32527822</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43250684</MinTileRow>
            <MaxTileRow>43270597</MaxTileRow>
            <MinTileCol>65040791</MinTileCol>
            <MaxTileCol>65055644</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86501368</MinTileRow>
            <MaxTileRow>86541195</MaxTileRow>
            <MinTileCol>130081583</MinTileCol>
            <MaxTileCol>130111289</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173002737</MinTileRow>
            <MaxTileRow>173082390</MaxTileRow>
            <MinTileCol>260163166</MinTileCol>
            <MaxTileCol>260222578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346005474</MinTileRow>
            <MaxTileRow>346164780</MaxTileRow>
            <MinTileCol>520326333</MinTileCol>
            <MaxTileCol>520445156</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>692010948</MinTileRow>
            <MaxTileRow>692329561</MaxTileRow>
            <MinTileCol>1040652667</MinTileCol>
            <MaxTileCol>1040890313</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_7/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_7/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-dt-model-outputs:output_7/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>wflow_catchment_boundary</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>168.2282422816609 -46.182366231656374</ows:LowerCorner>
        <ows:UpperCorner>169.24467294280345 -45.13660843633293</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="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=db-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>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>1986</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1537</MinTileRow>
            <MaxTileRow>1549</MaxTileRow>
            <MinTileCol>3962</MinTileCol>
            <MaxTileCol>3973</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3075</MinTileRow>
            <MaxTileRow>3098</MaxTileRow>
            <MinTileCol>7924</MinTileCol>
            <MaxTileCol>7947</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6150</MinTileRow>
            <MaxTileRow>6197</MaxTileRow>
            <MinTileCol>15848</MinTileCol>
            <MaxTileCol>15894</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12300</MinTileRow>
            <MaxTileRow>12395</MaxTileRow>
            <MinTileCol>31696</MinTileCol>
            <MaxTileCol>31789</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24600</MinTileRow>
            <MaxTileRow>24791</MaxTileRow>
            <MinTileCol>63393</MinTileCol>
            <MaxTileCol>63578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49201</MinTileRow>
            <MaxTileRow>49582</MaxTileRow>
            <MinTileCol>126786</MinTileCol>
            <MaxTileCol>127156</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>98403</MinTileRow>
            <MaxTileRow>99164</MaxTileRow>
            <MinTileCol>253572</MinTileCol>
            <MaxTileCol>254312</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>196806</MinTileRow>
            <MaxTileRow>198329</MaxTileRow>
            <MinTileCol>507144</MinTileCol>
            <MaxTileCol>508624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>393613</MinTileRow>
            <MaxTileRow>396659</MaxTileRow>
            <MinTileCol>1014288</MinTileCol>
            <MaxTileCol>1017248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>787227</MinTileRow>
            <MaxTileRow>793319</MaxTileRow>
            <MinTileCol>2028576</MinTileCol>
            <MaxTileCol>2034497</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1574455</MinTileRow>
            <MaxTileRow>1586639</MaxTileRow>
            <MinTileCol>4057153</MinTileCol>
            <MaxTileCol>4068995</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>1986</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2624</MinTileRow>
            <MaxTileRow>2641</MaxTileRow>
            <MinTileCol>3962</MinTileCol>
            <MaxTileCol>3973</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5249</MinTileRow>
            <MaxTileRow>5283</MaxTileRow>
            <MinTileCol>7924</MinTileCol>
            <MaxTileCol>7947</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10499</MinTileRow>
            <MaxTileRow>10567</MaxTileRow>
            <MinTileCol>15848</MinTileCol>
            <MaxTileCol>15894</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20998</MinTileRow>
            <MaxTileRow>21134</MaxTileRow>
            <MinTileCol>31696</MinTileCol>
            <MaxTileCol>31789</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41996</MinTileRow>
            <MaxTileRow>42268</MaxTileRow>
            <MinTileCol>63393</MinTileCol>
            <MaxTileCol>63578</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83992</MinTileRow>
            <MaxTileRow>84537</MaxTileRow>
            <MinTileCol>126786</MinTileCol>
            <MaxTileCol>127156</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>167985</MinTileRow>
            <MaxTileRow>169074</MaxTileRow>
            <MinTileCol>253572</MinTileCol>
            <MaxTileCol>254312</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>335970</MinTileRow>
            <MaxTileRow>338149</MaxTileRow>
            <MinTileCol>507144</MinTileCol>
            <MaxTileCol>508624</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>671940</MinTileRow>
            <MaxTileRow>676298</MaxTileRow>
            <MinTileCol>1014288</MinTileCol>
            <MaxTileCol>1017248</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1343880</MinTileRow>
            <MaxTileRow>1352597</MaxTileRow>
            <MinTileCol>2028576</MinTileCol>
            <MaxTileCol>2034497</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2687761</MinTileRow>
            <MaxTileRow>2705194</MaxTileRow>
            <MinTileCol>4057153</MinTileCol>
            <MaxTileCol>4068995</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5375522</MinTileRow>
            <MaxTileRow>5410389</MaxTileRow>
            <MinTileCol>8114306</MinTileCol>
            <MaxTileCol>8137990</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10751045</MinTileRow>
            <MaxTileRow>10820778</MaxTileRow>
            <MinTileCol>16228612</MinTileCol>
            <MaxTileCol>16275981</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21502091</MinTileRow>
            <MaxTileRow>21641557</MaxTileRow>
            <MinTileCol>32457224</MinTileCol>
            <MaxTileCol>32551962</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43004182</MinTileRow>
            <MaxTileRow>43283114</MaxTileRow>
            <MinTileCol>64914449</MinTileCol>
            <MaxTileCol>65103925</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86008364</MinTileRow>
            <MaxTileRow>86566229</MaxTileRow>
            <MinTileCol>129828898</MinTileCol>
            <MaxTileCol>130207851</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>172016729</MinTileRow>
            <MaxTileRow>173132458</MaxTileRow>
            <MinTileCol>259657797</MinTileCol>
            <MaxTileCol>260415702</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>344033458</MinTileRow>
            <MaxTileRow>346264917</MaxTileRow>
            <MinTileCol>519315594</MinTileCol>
            <MaxTileCol>520831405</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>688066917</MinTileRow>
            <MaxTileRow>692529835</MaxTileRow>
            <MinTileCol>1038631189</MinTileCol>
            <MaxTileCol>1041662811</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:wflow_catchment_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:wflow_catchment_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:wflow_catchment_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-intermediate-wflow:wflow_catchment_boundary/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/db-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="http://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="http://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="http://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="http://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="http://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="http://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>scenario1_past_event_noSLR_2_year_max</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>167.9377887832845 -46.35944922301398</ows:LowerCorner>
        <ows:UpperCorner>168.02791682993382 -46.32451475939033</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:scenario1_past_event_noSLR_2_year_max</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Ascenario1_past_event_noSLR_2_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>3</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>30</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>61</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>989</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>775</MinTileRow>
            <MaxTileRow>775</MaxTileRow>
            <MinTileCol>1979</MinTileCol>
            <MaxTileCol>1979</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1551</MinTileRow>
            <MaxTileRow>1551</MaxTileRow>
            <MinTileCol>3958</MinTileCol>
            <MaxTileCol>3959</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3102</MinTileRow>
            <MaxTileRow>3102</MaxTileRow>
            <MinTileCol>7917</MinTileCol>
            <MaxTileCol>7919</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6204</MinTileRow>
            <MaxTileRow>6205</MaxTileRow>
            <MinTileCol>15835</MinTileCol>
            <MaxTileCol>15839</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12408</MinTileRow>
            <MaxTileRow>12411</MaxTileRow>
            <MinTileCol>31670</MinTileCol>
            <MaxTileCol>31678</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24817</MinTileRow>
            <MaxTileRow>24823</MaxTileRow>
            <MinTileCol>63340</MinTileCol>
            <MaxTileCol>63356</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49634</MinTileRow>
            <MaxTileRow>49646</MaxTileRow>
            <MinTileCol>126680</MinTileCol>
            <MaxTileCol>126713</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99268</MinTileRow>
            <MaxTileRow>99293</MaxTileRow>
            <MinTileCol>253360</MinTileCol>
            <MaxTileCol>253426</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198536</MinTileRow>
            <MaxTileRow>198587</MaxTileRow>
            <MinTileCol>506721</MinTileCol>
            <MaxTileCol>506852</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>397073</MinTileRow>
            <MaxTileRow>397175</MaxTileRow>
            <MinTileCol>1013442</MinTileCol>
            <MaxTileCol>1013704</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>794147</MinTileRow>
            <MaxTileRow>794351</MaxTileRow>
            <MinTileCol>2026884</MinTileCol>
            <MaxTileCol>2027409</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1588295</MinTileRow>
            <MaxTileRow>1588702</MaxTileRow>
            <MinTileCol>4053769</MinTileCol>
            <MaxTileCol>4054819</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>30</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>61</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>165</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>330</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>661</MinTileRow>
            <MaxTileRow>661</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>989</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1322</MinTileRow>
            <MaxTileRow>1322</MaxTileRow>
            <MinTileCol>1979</MinTileCol>
            <MaxTileCol>1979</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2644</MinTileRow>
            <MaxTileRow>2644</MaxTileRow>
            <MinTileCol>3958</MinTileCol>
            <MaxTileCol>3959</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5288</MinTileRow>
            <MaxTileRow>5289</MaxTileRow>
            <MinTileCol>7917</MinTileCol>
            <MaxTileCol>7919</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10576</MinTileRow>
            <MaxTileRow>10578</MaxTileRow>
            <MinTileCol>15835</MinTileCol>
            <MaxTileCol>15839</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21153</MinTileRow>
            <MaxTileRow>21157</MaxTileRow>
            <MinTileCol>31670</MinTileCol>
            <MaxTileCol>31678</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42306</MinTileRow>
            <MaxTileRow>42315</MaxTileRow>
            <MinTileCol>63340</MinTileCol>
            <MaxTileCol>63356</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84612</MinTileRow>
            <MaxTileRow>84630</MaxTileRow>
            <MinTileCol>126680</MinTileCol>
            <MaxTileCol>126713</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>169224</MinTileRow>
            <MaxTileRow>169261</MaxTileRow>
            <MinTileCol>253360</MinTileCol>
            <MaxTileCol>253426</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>338448</MinTileRow>
            <MaxTileRow>338522</MaxTileRow>
            <MinTileCol>506721</MinTileCol>
            <MaxTileCol>506852</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>676897</MinTileRow>
            <MaxTileRow>677044</MaxTileRow>
            <MinTileCol>1013442</MinTileCol>
            <MaxTileCol>1013704</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1353794</MinTileRow>
            <MaxTileRow>1354089</MaxTileRow>
            <MinTileCol>2026884</MinTileCol>
            <MaxTileCol>2027409</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2707589</MinTileRow>
            <MaxTileRow>2708179</MaxTileRow>
            <MinTileCol>4053769</MinTileCol>
            <MaxTileCol>4054819</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5415179</MinTileRow>
            <MaxTileRow>5416358</MaxTileRow>
            <MinTileCol>8107538</MinTileCol>
            <MaxTileCol>8109638</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10830359</MinTileRow>
            <MaxTileRow>10832717</MaxTileRow>
            <MinTileCol>16215076</MinTileCol>
            <MaxTileCol>16219276</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21660718</MinTileRow>
            <MaxTileRow>21665434</MaxTileRow>
            <MinTileCol>32430152</MinTileCol>
            <MaxTileCol>32438552</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43321436</MinTileRow>
            <MaxTileRow>43330869</MaxTileRow>
            <MinTileCol>64860304</MinTileCol>
            <MaxTileCol>64877105</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86642873</MinTileRow>
            <MaxTileRow>86661739</MaxTileRow>
            <MinTileCol>129720609</MinTileCol>
            <MaxTileCol>129754211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173285746</MinTileRow>
            <MaxTileRow>173323479</MaxTileRow>
            <MinTileCol>259441219</MinTileCol>
            <MaxTileCol>259508423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346571493</MinTileRow>
            <MaxTileRow>346646958</MaxTileRow>
            <MinTileCol>518882438</MinTileCol>
            <MaxTileCol>519016847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>693142986</MinTileRow>
            <MaxTileRow>693293917</MaxTileRow>
            <MinTileCol>1037764877</MinTileCol>
            <MaxTileCol>1038033695</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_2_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_2_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_2_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_2_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_2_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_2_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_2_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_2_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_2_year_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_2_year_max/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario1_past_event_noSLR_2_year_max/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>100y_3c_thresholded_0-1_3857_32b</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3147871616959 -43.86954392313133</ows:LowerCorner>
        <ows:UpperCorner>172.38866892073 -43.8346956274462</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:100y_3c_thresholded_0-1_3857_32b</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3A100y_3c_thresholded_0-1_3857_32b" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666498</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332997</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209529</MinTileCol>
            <MaxTileCol>8211251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665994</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419059</MinTileCol>
            <MaxTileCol>16422502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331989</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838118</MinTileCol>
            <MaxTileCol>32845004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663979</MinTileRow>
            <MaxTileRow>42672987</MaxTileRow>
            <MinTileCol>65676236</MinTileCol>
            <MaxTileCol>65690009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327959</MinTileRow>
            <MaxTileRow>85345975</MaxTileRow>
            <MinTileCol>131352472</MinTileCol>
            <MaxTileCol>131380018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655918</MinTileRow>
            <MaxTileRow>170691951</MaxTileRow>
            <MinTileCol>262704945</MinTileCol>
            <MaxTileCol>262760036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311837</MinTileRow>
            <MaxTileRow>341383903</MaxTileRow>
            <MinTileCol>525409891</MinTileCol>
            <MaxTileCol>525520072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623674</MinTileRow>
            <MaxTileRow>682767807</MaxTileRow>
            <MinTileCol>1050819783</MinTileCol>
            <MaxTileCol>1051040144</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_3c_thresholded_0-1_3857_32b/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>scenario2_40yr_hightide_max</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>167.9377887832845 -46.35944922301398</ows:LowerCorner>
        <ows:UpperCorner>168.02791682993382 -46.32451475939033</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:scenario2_40yr_hightide_max</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3Ascenario2_40yr_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>3</MinTileRow>
            <MaxTileRow>3</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>6</MinTileRow>
            <MaxTileRow>6</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>12</MinTileRow>
            <MaxTileRow>12</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>30</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>24</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>61</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>48</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>96</MinTileRow>
            <MaxTileRow>96</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>193</MinTileRow>
            <MaxTileRow>193</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>387</MinTileRow>
            <MaxTileRow>387</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>989</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>775</MinTileRow>
            <MaxTileRow>775</MaxTileRow>
            <MinTileCol>1979</MinTileCol>
            <MaxTileCol>1979</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1551</MinTileRow>
            <MaxTileRow>1551</MaxTileRow>
            <MinTileCol>3958</MinTileCol>
            <MaxTileCol>3959</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3102</MinTileRow>
            <MaxTileRow>3102</MaxTileRow>
            <MinTileCol>7917</MinTileCol>
            <MaxTileCol>7919</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6204</MinTileRow>
            <MaxTileRow>6205</MaxTileRow>
            <MinTileCol>15835</MinTileCol>
            <MaxTileCol>15839</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12408</MinTileRow>
            <MaxTileRow>12411</MaxTileRow>
            <MinTileCol>31670</MinTileCol>
            <MaxTileCol>31678</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24817</MinTileRow>
            <MaxTileRow>24823</MaxTileRow>
            <MinTileCol>63340</MinTileCol>
            <MaxTileCol>63356</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>49634</MinTileRow>
            <MaxTileRow>49646</MaxTileRow>
            <MinTileCol>126680</MinTileCol>
            <MaxTileCol>126713</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>99268</MinTileRow>
            <MaxTileRow>99293</MaxTileRow>
            <MinTileCol>253360</MinTileCol>
            <MaxTileCol>253426</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>198536</MinTileRow>
            <MaxTileRow>198587</MaxTileRow>
            <MinTileCol>506721</MinTileCol>
            <MaxTileCol>506852</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>397073</MinTileRow>
            <MaxTileRow>397175</MaxTileRow>
            <MinTileCol>1013442</MinTileCol>
            <MaxTileCol>1013704</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>794147</MinTileRow>
            <MaxTileRow>794351</MaxTileRow>
            <MinTileCol>2026884</MinTileCol>
            <MaxTileCol>2027409</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1588295</MinTileRow>
            <MaxTileRow>1588702</MaxTileRow>
            <MinTileCol>4053769</MinTileCol>
            <MaxTileCol>4054819</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>30</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>41</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>61</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>82</MinTileRow>
            <MaxTileRow>82</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>123</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>165</MinTileRow>
            <MaxTileRow>165</MaxTileRow>
            <MinTileCol>247</MinTileCol>
            <MaxTileCol>247</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>330</MinTileRow>
            <MaxTileRow>330</MaxTileRow>
            <MinTileCol>494</MinTileCol>
            <MaxTileCol>494</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>661</MinTileRow>
            <MaxTileRow>661</MaxTileRow>
            <MinTileCol>989</MinTileCol>
            <MaxTileCol>989</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1322</MinTileRow>
            <MaxTileRow>1322</MaxTileRow>
            <MinTileCol>1979</MinTileCol>
            <MaxTileCol>1979</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2644</MinTileRow>
            <MaxTileRow>2644</MaxTileRow>
            <MinTileCol>3958</MinTileCol>
            <MaxTileCol>3959</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5288</MinTileRow>
            <MaxTileRow>5289</MaxTileRow>
            <MinTileCol>7917</MinTileCol>
            <MaxTileCol>7919</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10576</MinTileRow>
            <MaxTileRow>10578</MaxTileRow>
            <MinTileCol>15835</MinTileCol>
            <MaxTileCol>15839</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>21153</MinTileRow>
            <MaxTileRow>21157</MaxTileRow>
            <MinTileCol>31670</MinTileCol>
            <MaxTileCol>31678</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>42306</MinTileRow>
            <MaxTileRow>42315</MaxTileRow>
            <MinTileCol>63340</MinTileCol>
            <MaxTileCol>63356</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>84612</MinTileRow>
            <MaxTileRow>84630</MaxTileRow>
            <MinTileCol>126680</MinTileCol>
            <MaxTileCol>126713</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>169224</MinTileRow>
            <MaxTileRow>169261</MaxTileRow>
            <MinTileCol>253360</MinTileCol>
            <MaxTileCol>253426</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>338448</MinTileRow>
            <MaxTileRow>338522</MaxTileRow>
            <MinTileCol>506721</MinTileCol>
            <MaxTileCol>506852</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>676897</MinTileRow>
            <MaxTileRow>677044</MaxTileRow>
            <MinTileCol>1013442</MinTileCol>
            <MaxTileCol>1013704</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1353794</MinTileRow>
            <MaxTileRow>1354089</MaxTileRow>
            <MinTileCol>2026884</MinTileCol>
            <MaxTileCol>2027409</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2707589</MinTileRow>
            <MaxTileRow>2708179</MaxTileRow>
            <MinTileCol>4053769</MinTileCol>
            <MaxTileCol>4054819</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5415179</MinTileRow>
            <MaxTileRow>5416358</MaxTileRow>
            <MinTileCol>8107538</MinTileCol>
            <MaxTileCol>8109638</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10830359</MinTileRow>
            <MaxTileRow>10832717</MaxTileRow>
            <MinTileCol>16215076</MinTileCol>
            <MaxTileCol>16219276</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21660718</MinTileRow>
            <MaxTileRow>21665434</MaxTileRow>
            <MinTileCol>32430152</MinTileCol>
            <MaxTileCol>32438552</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>43321436</MinTileRow>
            <MaxTileRow>43330869</MaxTileRow>
            <MinTileCol>64860304</MinTileCol>
            <MaxTileCol>64877105</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>86642873</MinTileRow>
            <MaxTileRow>86661739</MaxTileRow>
            <MinTileCol>129720609</MinTileCol>
            <MaxTileCol>129754211</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>173285746</MinTileRow>
            <MaxTileRow>173323479</MaxTileRow>
            <MinTileCol>259441219</MinTileCol>
            <MaxTileCol>259508423</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>346571493</MinTileRow>
            <MaxTileRow>346646958</MaxTileRow>
            <MinTileCol>518882438</MinTileCol>
            <MaxTileCol>519016847</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>693142986</MinTileRow>
            <MaxTileRow>693293917</MaxTileRow>
            <MinTileCol>1037764877</MinTileCol>
            <MaxTileCol>1038033695</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_40yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_40yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_40yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_40yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_40yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_40yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_40yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_40yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_40yr_hightide_max/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_40yr_hightide_max/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:scenario2_40yr_hightide_max/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>100y_0c_thresholded_0-1_3857_32b</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>172.3147871616959 -43.86954392313133</ows:LowerCorner>
        <ows:UpperCorner>172.38866892073 -43.8346956274462</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <ows:Identifier>static_files:100y_0c_thresholded_0-1_3857_32b</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>raster</ows:Identifier>
        <LegendURL format="image/png" xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%3A100y_0c_thresholded_0-1_3857_32b" width="20" height="20"/>
      </Style>
      <Format>image/png</Format>
      <Format>image/jpeg</Format>
      <InfoFormat>text/plain</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>application/vnd.ogc.gml/3.1.1</InfoFormat>
      <InfoFormat>text/xml</InfoFormat>
      <InfoFormat>text/html</InfoFormat>
      <InfoFormat>application/json</InfoFormat>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:4326</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:4</TileMatrix>
            <MinTileRow>11</MinTileRow>
            <MaxTileRow>11</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:5</TileMatrix>
            <MinTileRow>23</MinTileRow>
            <MaxTileRow>23</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>47</MinTileRow>
            <MaxTileRow>47</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>95</MinTileRow>
            <MaxTileRow>95</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>190</MinTileRow>
            <MaxTileRow>190</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>380</MinTileRow>
            <MaxTileRow>380</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>761</MinTileRow>
            <MaxTileRow>761</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1522</MinTileRow>
            <MaxTileRow>1523</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>3045</MinTileRow>
            <MaxTileRow>3046</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>6090</MinTileRow>
            <MaxTileRow>6092</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>12181</MinTileRow>
            <MaxTileRow>12185</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>24363</MinTileRow>
            <MaxTileRow>24370</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>48727</MinTileRow>
            <MaxTileRow>48740</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>97455</MinTileRow>
            <MaxTileRow>97480</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>194910</MinTileRow>
            <MaxTileRow>194961</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>389821</MinTileRow>
            <MaxTileRow>389923</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>779643</MinTileRow>
            <MaxTileRow>779846</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1559287</MinTileRow>
            <MaxTileRow>1559693</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>5</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>10</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>20</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>31</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>40</MinTileRow>
            <MaxTileRow>40</MaxTileRow>
            <MinTileCol>62</MinTileCol>
            <MaxTileCol>62</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>81</MinTileRow>
            <MaxTileRow>81</MaxTileRow>
            <MinTileCol>125</MinTileCol>
            <MaxTileCol>125</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>162</MinTileRow>
            <MaxTileRow>162</MaxTileRow>
            <MinTileCol>250</MinTileCol>
            <MaxTileCol>250</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>325</MinTileRow>
            <MaxTileRow>325</MaxTileRow>
            <MinTileCol>501</MinTileCol>
            <MaxTileCol>501</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>651</MinTileRow>
            <MaxTileRow>651</MaxTileRow>
            <MinTileCol>1002</MinTileCol>
            <MaxTileCol>1002</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1302</MinTileRow>
            <MaxTileRow>1302</MaxTileRow>
            <MinTileCol>2004</MinTileCol>
            <MaxTileCol>2004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2604</MinTileRow>
            <MaxTileRow>2604</MaxTileRow>
            <MinTileCol>4008</MinTileCol>
            <MaxTileCol>4009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>5208</MinTileRow>
            <MaxTileRow>5209</MaxTileRow>
            <MinTileCol>8017</MinTileCol>
            <MaxTileCol>8018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>10416</MinTileRow>
            <MaxTileRow>10418</MaxTileRow>
            <MinTileCol>16034</MinTileCol>
            <MaxTileCol>16037</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>20832</MinTileRow>
            <MaxTileRow>20836</MaxTileRow>
            <MinTileCol>32068</MinTileCol>
            <MaxTileCol>32075</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>41664</MinTileRow>
            <MaxTileRow>41672</MaxTileRow>
            <MinTileCol>64136</MinTileCol>
            <MaxTileCol>64150</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>83328</MinTileRow>
            <MaxTileRow>83345</MaxTileRow>
            <MinTileCol>128273</MinTileCol>
            <MaxTileCol>128300</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>166656</MinTileRow>
            <MaxTileRow>166691</MaxTileRow>
            <MinTileCol>256547</MinTileCol>
            <MaxTileCol>256601</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>333312</MinTileRow>
            <MaxTileRow>333382</MaxTileRow>
            <MinTileCol>513095</MinTileCol>
            <MaxTileCol>513203</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>666624</MinTileRow>
            <MaxTileRow>666765</MaxTileRow>
            <MinTileCol>1026191</MinTileCol>
            <MaxTileCol>1026406</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1333249</MinTileRow>
            <MaxTileRow>1333530</MaxTileRow>
            <MinTileCol>2052382</MinTileCol>
            <MaxTileCol>2052812</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2666498</MinTileRow>
            <MaxTileRow>2667061</MaxTileRow>
            <MinTileCol>4104764</MinTileCol>
            <MaxTileCol>4105625</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5332997</MinTileRow>
            <MaxTileRow>5334123</MaxTileRow>
            <MinTileCol>8209529</MinTileCol>
            <MaxTileCol>8211251</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10665994</MinTileRow>
            <MaxTileRow>10668246</MaxTileRow>
            <MinTileCol>16419059</MinTileCol>
            <MaxTileCol>16422502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>21331989</MinTileRow>
            <MaxTileRow>21336493</MaxTileRow>
            <MinTileCol>32838118</MinTileCol>
            <MaxTileCol>32845004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>42663979</MinTileRow>
            <MaxTileRow>42672987</MaxTileRow>
            <MinTileCol>65676236</MinTileCol>
            <MaxTileCol>65690009</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>85327959</MinTileRow>
            <MaxTileRow>85345975</MaxTileRow>
            <MinTileCol>131352472</MinTileCol>
            <MaxTileCol>131380018</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>170655918</MinTileRow>
            <MaxTileRow>170691951</MaxTileRow>
            <MinTileCol>262704945</MinTileCol>
            <MaxTileCol>262760036</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>341311837</MinTileRow>
            <MaxTileRow>341383903</MaxTileRow>
            <MinTileCol>525409891</MinTileCol>
            <MaxTileCol>525520072</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>682623674</MinTileRow>
            <MaxTileRow>682767807</MaxTileRow>
            <MinTileCol>1050819783</MinTileCol>
            <MaxTileCol>1051040144</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="application/vnd.ogc.gml/3.1.1" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml/3.1.1"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/xml"/>
      <ResourceURL format="text/html" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/html"/>
      <ResourceURL format="application/json" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/tilejson/png?format=application/json"/>
      <ResourceURL format="application/json" resourceType="TileJSON" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:100y_0c_thresholded_0-1_3857_32b/{style}/tilejson/jpeg?format=application/json"/>
    </Layer>
    <Layer>
      <ows:Title>pre-human_wetlands</ows:Title>
      <ows:WGS84BoundingBox>
        <ows:LowerCorner>166.26451320160444 -47.42139317091914</ows:LowerCorner>
        <ows:UpperCorner>179.4603360565693 -34.29193806216795</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="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/ows?service=WMS&amp;request=GetLegendGraphic&amp;version=1.1.0&amp;format=image%2Fpng&amp;width=20&amp;height=20&amp;layer=static_files%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>22</MinTileRow>
            <MaxTileRow>24</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:6</TileMatrix>
            <MinTileRow>44</MinTileRow>
            <MaxTileRow>48</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:7</TileMatrix>
            <MinTileRow>88</MinTileRow>
            <MaxTileRow>97</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:8</TileMatrix>
            <MinTileRow>176</MinTileRow>
            <MaxTileRow>195</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:9</TileMatrix>
            <MinTileRow>353</MinTileRow>
            <MaxTileRow>390</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:10</TileMatrix>
            <MinTileRow>707</MinTileRow>
            <MaxTileRow>781</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:11</TileMatrix>
            <MinTileRow>1414</MinTileRow>
            <MaxTileRow>1563</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:12</TileMatrix>
            <MinTileRow>2828</MinTileRow>
            <MaxTileRow>3127</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:13</TileMatrix>
            <MinTileRow>5656</MinTileRow>
            <MaxTileRow>6254</MaxTileRow>
            <MinTileCol>15758</MinTileCol>
            <MaxTileCol>16359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:14</TileMatrix>
            <MinTileRow>11313</MinTileRow>
            <MaxTileRow>12508</MaxTileRow>
            <MinTileCol>31517</MinTileCol>
            <MaxTileCol>32718</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:15</TileMatrix>
            <MinTileRow>22626</MinTileRow>
            <MaxTileRow>25016</MaxTileRow>
            <MinTileCol>63035</MinTileCol>
            <MaxTileCol>65437</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:16</TileMatrix>
            <MinTileRow>45253</MinTileRow>
            <MaxTileRow>50033</MaxTileRow>
            <MinTileCol>126071</MinTileCol>
            <MaxTileCol>130875</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:17</TileMatrix>
            <MinTileRow>90506</MinTileRow>
            <MaxTileRow>100067</MaxTileRow>
            <MinTileCol>252142</MinTileCol>
            <MaxTileCol>261751</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:18</TileMatrix>
            <MinTileRow>181013</MinTileRow>
            <MaxTileRow>200134</MaxTileRow>
            <MinTileCol>504284</MinTileCol>
            <MaxTileCol>523502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:19</TileMatrix>
            <MinTileRow>362026</MinTileRow>
            <MaxTileRow>400268</MaxTileRow>
            <MinTileCol>1008568</MinTileCol>
            <MaxTileCol>1047004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:20</TileMatrix>
            <MinTileRow>724053</MinTileRow>
            <MaxTileRow>800537</MaxTileRow>
            <MinTileCol>2017136</MinTileCol>
            <MaxTileCol>2094008</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:4326:21</TileMatrix>
            <MinTileRow>1448106</MinTileRow>
            <MaxTileRow>1601075</MaxTileRow>
            <MinTileCol>4034273</MinTileCol>
            <MaxTileCol>4188016</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:900913</TileMatrixSet>
        <TileMatrixSetLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:0</TileMatrix>
            <MinTileRow>0</MinTileRow>
            <MaxTileRow>0</MaxTileRow>
            <MinTileCol>0</MinTileCol>
            <MaxTileCol>0</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:1</TileMatrix>
            <MinTileRow>1</MinTileRow>
            <MaxTileRow>1</MaxTileRow>
            <MinTileCol>1</MinTileCol>
            <MaxTileCol>1</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:2</TileMatrix>
            <MinTileRow>2</MinTileRow>
            <MaxTileRow>2</MaxTileRow>
            <MinTileCol>3</MinTileCol>
            <MaxTileCol>3</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:3</TileMatrix>
            <MinTileRow>4</MinTileRow>
            <MaxTileRow>5</MaxTileRow>
            <MinTileCol>7</MinTileCol>
            <MaxTileCol>7</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:4</TileMatrix>
            <MinTileRow>9</MinTileRow>
            <MaxTileRow>10</MaxTileRow>
            <MinTileCol>15</MinTileCol>
            <MaxTileCol>15</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:5</TileMatrix>
            <MinTileRow>19</MinTileRow>
            <MaxTileRow>20</MaxTileRow>
            <MinTileCol>30</MinTileCol>
            <MaxTileCol>31</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:6</TileMatrix>
            <MinTileRow>38</MinTileRow>
            <MaxTileRow>41</MaxTileRow>
            <MinTileCol>61</MinTileCol>
            <MaxTileCol>63</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:7</TileMatrix>
            <MinTileRow>76</MinTileRow>
            <MaxTileRow>83</MaxTileRow>
            <MinTileCol>123</MinTileCol>
            <MaxTileCol>127</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:8</TileMatrix>
            <MinTileRow>153</MinTileRow>
            <MaxTileRow>166</MaxTileRow>
            <MinTileCol>246</MinTileCol>
            <MaxTileCol>255</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:9</TileMatrix>
            <MinTileRow>307</MinTileRow>
            <MaxTileRow>332</MaxTileRow>
            <MinTileCol>492</MinTileCol>
            <MaxTileCol>511</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:10</TileMatrix>
            <MinTileRow>615</MinTileRow>
            <MaxTileRow>665</MaxTileRow>
            <MinTileCol>984</MinTileCol>
            <MaxTileCol>1022</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:11</TileMatrix>
            <MinTileRow>1231</MinTileRow>
            <MaxTileRow>1331</MaxTileRow>
            <MinTileCol>1969</MinTileCol>
            <MaxTileCol>2044</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:12</TileMatrix>
            <MinTileRow>2463</MinTileRow>
            <MaxTileRow>2662</MaxTileRow>
            <MinTileCol>3939</MinTileCol>
            <MaxTileCol>4089</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:13</TileMatrix>
            <MinTileRow>4927</MinTileRow>
            <MaxTileRow>5324</MaxTileRow>
            <MinTileCol>7879</MinTileCol>
            <MaxTileCol>8179</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:14</TileMatrix>
            <MinTileRow>9855</MinTileRow>
            <MaxTileRow>10649</MaxTileRow>
            <MinTileCol>15758</MinTileCol>
            <MaxTileCol>16359</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:15</TileMatrix>
            <MinTileRow>19710</MinTileRow>
            <MaxTileRow>21299</MaxTileRow>
            <MinTileCol>31517</MinTileCol>
            <MaxTileCol>32718</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:16</TileMatrix>
            <MinTileRow>39420</MinTileRow>
            <MaxTileRow>42598</MaxTileRow>
            <MinTileCol>63035</MinTileCol>
            <MaxTileCol>65437</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:17</TileMatrix>
            <MinTileRow>78841</MinTileRow>
            <MaxTileRow>85196</MaxTileRow>
            <MinTileCol>126071</MinTileCol>
            <MaxTileCol>130875</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:18</TileMatrix>
            <MinTileRow>157682</MinTileRow>
            <MaxTileRow>170392</MaxTileRow>
            <MinTileCol>252142</MinTileCol>
            <MaxTileCol>261751</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:19</TileMatrix>
            <MinTileRow>315365</MinTileRow>
            <MaxTileRow>340785</MaxTileRow>
            <MinTileCol>504284</MinTileCol>
            <MaxTileCol>523502</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:20</TileMatrix>
            <MinTileRow>630730</MinTileRow>
            <MaxTileRow>681571</MaxTileRow>
            <MinTileCol>1008568</MinTileCol>
            <MaxTileCol>1047004</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:21</TileMatrix>
            <MinTileRow>1261460</MinTileRow>
            <MaxTileRow>1363142</MaxTileRow>
            <MinTileCol>2017136</MinTileCol>
            <MaxTileCol>2094008</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:22</TileMatrix>
            <MinTileRow>2522921</MinTileRow>
            <MaxTileRow>2726284</MaxTileRow>
            <MinTileCol>4034273</MinTileCol>
            <MaxTileCol>4188016</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:23</TileMatrix>
            <MinTileRow>5045843</MinTileRow>
            <MaxTileRow>5452569</MaxTileRow>
            <MinTileCol>8068547</MinTileCol>
            <MaxTileCol>8376032</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:24</TileMatrix>
            <MinTileRow>10091686</MinTileRow>
            <MaxTileRow>10905138</MaxTileRow>
            <MinTileCol>16137095</MinTileCol>
            <MaxTileCol>16752065</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:25</TileMatrix>
            <MinTileRow>20183372</MinTileRow>
            <MaxTileRow>21810277</MaxTileRow>
            <MinTileCol>32274191</MinTileCol>
            <MaxTileCol>33504131</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:26</TileMatrix>
            <MinTileRow>40366744</MinTileRow>
            <MaxTileRow>43620555</MaxTileRow>
            <MinTileCol>64548383</MinTileCol>
            <MaxTileCol>67008263</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:27</TileMatrix>
            <MinTileRow>80733489</MinTileRow>
            <MaxTileRow>87241111</MaxTileRow>
            <MinTileCol>129096767</MinTileCol>
            <MaxTileCol>134016526</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:28</TileMatrix>
            <MinTileRow>161466979</MinTileRow>
            <MaxTileRow>174482222</MaxTileRow>
            <MinTileCol>258193534</MinTileCol>
            <MaxTileCol>268033053</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:29</TileMatrix>
            <MinTileRow>322933958</MinTileRow>
            <MaxTileRow>348964444</MaxTileRow>
            <MinTileCol>516387069</MinTileCol>
            <MaxTileCol>536066106</MaxTileCol>
          </TileMatrixLimits>
          <TileMatrixLimits>
            <TileMatrix>EPSG:900913:30</TileMatrix>
            <MinTileRow>645867916</MinTileRow>
            <MaxTileRow>697928889</MaxTileRow>
            <MinTileCol>1032774138</MinTileCol>
            <MaxTileCol>1072132213</MaxTileCol>
          </TileMatrixLimits>
        </TileMatrixSetLimits>
      </TileMatrixSetLink>
      <ResourceURL format="image/png" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:pre-human_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/png"/>
      <ResourceURL format="image/jpeg" resourceType="tile" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:pre-human_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}?format=image/jpeg"/>
      <ResourceURL format="text/plain" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:pre-human_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=text/plain"/>
      <ResourceURL format="application/vnd.ogc.gml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files:pre-human_wetlands/{style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}/{J}/{I}?format=application/vnd.ogc.gml"/>
      <ResourceURL format="text/xml" resourceType="FeatureInfo" template="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/static_files: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="http://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="http://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="http://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="http://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="http://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="http://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="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts?SERVICE=wmts&amp;REQUEST=getcapabilities&amp;VERSION=1.0.0"/>
  <ServiceMetadataURL xlink:href="http://gs.fredt-demo.app.geospatial.ac.nz/geoserver/gwc/service/wmts/rest/WMTSCapabilities.xml"/>
</Capabilities>