<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>here is the Get Capbilities file from the WMTS service <br><br><?xml version="1.0" encoding="utf-8"?><br><Capabilities xmlns="http://www.opengis.net/wmts/1.0" xmlns:gml="http://www.opengis.net/gml" 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" version="1.0.0" xsi:schemaLocation="http://www.opengis.net/wmts/1.0 http://schemas.opengis.net/wmts/1.0/wmtsGetCapabilities_response.xsd"><br>  <ows:ServiceIdentification><br>    <ows:Title>FOT ortofoto</ows:Title><br>    <ows:Abstract>Tilet version af Ortofoto forår.</ows:Abstract><br>    <ows:Keywords><br>      <ows:Keyword>orto_foraar</ows:Keyword><br>      <ows:Keyword>ortofoto</ows:Keyword><br>      <ows:Keyword>forår</ows:Keyword><br>      <ows:Keyword>foraar</ows:Keyword><br>      <ows:Keyword>WMTS</ows:Keyword><br>    </ows:Keywords><br>    <ows:ServiceType>OGC:WMTS</ows:ServiceType><br>    <ows:ServiceTypeVersion>1.0.0</ows:ServiceTypeVersion><br>    <ows:Fees>Kontakt Geodatastyrelsen</ows:Fees><br>    <ows:AccessConstraints>Kræver abonnement på Kortforsyningen</ows:AccessConstraints><br>  </ows:ServiceIdentification><br>  <ows:ServiceProvider><br>    <ows:ProviderName>Geodatastyrelsen</ows:ProviderName><br>    <ows:ProviderSite xlink:href="http://www.kortforsyningen.dk"/><br>    <ows:ServiceContact><br>      <ows:ContactInfo><br>        <ows:Phone><br>          <ows:Voice>+45 72 54 50 00</ows:Voice><br>          <ows:Facsimile>+45 38 88 99 10</ows:Facsimile><br>        </ows:Phone><br>        <ows:Address><br>          <ows:DeliveryPoint>Rentemestervej 8</ows:DeliveryPoint><br>          <ows:City>København NV</ows:City><br>          <ows:PostalCode>2400</ows:PostalCode><br>          <ows:Country>Danmark</ows:Country><br>          <ows:ElectronicMailAddress>kontakt@kortforsyningen.dk</ows:ElectronicMailAddress><br>        </ows:Address><br>      </ows:ContactInfo><br>    </ows:ServiceContact><br>  </ows:ServiceProvider><br>  <ows:OperationsMetadata><br>    <ows:Operation name="GetCapabilities"><br>      <ows:DCP><br>        <ows:HTTP><br>          <ows:Get xlink:href="http://kortforsyningen.kms.dk/orto_foraar?"><br>            <ows:Constraint name="GetEncoding"><br>              <ows:AllowedValues><br>                <ows:Value>KVP</ows:Value><br>              </ows:AllowedValues><br>            </ows:Constraint><br>          </ows:Get><br>        </ows:HTTP><br>      </ows:DCP><br>    </ows:Operation><br>    <ows:Operation name="GetTile"><br>      <ows:DCP><br>        <ows:HTTP><br>          <ows:Get xlink:href="http://kortforsyningen.kms.dk/orto_foraar?"><br>            <ows:Constraint name="GetEncoding"><br>              <ows:AllowedValues><br>                <ows:Value>KVP</ows:Value><br>              </ows:AllowedValues><br>            </ows:Constraint><br>          </ows:Get><br>        </ows:HTTP><br>      </ows:DCP><br>    </ows:Operation><br>  </ows:OperationsMetadata><br>  <Contents><br>    <Layer><br>      <ows:Title>orto_foraar</ows:Title><br>      <ows:Abstract>Tilet udgave af orto_foraar</ows:Abstract><br>      <ows:WGS84BoundingBox><br>        <ows:LowerCorner>3.32016 53.113655</ows:LowerCorner><br>        <ows:UpperCorner>17.55777 58.35397</ows:UpperCorner><br>      </ows:WGS84BoundingBox><br>      <ows:Identifier>orto_foraar</ows:Identifier><br>      <Style isDefault="true"><br>        <ows:Identifier>default</ows:Identifier><br>      </Style><br>      <Format>image/jpeg</Format><br>      <TileMatrixSetLink><br>        <TileMatrixSet>View1</TileMatrixSet><br>      </TileMatrixSetLink><br>    </Layer><br>    <TileMatrixSet><br>      <ows:Identifier>View1</ows:Identifier><br>      <ows:BoundingBox><br>        <ows:LowerCorner>120000 5900000</ows:LowerCorner><br>        <ows:UpperCorner>1000000 6500000</ows:UpperCorner><br>      </ows:BoundingBox><br>      <ows:SupportedCRS>urn:ogc:def:crs:EPSG::25832</ows:SupportedCRS><br>      <TileMatrix><br>        <ows:Identifier>L00</ows:Identifier><br>        <ScaleDenominator>5851428.57142857</ScaleDenominator><br>        <TopLeftCorner>120000 6500000</TopLeftCorner><br>        <TileWidth>256</TileWidth><br>        <TileHeight>256</TileHeight><br>        <MatrixWidth>3</MatrixWidth><br>        <MatrixHeight>2</MatrixHeight><br>      </TileMatrix><br>      <TileMatrix><br>        <ows:Identifier>L01</ows:Identifier><br>        <ScaleDenominator>2925714.28571429</ScaleDenominator><br>        <TopLeftCorner>120000 6500000</TopLeftCorner><br>        <TileWidth>256</TileWidth><br>        <TileHeight>256</TileHeight><br>        <MatrixWidth>6</MatrixWidth><br>        <MatrixHeight>4</MatrixHeight><br>      </TileMatrix><br>      <TileMatrix><br>        <ows:Identifier>L02</ows:Identifier><br>        <ScaleDenominator>1462857.14285714</ScaleDenominator><br>        <TopLeftCorner>120000 6500000</TopLeftCorner><br>        <TileWidth>256</TileWidth><br>        <TileHeight>256</TileHeight><br>        <MatrixWidth>12</MatrixWidth><br>        <MatrixHeight>8</MatrixHeight><br>      </TileMatrix><br>      <TileMatrix><br>        <ows:Identifier>L03</ows:Identifier><br>        <ScaleDenominator>731428.57142857</ScaleDenominator><br>        <TopLeftCorner>120000 6500000</TopLeftCorner><br>        <TileWidth>256</TileWidth><br>        <TileHeight>256</TileHeight><br>        <MatrixWidth>24</MatrixWidth><br>        <MatrixHeight>16</MatrixHeight><br>      </TileMatrix><br>      <TileMatrix><br>        <ows:Identifier>L04</ows:Identifier><br>        <ScaleDenominator>365714.28571429</ScaleDenominator><br>        <TopLeftCorner>120000 6500000</TopLeftCorner><br>        <TileWidth>256</TileWidth><br>        <TileHeight>256</TileHeight><br>        <MatrixWidth>48</MatrixWidth><br>        <MatrixHeight>32</MatrixHeight><br>      </TileMatrix><br>      <TileMatrix><br>        <ows:Identifier>L05</ows:Identifier><br>        <ScaleDenominator>182857.14285714</ScaleDenominator><br>        <TopLeftCorner>120000 6500000</TopLeftCorner><br>        <TileWidth>256</TileWidth><br>        <TileHeight>256</TileHeight><br>        <MatrixWidth>96</MatrixWidth><br>        <MatrixHeight>64</MatrixHeight><br>      </TileMatrix><br>      <TileMatrix><br>        <ows:Identifier>L06</ows:Identifier><br>        <ScaleDenominator>91428.57142857</ScaleDenominator><br>        <TopLeftCorner>120000 6500000</TopLeftCorner><br>        <TileWidth>256</TileWidth><br>        <TileHeight>256</TileHeight><br>        <MatrixWidth>192</MatrixWidth><br>        <MatrixHeight>128</MatrixHeight><br>      </TileMatrix><br>      <TileMatrix><br>        <ows:Identifier>L07</ows:Identifier><br>        <ScaleDenominator>45714.28571429</ScaleDenominator><br>        <TopLeftCorner>120000 6500000</TopLeftCorner><br>        <TileWidth>256</TileWidth><br>        <TileHeight>256</TileHeight><br>        <MatrixWidth>384</MatrixWidth><br>        <MatrixHeight>256</MatrixHeight><br>      </TileMatrix><br>      <TileMatrix><br>        <ows:Identifier>L08</ows:Identifier><br>        <ScaleDenominator>22857.14285714</ScaleDenominator><br>        <TopLeftCorner>120000 6500000</TopLeftCorner><br>        <TileWidth>256</TileWidth><br>        <TileHeight>256</TileHeight><br>        <MatrixWidth>768</MatrixWidth><br>        <MatrixHeight>512</MatrixHeight><br>      </TileMatrix><br>      <TileMatrix><br>        <ows:Identifier>L09</ows:Identifier><br>        <ScaleDenominator>11428.57142857</ScaleDenominator><br>        <TopLeftCorner>120000 6500000</TopLeftCorner><br>        <TileWidth>256</TileWidth><br>        <TileHeight>256</TileHeight><br>        <MatrixWidth>1536</MatrixWidth><br>        <MatrixHeight>1024</MatrixHeight><br>      </TileMatrix><br>      <TileMatrix><br>        <ows:Identifier>L10</ows:Identifier><br>        <ScaleDenominator>5714.28571429</ScaleDenominator><br>        <TopLeftCorner>120000 6500000</TopLeftCorner><br>        <TileWidth>256</TileWidth><br>        <TileHeight>256</TileHeight><br>        <MatrixWidth>3072</MatrixWidth><br>        <MatrixHeight>2048</MatrixHeight><br>      </TileMatrix><br>      <TileMatrix><br>        <ows:Identifier>L11</ows:Identifier><br>        <ScaleDenominator>2857.14285714</ScaleDenominator><br>        <TopLeftCorner>120000 6500000</TopLeftCorner><br>        <TileWidth>256</TileWidth><br>        <TileHeight>256</TileHeight><br>        <MatrixWidth>6144</MatrixWidth><br>        <MatrixHeight>4096</MatrixHeight><br>      </TileMatrix><br>    </TileMatrixSet><br>  </Contents><br></Capabilities><br><br><br><div><hr id="stopSpelling">From: danodonohue@hotmail.com<br>To: mapproxy@lists.osgeo.org<br>Subject: seed a WMTS service and create a WMS service<br>Date: Wed, 7 Aug 2013 11:25:42 +0000<br><br>

