<?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"
  version="1.0.0">
  <ows:ServiceIdentification>
    <ows:Title>Current Lab Surface Currents</ows:Title>
    <ows:Abstract>Time-enabled OGC service (WMS-T and WMTS) providing pre-rendered surface current overlays from Current Lab forecast products. Select forecast hour via the TIME dimension or TIME query parameter.</ows:Abstract>
    <ows:ServiceType>OGC WMTS</ows:ServiceType>
    <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
    <ows:Fees>None</ows:Fees>
    <ows:AccessConstraints>None. Public preview.</ows:AccessConstraints>
  </ows:ServiceIdentification>
  <ows:ServiceProvider>
    <ows:ProviderName>Current Lab</ows:ProviderName>
    <ows:ProviderSite xlink:href="https://current-lab.com"/>
    <ows:ServiceContact>
      <ows:ContactInfo>
        <ows:Phone/>
        <ows:Address>
          <ows:ElectronicMailAddress></ows:ElectronicMailAddress>
        </ows:Address>
      </ows:ContactInfo>
    </ows:ServiceContact>
  </ows:ServiceProvider>
  <ows:OperationsMetadata>
    <ows:Operation name="GetCapabilities">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="https://tiles.current-lab.com/ows?SERVICE=WMTS&amp;VERSION=1.0.0&amp;REQUEST=GetCapabilities"/>
        </ows:HTTP>
      </ows:DCP>
      <ows:Parameter name="AcceptFormats">
        <ows:AllowedValues>
          <ows:Value>application/xml</ows:Value>
        </ows:AllowedValues>
      </ows:Parameter>
    </ows:Operation>
    <ows:Operation name="GetTile">
      <ows:DCP>
        <ows:HTTP>
          <ows:Get xlink:href="https://tiles.current-lab.com/ows"/>
        </ows:HTTP>
      </ows:DCP>
    </ows:Operation>
  </ows:OperationsMetadata>
  <Contents>
    <Layer>
      <ows:Title>Surface currents</ows:Title>
      <ows:Abstract>Arrow symbols indicate current direction; color indicates speed. Data are pre-rendered map tiles. Use GetTile on the EPSG:3857 tile matrix with TIME= to select a forecast valid time. REST tile URLs accept TIME as a query parameter (defaults to latest hour). Native map zoom levels z10–z15. Above z15, imagery is upscaled from the highest baked level.</ows:Abstract>
      <ows:Identifier>currents</ows:Identifier>
      <Style isDefault="true">
        <ows:Identifier>default</ows:Identifier>
      </Style>
      <Format>image/png</Format>
      <TileMatrixSetLink>
        <TileMatrixSet>EPSG:3857</TileMatrixSet>
      </TileMatrixSetLink>
      <TileMatrixSetLimits>
        <TileMatrixSet>EPSG:3857</TileMatrixSet>
        <TileMatrixLimits>
          <TileMatrix>10</TileMatrix>
          <MinTileRow>0</MinTileRow>
          <MaxTileRow>1023</MaxTileRow>
          <MinTileCol>0</MinTileCol>
          <MaxTileCol>1023</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>11</TileMatrix>
          <MinTileRow>0</MinTileRow>
          <MaxTileRow>2047</MaxTileRow>
          <MinTileCol>0</MinTileCol>
          <MaxTileCol>2047</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>12</TileMatrix>
          <MinTileRow>0</MinTileRow>
          <MaxTileRow>4095</MaxTileRow>
          <MinTileCol>0</MinTileCol>
          <MaxTileCol>4095</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>13</TileMatrix>
          <MinTileRow>0</MinTileRow>
          <MaxTileRow>8191</MaxTileRow>
          <MinTileCol>0</MinTileCol>
          <MaxTileCol>8191</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>14</TileMatrix>
          <MinTileRow>0</MinTileRow>
          <MaxTileRow>16383</MaxTileRow>
          <MinTileCol>0</MinTileCol>
          <MaxTileCol>16383</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>15</TileMatrix>
          <MinTileRow>0</MinTileRow>
          <MaxTileRow>32767</MaxTileRow>
          <MinTileCol>0</MinTileCol>
          <MaxTileCol>32767</MaxTileCol>
        </TileMatrixLimits>
      </TileMatrixSetLimits>
      <TileMatrixSetLink>
        <TileMatrixSet>GoogleMapsCompatible</TileMatrixSet>
      </TileMatrixSetLink>
      <TileMatrixSetLimits>
        <TileMatrixSet>GoogleMapsCompatible</TileMatrixSet>
        <TileMatrixLimits>
          <TileMatrix>10</TileMatrix>
          <MinTileRow>0</MinTileRow>
          <MaxTileRow>1023</MaxTileRow>
          <MinTileCol>0</MinTileCol>
          <MaxTileCol>1023</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>11</TileMatrix>
          <MinTileRow>0</MinTileRow>
          <MaxTileRow>2047</MaxTileRow>
          <MinTileCol>0</MinTileCol>
          <MaxTileCol>2047</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>12</TileMatrix>
          <MinTileRow>0</MinTileRow>
          <MaxTileRow>4095</MaxTileRow>
          <MinTileCol>0</MinTileCol>
          <MaxTileCol>4095</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>13</TileMatrix>
          <MinTileRow>0</MinTileRow>
          <MaxTileRow>8191</MaxTileRow>
          <MinTileCol>0</MinTileCol>
          <MaxTileCol>8191</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>14</TileMatrix>
          <MinTileRow>0</MinTileRow>
          <MaxTileRow>16383</MaxTileRow>
          <MinTileCol>0</MinTileCol>
          <MaxTileCol>16383</MaxTileCol>
        </TileMatrixLimits>
        <TileMatrixLimits>
          <TileMatrix>15</TileMatrix>
          <MinTileRow>0</MinTileRow>
          <MaxTileRow>32767</MaxTileRow>
          <MinTileCol>0</MinTileCol>
          <MaxTileCol>32767</MaxTileCol>
        </TileMatrixLimits>
      </TileMatrixSetLimits>
      <ResourceURL format="image/png" resourceType="tile" template="https://tiles.current-lab.com/ows/1.0.0/currents/default/EPSG:3857/{TileMatrix}/{TileRow}/{TileCol}.png"/>
      <ResourceURL format="image/png" resourceType="tile" template="https://tiles.current-lab.com/ows/1.0.0/currents/default/GoogleMapsCompatible/{TileMatrix}/{TileRow}/{TileCol}.png"/>
      <ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:1.3:CRS84">
        <ows:LowerCorner>-71.7300033569336 41.0</ows:LowerCorner>
        <ows:UpperCorner>-71.0 41.880001068115234</ows:UpperCorner>
      </ows:WGS84BoundingBox>
      <Dimension>
        <ows:Identifier>TIME</ows:Identifier>
        <Default>2026-08-27T22:00:00.000Z</Default>
        <UOM>ISO8601</UOM>
        <Value>2026-08-27T14:00:00.000Z</Value>
        <Value>2026-08-27T15:00:00.000Z</Value>
        <Value>2026-08-27T16:00:00.000Z</Value>
        <Value>2026-08-27T17:00:00.000Z</Value>
        <Value>2026-08-27T18:00:00.000Z</Value>
        <Value>2026-08-27T19:00:00.000Z</Value>
        <Value>2026-08-27T20:00:00.000Z</Value>
        <Value>2026-08-27T21:00:00.000Z</Value>
        <Value>2026-08-27T22:00:00.000Z</Value>
      </Dimension>
    </Layer>
    <TileMatrixSet>
      <ows:Identifier>EPSG:3857</ows:Identifier>
      <ows:SupportedCRS>urn:ogc:def:crs:EPSG::3857</ows:SupportedCRS>
      <TileMatrix>
        <ows:Identifier>10</ows:Identifier>
        <ScaleDenominator>545978.773465544684</ScaleDenominator>
        <TopLeftCorner>-20037508.342789244 20037508.342789244</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1024</MatrixWidth>
        <MatrixHeight>1024</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>11</ows:Identifier>
        <ScaleDenominator>272989.386732772342</ScaleDenominator>
        <TopLeftCorner>-20037508.342789244 20037508.342789244</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2048</MatrixWidth>
        <MatrixHeight>2048</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>12</ows:Identifier>
        <ScaleDenominator>136494.693366386171</ScaleDenominator>
        <TopLeftCorner>-20037508.342789244 20037508.342789244</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4096</MatrixWidth>
        <MatrixHeight>4096</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>13</ows:Identifier>
        <ScaleDenominator>68247.346683193085</ScaleDenominator>
        <TopLeftCorner>-20037508.342789244 20037508.342789244</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>8192</MatrixWidth>
        <MatrixHeight>8192</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>14</ows:Identifier>
        <ScaleDenominator>34123.673341596543</ScaleDenominator>
        <TopLeftCorner>-20037508.342789244 20037508.342789244</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>16384</MatrixWidth>
        <MatrixHeight>16384</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>15</ows:Identifier>
        <ScaleDenominator>17061.836670798271</ScaleDenominator>
        <TopLeftCorner>-20037508.342789244 20037508.342789244</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>32768</MatrixWidth>
        <MatrixHeight>32768</MatrixHeight>
      </TileMatrix>
    </TileMatrixSet>
    <TileMatrixSet>
      <ows:Identifier>GoogleMapsCompatible</ows:Identifier>
      <ows:SupportedCRS>urn:ogc:def:crs:EPSG::3857</ows:SupportedCRS>
      <WellKnownScaleSet>http://www.opengis.net/wmts/WellKnownScaleSets/OGC/1.0/GoogleMapsCompatible</WellKnownScaleSet>
      <TileMatrix>
        <ows:Identifier>10</ows:Identifier>
        <ScaleDenominator>545978.773465544684</ScaleDenominator>
        <TopLeftCorner>-20037508.342789244 20037508.342789244</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>1024</MatrixWidth>
        <MatrixHeight>1024</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>11</ows:Identifier>
        <ScaleDenominator>272989.386732772342</ScaleDenominator>
        <TopLeftCorner>-20037508.342789244 20037508.342789244</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>2048</MatrixWidth>
        <MatrixHeight>2048</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>12</ows:Identifier>
        <ScaleDenominator>136494.693366386171</ScaleDenominator>
        <TopLeftCorner>-20037508.342789244 20037508.342789244</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>4096</MatrixWidth>
        <MatrixHeight>4096</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>13</ows:Identifier>
        <ScaleDenominator>68247.346683193085</ScaleDenominator>
        <TopLeftCorner>-20037508.342789244 20037508.342789244</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>8192</MatrixWidth>
        <MatrixHeight>8192</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>14</ows:Identifier>
        <ScaleDenominator>34123.673341596543</ScaleDenominator>
        <TopLeftCorner>-20037508.342789244 20037508.342789244</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>16384</MatrixWidth>
        <MatrixHeight>16384</MatrixHeight>
      </TileMatrix>
      <TileMatrix>
        <ows:Identifier>15</ows:Identifier>
        <ScaleDenominator>17061.836670798271</ScaleDenominator>
        <TopLeftCorner>-20037508.342789244 20037508.342789244</TopLeftCorner>
        <TileWidth>256</TileWidth>
        <TileHeight>256</TileHeight>
        <MatrixWidth>32768</MatrixWidth>
        <MatrixHeight>32768</MatrixHeight>
      </TileMatrix>
    </TileMatrixSet>
  </Contents>
</Capabilities>
