Skip to content

Instantly share code, notes, and snippets.

@eliotjordan
Created December 14, 2021 19:14
Show Gist options
  • Save eliotjordan/da5a1c4ad1a1b8b2b7bd490d3929a53d to your computer and use it in GitHub Desktop.
Save eliotjordan/da5a1c4ad1a1b8b2b7bd490d3929a53d to your computer and use it in GitHub Desktop.
WMTSCapabilities.xml - Example
<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>"Cloud Optimized GeoTIFF"</ows:Title>
<ows:ServiceType>OGC WMTS</ows:ServiceType>
<ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
</ows:ServiceIdentification>
<ows:OperationsMetadata>
<ows:Operation name="GetCapabilities">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="https://d1c1k8bor4e6k7.cloudfront.net/mosaicjson/WMTSCapabilities.xml?id=e75fab0d85d5452ea01743868ecc770e&url=s3%3A%2F%2Ffiggy-geo-staging%2Fe7%2F5f%2Fab%2Fe75fab0d85d5452ea01743868ecc770e%2Fmosaic.json">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>RESTful</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
<ows:Operation name="GetTile">
<ows:DCP>
<ows:HTTP>
<ows:Get xlink:href="https://d1c1k8bor4e6k7.cloudfront.net/mosaicjson/WMTSCapabilities.xml?id=e75fab0d85d5452ea01743868ecc770e&url=s3%3A%2F%2Ffiggy-geo-staging%2Fe7%2F5f%2Fab%2Fe75fab0d85d5452ea01743868ecc770e%2Fmosaic.json">
<ows:Constraint name="GetEncoding">
<ows:AllowedValues>
<ows:Value>RESTful</ows:Value>
</ows:AllowedValues>
</ows:Constraint>
</ows:Get>
</ows:HTTP>
</ows:DCP>
</ows:Operation>
</ows:OperationsMetadata>
<Contents>
<Layer>
<ows:Title>Cloud Optimized GeoTIFF</ows:Title>
<ows:Identifier>cogeo</ows:Identifier>
<ows:Abstract>Cloud Optimized GeoTIFF</ows:Abstract>
<ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">
<ows:LowerCorner>29.50012207031262 36.00018414637565</ows:LowerCorner>
<ows:UpperCorner>31.000130985894202 39.00012207031247</ows:UpperCorner>
</ows:WGS84BoundingBox>
<Style isDefault="true">
<ows:Identifier>default</ows:Identifier>
</Style>
<Format>image/png</Format>
<TileMatrixSetLink>
<TileMatrixSet>WebMercatorQuad</TileMatrixSet>
</TileMatrixSetLink>
<ResourceURL format="image/png" resourceType="tile" template="https://d1c1k8bor4e6k7.cloudfront.net/mosaicjson/tiles/WebMercatorQuad/{TileMatrix}/{TileCol}/{TileRow}@1x.png?id=e75fab0d85d5452ea01743868ecc770e&url=s3%3A%2F%2Ffiggy-geo-staging%2Fe7%2F5f%2Fab%2Fe75fab0d85d5452ea01743868ecc770e%2Fmosaic.json"/>
</Layer>
<TileMatrixSet>
<ows:Identifier>WebMercatorQuad</ows:Identifier>
<ows:SupportedCRS>EPSG:3857</ows:SupportedCRS>
<TileMatrix>
<ows:Identifier>8</ows:Identifier>
<ScaleDenominator>2183915.09386217</ScaleDenominator>
<TopLeftCorner>-20037508.3427892 20037508.3427892</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>256</MatrixWidth>
<MatrixHeight>256</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>9</ows:Identifier>
<ScaleDenominator>1091957.54693108</ScaleDenominator>
<TopLeftCorner>-20037508.3427892 20037508.3427892</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>512</MatrixWidth>
<MatrixHeight>512</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>10</ows:Identifier>
<ScaleDenominator>545978.773465544</ScaleDenominator>
<TopLeftCorner>-20037508.3427892 20037508.3427892</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>1024</MatrixWidth>
<MatrixHeight>1024</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>11</ows:Identifier>
<ScaleDenominator>272989.386732772</ScaleDenominator>
<TopLeftCorner>-20037508.3427892 20037508.3427892</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>2048</MatrixWidth>
<MatrixHeight>2048</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>12</ows:Identifier>
<ScaleDenominator>136494.693366386</ScaleDenominator>
<TopLeftCorner>-20037508.3427892 20037508.3427892</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>4096</MatrixWidth>
<MatrixHeight>4096</MatrixHeight>
</TileMatrix>
<TileMatrix>
<ows:Identifier>13</ows:Identifier>
<ScaleDenominator>68247.346683193</ScaleDenominator>
<TopLeftCorner>-20037508.3427892 20037508.3427892</TopLeftCorner>
<TileWidth>256</TileWidth>
<TileHeight>256</TileHeight>
<MatrixWidth>8192</MatrixWidth>
<MatrixHeight>8192</MatrixHeight>
</TileMatrix>
</TileMatrixSet>
</Contents>
<ServiceMetadataURL xlink:href="https://d1c1k8bor4e6k7.cloudfront.net/mosaicjson/WMTSCapabilities.xml?id=e75fab0d85d5452ea01743868ecc770e&url=s3%3A%2F%2Ffiggy-geo-staging%2Fe7%2F5f%2Fab%2Fe75fab0d85d5452ea01743868ecc770e%2Fmosaic.json"/>
</Capabilities>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment