<?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">
  <!-- Service Identification --> 
 <ows:ServiceIdentification>
	<ows:Title>base_ortho_aktuell</ows:Title>
	<ows:ServiceType>OGC WMTS</ows:ServiceType>
	<ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion>
</ows:ServiceIdentification> <!-- Operations Metadata --> <ows:OperationsMetadata>
	<ows:Operation name="GetCapabilities">
		<ows:DCP>
			<ows:HTTP>
				<ows:Get xlink:href="https://www.ag.ch/geoportal/rest/services/base_ortho_aktuell/MapServer/WMTS/1.0.0/WMTSCapabilities.xml">
					<ows:Constraint name="GetEncoding">
						<ows:AllowedValues>
							<ows:Value>RESTful</ows:Value>
						</ows:AllowedValues>
					</ows:Constraint>
				</ows:Get>
                <!-- add KVP binding in 10.1 -->
                <ows:Get xlink:href="https://www.ag.ch/geoportal/rest/services/base_ortho_aktuell/MapServer/WMTS?">
                  <ows:Constraint name="GetEncoding">
                    <ows:AllowedValues>
                      <ows:Value>KVP</ows:Value>
                    </ows:AllowedValues>
                  </ows:Constraint>
                </ows:Get>
    		</ows:HTTP>
    </ows:DCP>
	</ows:Operation>
	<ows:Operation name="GetTile">
		<ows:DCP>
			<ows:HTTP>
				<ows:Get xlink:href="https://www.ag.ch/geoportal/rest/services/base_ortho_aktuell/MapServer/WMTS/tile/1.0.0/">
					<ows:Constraint name="GetEncoding">
						<ows:AllowedValues>
							<ows:Value>RESTful</ows:Value>
						</ows:AllowedValues>
					</ows:Constraint>
				</ows:Get>
                <ows:Get xlink:href="https://www.ag.ch/geoportal/rest/services/base_ortho_aktuell/MapServer/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-->  
  <Layer>
    <ows:Title>base_ortho_aktuell</ows:Title> 
    <ows:Identifier>base_ortho_aktuell</ows:Identifier>
    <ows:BoundingBox crs="urn:ogc:def:crs:EPSG::2056">
	  <ows:LowerCorner>2617500.0000004657 1220000.000012806</ows:LowerCorner>
			<ows:UpperCorner>2677500.000056345 1274999.9999999998</ows:UpperCorner>
		</ows:BoundingBox>  
      <ows:WGS84BoundingBox crs="urn:ogc:def:crs:OGC:2:84">
      <ows:LowerCorner>7.670273272786625 47.127785253728455</ows:LowerCorner>
      <ows:UpperCorner>8.470689344926736 47.62683496086344</ows:UpperCorner>
    </ows:WGS84BoundingBox>
    <Style isDefault="true">
      <ows:Title>Default Style</ows:Title>
      <ows:Identifier>default</ows:Identifier>
    </Style>
    <Format>image/jpgpng</Format>
    <TileMatrixSetLink>
      <TileMatrixSet>default028mm</TileMatrixSet>
    </TileMatrixSetLink>

      <ResourceURL format="image/jpgpng" resourceType="tile" template="https://www.ag.ch/geoportal/rest/services/base_ortho_aktuell/MapServer/WMTS/tile/1.0.0/base_ortho_aktuell/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}" />
  </Layer> 
   <!--TileMatrixSet-->
   <TileMatrixSet>
     <ows:Title>TileMatrix using 0.28mm</ows:Title>
     <ows:Abstract>The tile matrix set that has scale values calculated based on the dpi defined by OGC specification (dpi assumes 0.28mm as the physical distance of a pixel).</ows:Abstract> 
     <ows:Identifier>default028mm</ows:Identifier>
     <ows:SupportedCRS>urn:ogc:def:crs:EPSG::2056</ows:SupportedCRS>
      <TileMatrix>
          <ows:Identifier>0</ows:Identifier>
          <ScaleDenominator>1785714.2857140615</ScaleDenominator>
          <TopLeftCorner>2617500.0 1275000.0</TopLeftCorner>  
          <TileWidth>256</TileWidth> 
          <TileHeight>256</TileHeight>
          <MatrixWidth>1</MatrixWidth> 
            <MatrixHeight>1</MatrixHeight>
          </TileMatrix>
          <TileMatrix>
          <ows:Identifier>1</ows:Identifier>
          <ScaleDenominator>892857.1428570307</ScaleDenominator>
          <TopLeftCorner>2617500.0 1275000.0</TopLeftCorner>  
          <TileWidth>256</TileWidth> 
          <TileHeight>256</TileHeight>
          <MatrixWidth>1</MatrixWidth> 
            <MatrixHeight>1</MatrixHeight>
          </TileMatrix>
          <TileMatrix>
          <ows:Identifier>2</ows:Identifier>
          <ScaleDenominator>357142.8571428122</ScaleDenominator>
          <TopLeftCorner>2617500.0 1275000.0</TopLeftCorner>  
          <TileWidth>256</TileWidth> 
          <TileHeight>256</TileHeight>
          <MatrixWidth>3</MatrixWidth> 
            <MatrixHeight>3</MatrixHeight>
          </TileMatrix>
          <TileMatrix>
          <ows:Identifier>3</ows:Identifier>
          <ScaleDenominator>178571.4285714061</ScaleDenominator>
          <TopLeftCorner>2617500.0 1275000.0</TopLeftCorner>  
          <TileWidth>256</TileWidth> 
          <TileHeight>256</TileHeight>
          <MatrixWidth>5</MatrixWidth> 
            <MatrixHeight>5</MatrixHeight>
          </TileMatrix>
          <TileMatrix>
          <ows:Identifier>4</ows:Identifier>
          <ScaleDenominator>71428.57142856244</ScaleDenominator>
          <TopLeftCorner>2617500.0 1275000.0</TopLeftCorner>  
          <TileWidth>256</TileWidth> 
          <TileHeight>256</TileHeight>
          <MatrixWidth>12</MatrixWidth> 
            <MatrixHeight>11</MatrixHeight>
          </TileMatrix>
          <TileMatrix>
          <ows:Identifier>5</ows:Identifier>
          <ScaleDenominator>35714.28571428122</ScaleDenominator>
          <TopLeftCorner>2617500.0 1275000.0</TopLeftCorner>  
          <TileWidth>256</TileWidth> 
          <TileHeight>256</TileHeight>
          <MatrixWidth>24</MatrixWidth> 
            <MatrixHeight>22</MatrixHeight>
          </TileMatrix>
          <TileMatrix>
          <ows:Identifier>6</ows:Identifier>
          <ScaleDenominator>17857.14285714061</ScaleDenominator>
          <TopLeftCorner>2617500.0 1275000.0</TopLeftCorner>  
          <TileWidth>256</TileWidth> 
          <TileHeight>256</TileHeight>
          <MatrixWidth>47</MatrixWidth> 
            <MatrixHeight>43</MatrixHeight>
          </TileMatrix>
          <TileMatrix>
          <ows:Identifier>7</ows:Identifier>
          <ScaleDenominator>8928.571428570305</ScaleDenominator>
          <TopLeftCorner>2617500.0 1275000.0</TopLeftCorner>  
          <TileWidth>256</TileWidth> 
          <TileHeight>256</TileHeight>
          <MatrixWidth>94</MatrixWidth> 
            <MatrixHeight>86</MatrixHeight>
          </TileMatrix>
          <TileMatrix>
          <ows:Identifier>8</ows:Identifier>
          <ScaleDenominator>7142.8571428562445</ScaleDenominator>
          <TopLeftCorner>2617500.0 1275000.0</TopLeftCorner>  
          <TileWidth>256</TileWidth> 
          <TileHeight>256</TileHeight>
          <MatrixWidth>118</MatrixWidth> 
            <MatrixHeight>108</MatrixHeight>
          </TileMatrix>
          <TileMatrix>
          <ows:Identifier>9</ows:Identifier>
          <ScaleDenominator>5357.142857142184</ScaleDenominator>
          <TopLeftCorner>2617500.0 1275000.0</TopLeftCorner>  
          <TileWidth>256</TileWidth> 
          <TileHeight>256</TileHeight>
          <MatrixWidth>157</MatrixWidth> 
            <MatrixHeight>144</MatrixHeight>
          </TileMatrix>
          <TileMatrix>
          <ows:Identifier>10</ows:Identifier>
          <ScaleDenominator>3571.4285714281223</ScaleDenominator>
          <TopLeftCorner>2617500.0 1275000.0</TopLeftCorner>  
          <TileWidth>256</TileWidth> 
          <TileHeight>256</TileHeight>
          <MatrixWidth>235</MatrixWidth> 
            <MatrixHeight>215</MatrixHeight>
          </TileMatrix>
          <TileMatrix>
          <ows:Identifier>11</ows:Identifier>
          <ScaleDenominator>1785.7142857140611</ScaleDenominator>
          <TopLeftCorner>2617500.0 1275000.0</TopLeftCorner>  
          <TileWidth>256</TileWidth> 
          <TileHeight>256</TileHeight>
          <MatrixWidth>469</MatrixWidth> 
            <MatrixHeight>430</MatrixHeight>
          </TileMatrix>
          <TileMatrix>
          <ows:Identifier>12</ows:Identifier>
          <ScaleDenominator>892.8571428570306</ScaleDenominator>
          <TopLeftCorner>2617500.0 1275000.0</TopLeftCorner>  
          <TileWidth>256</TileWidth> 
          <TileHeight>256</TileHeight>
          <MatrixWidth>938</MatrixWidth> 
            <MatrixHeight>860</MatrixHeight>
          </TileMatrix>
          <TileMatrix>
          <ows:Identifier>13</ows:Identifier>
          <ScaleDenominator>357.14285714281226</ScaleDenominator>
          <TopLeftCorner>2617500.0 1275000.0</TopLeftCorner>  
          <TileWidth>256</TileWidth> 
          <TileHeight>256</TileHeight>
          <MatrixWidth>2344</MatrixWidth> 
            <MatrixHeight>2149</MatrixHeight>
          </TileMatrix>
          </TileMatrixSet>
   </Contents>
<ServiceMetadataURL xlink:href="https://www.ag.ch/geoportal/rest/services/base_ortho_aktuell/MapServer/WMTS/1.0.0/WMTSCapabilities.xml" /> 
</Capabilities>
