<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><font face="Helvetica, Arial, sans-serif">Hi,</font></p>
<p><font face="Helvetica, Arial, sans-serif">I am accessing a WMTS
Server as a source for MapProxy. I am using the RESTful format
and have set it up as a tile source. So far so good.<br>
</font></p>
<p><font face="Helvetica, Arial, sans-serif">The problem I am having
is that the WMTS Server is advertising a slighty different
TopLeftCorner attribute in it's tile matrix to the standard
EPSG:3857 one. So all my tiles are ending up shifted to where
they should be, just a few metres in out in this case, but it is
enough so that it doesn't line up with other imagery and data
points.<br>
</font></p>
<p><font face="Helvetica, Arial, sans-serif">I am not sure how to
set this up in MapProxy to shift the tiles to the correct
position. I looked at setting up a new grid, however there
doesn't appear to be a way to reflect the TopLeftCorner element.<br>
</font></p>
<p><font face="Helvetica, Arial, sans-serif">Here is a snippet from
the Capabilities Document</font></p>
<p><font face="Helvetica, Arial, sans-serif"><TileMatrixSet><br>
<ows:Identifier>XXX</ows:Identifier><br>
<ows:SupportedCRS>EPSG:3857</ows:SupportedCRS><br>
<TileMatrix><br>
<ows:Identifier>05</ows:Identifier><br>
<ScaleDenominator>17471320.7509</ScaleDenominator><br>
<b><TopLeftCorner>-20037509.5428
20037506.7948</TopLeftCorner></b><br>
<TileWidth>256</TileWidth><br>
<TileHeight>256</TileHeight><br>
<MatrixWidth>32</MatrixWidth><br>
<MatrixHeight>32</MatrixHeight><br>
</TileMatrix><br>
...</font><br>
<font face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif"></TileMatrixSet></font></font></p>
<p><font face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif">You can compare this with the standard TopLeftCorner
for EPSG:3857 which is</font></font></p>
<p><font face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif"><TopLeftCorner>-2003750<b>8.3428</b>
2003750<b>8.3428</b></TopLeftCorner><br>
</font></font></p>
<p><font face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif">Can anyone point me in the right direction
how I might have MapProxy correctly load the tiles?</font></font></p>
<p><font face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif"><br>
</font></font></p>
<p><font face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif">So I expect that when it serves them up
along with other layers, it will need to request 4 tiles, stitch
them, then crop out the required tile and serve that up.<br>
</font></font></p>
<p><font face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif"><br>
</font></font></p>
<p><font face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif">Thanks, Ryan</font></font></p>
<p><font face="Helvetica, Arial, sans-serif"><font face="Helvetica,
Arial, sans-serif"><br>
</font></font></p>
</body>
</html>