<style><!--
.ExternalClass .ecxhmmessage P {
padding:0px;
}

.ExternalClass body.ecxhmmessage {
font-size:12pt;
font-family:Calibri;
}

--></style>
<div dir="ltr">Hi list <br>I am trying to create a WMS service based on a WMTS service and just cant seem to get it to work.<br>After seeding the WMTS service I can see that all the images in the cache a white or in the completely wrong order.<br>I should this is something to do with the grids I am using but can't seen to figure it out. Here is my set up .. any help / advice / hints or tips are welcome<br><br>services:<br>  demo:<br>  tms:<br>  wms:<br>    srs: ['EPSG:4326','EPSG:25832']<br>    image_formats: ['image/png','image/jpeg']<br> <br>     <br>layers:<br>  - name: DK_Ortofoto<br>    title: Ortofoto<br>    sources: [Ortofoto_Cache]<br><br>caches:<br>  Ortofoto_Cache:<br>    grids: [utm32n]<br>    meta_size: [4,4]<br>    sources: [Ortofoto_WMTS_Cache]<br>  Ortofoto_WMTS_Cache:<br>    grids: [DK_Grid_WMTS]<br>    #disable_storage: true<br>    meta_size: [4,4]<br>    sources: [Ortofoto_WMTS]<br>  <br>sources:<br>  Ortofoto_WMTS:<br>    #only to LO9<br>    type: tile<br>    url: http://kortforsyningen.kms.dk/orto_foraar?SERVICE=WMTS&LOGIN=name&PASSWORD=password&layer=orto_foraar&REQUEST=GetTile&VERSION=1.0.0&STYLE=default&TILEMATRIXSET=View1&TILEMATRIX=L0%(z)s&TILEROW=%(y)s&TILECOL=%(x)s&FORMAT=image%%2Fjpeg<br>    grid:  DK_Grid_WMTS<br>grids:<br>  utm32n:<br>    srs: 'EPSG:25832'<br>    bbox: [7.9,54.3,13.2,57.8]<br>    bbox_srs: 'EPSG:4326'<br>    origin: 'nw'<br>  DK_Grid:<br>    srs: 'EPSG:25832'<br>    bbox: [7.9,54.3,16.2,57.8]<br>    bbox_srs: 'EPSG:4326'<br>    #bbox: [7.9,54.3,13.2,57.8]<br>    #bbox_srs: 'EPSG:4326'<br>  DK_Grid_WMTS:<br>    srs: 'EPSG:25832'<br>    bbox: [7.9,54.3,16.2,57.8]<br>    bbox_srs: 'EPSG:4326'<br>    origin: "nw"<br><br>globals:<br>  #next are some global configuration options for MapProxy. They mostly explain themselves, or can be looked-up in the MapProxy docs.<br>  cache:<br>    # where to store the cached images<br>    base_dir: './cache_data'<br>    # where to store lockfiles<br>    lock_dir: './cache_data/lockfiles'<br>  # image/transformation options<br>  image:<br>      resampling_method: bilinear<br>      jpeg_quality: 90<br><br>      <br>seeds:<br>  Cache_DK1:<br>    caches: [Ortofoto_Cache]<br>    grids: [utm32n]<br>    coverages: [DK_square]<br>    levels:<br>      from: 0<br>      to: 5<br><br>coverages:<br>  DK_square: <br>    #srs:'EPSG:25832'<br>    bbox: [7.9,54.3,13.2,57.8]<br>    bbox_srs: 'EPSG:4326'<br>  DK_Buffer300:<br>    datasource: 'E:\ARTOGIS_Cache\DK.txt'<br>    srs: 'EPSG:25832'<br>  <br>                                         </div></div>                                        </div></body>
</html>