<div dir="ltr">Ryan<div><br></div><div>Did you try something like this?</div><div><br></div><div><br></div><div><div>grids:</div><div> source_webmerc:</div><div> srs: EPSG:3857</div><div> res_factor: 2</div><div> num_levels: 22</div><div> bbox: [-20037508<b style="font-family:Helvetica,Arial,sans-serif;font-size:12.8px">.3428</b>,-20037508<b style="font-family:Helvetica,Arial,sans-serif;font-size:12.8px">.3428</b>,20037508<b style="font-family:Helvetica,Arial,sans-serif;font-size:12.8px">.3428</b>,20037508<b style="font-family:Helvetica,Arial,sans-serif;font-size:12.8px">.3428</b>]</div><div> bbox_srs: EPSG:3857</div><div> tile_size: [256,256]</div><div> origin: nw</div></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 26 September 2017 at 00:42, Ryan How <span dir="ltr"><<a href="mailto:ryan@bitworks.com.au" target="_blank">ryan@bitworks.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div 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:<wbr>Identifier><br>
<ows:SupportedCRS>EPSG:3857</<wbr>ows:SupportedCRS><br>
<TileMatrix><br>
<ows:Identifier>05</ows:<wbr>Identifier><br>
<ScaleDenominator>17471320.<wbr>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</<wbr>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>
</div>
<br>______________________________<wbr>_________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org">MapProxy@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapproxy" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/mapproxy</a><br></blockquote></div><br></div>