<div dir="ltr">worth trying the url encoded value for @  %40  <div><br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 28 May 2018 at 07:24, Matthias Woltering <span dir="ltr"><<a href="mailto:woltering@gmail.com" target="_blank">woltering@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
I would like to fetch high-dpi tiles from tileserver-gl via mapproxy. To get retina-tiles you have to add "@2x" or "@3x" to the tile-url:<br>
<br>
low-res-url:<br>
<a href="http://my-tileserver-gl/styles/osm/10/1075/1342.png" rel="noreferrer" target="_blank">http://my-tileserver-gl/styles<wbr>/osm/10/1075/1342.png</a><br>
<br>
retina-url:<br>
<a href="http://my-tileserver-gl/styles/osm/10/1075/1342@2x.png" rel="noreferrer" target="_blank">http://my-tileserver-gl/styles<wbr>/osm/10/1075/1342@2x.png</a><br>
<br>
see: <<a href="http://tileserver.readthedocs.io/en/latest/endpoints.html#static-images" rel="noreferrer" target="_blank">http://tileserver.readthedocs<wbr>.io/en/latest/endpoints.html#<wbr>static-images</a>><br>
<br>
I tried to add the string "@2x" to the template, but no luck.<br>
<br>
configuration:<br>
==============<br>
sources:<br>
  my_tile_source_highdpi:<br>
    type: tile<br>
    grid: webmercator_hq<br>
    url: <a href="http://my-tileserver-gl/styles/osm/%(z)s/%(x)s/%(y)s@2x.png" rel="noreferrer" target="_blank">http://my-tileserver-gl/styles<wbr>/osm/%(z)s/%(x)s/%(y)s@2x.png</a><br>
<br>
grids:<br>
    webmercator:<br>
        base: GLOBAL_WEBMERCATOR<br>
    webmercator_hq:<br>
        srs: "EPSG:3857"<br>
        origin: nw<br>
        min_res: 78271.51696402048<br>
        tile_size: [512, 512]<br>
<br>
error:<br>
======<br>
mapproxy.source.tile - WARNING - could not retrieve tile: No response from URL "<a href="http://2x.png" rel="noreferrer" target="_blank">http://2x.png</a>": Name or service not known<br>
<br>
I also tried to escape the "@", but also no luck.<br>
<br>
Do I have to change the class  TileURLTemplate in client/tile.py? Or is there a simpler method to solve the problem i.e. via configuration?<br>
<br>
Thanks for your help!<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
Matthias Woltering<br>
______________________________<wbr>_________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org" target="_blank">MapProxy@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapproxy" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailma<wbr>n/listinfo/mapproxy</a></font></span></blockquote></div><br></div>