[MapProxy] High-dpi tiles from tileserver-gl

Travis Kirstine traviskirstine at gmail.com
Mon May 28 11:37:48 PDT 2018


worth trying the url encoded value for @  %40



On 28 May 2018 at 07:24, Matthias Woltering <woltering at gmail.com> wrote:

> Hi all,
>
> 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:
>
> low-res-url:
> http://my-tileserver-gl/styles/osm/10/1075/1342.png
>
> retina-url:
> http://my-tileserver-gl/styles/osm/10/1075/1342@2x.png
>
> see: <http://tileserver.readthedocs.io/en/latest/endpoints.html#
> static-images>
>
> I tried to add the string "@2x" to the template, but no luck.
>
> configuration:
> ==============
> sources:
>   my_tile_source_highdpi:
>     type: tile
>     grid: webmercator_hq
>     url: http://my-tileserver-gl/styles/osm/%(z)s/%(x)s/%(y)s at 2x.png
>
> grids:
>     webmercator:
>         base: GLOBAL_WEBMERCATOR
>     webmercator_hq:
>         srs: "EPSG:3857"
>         origin: nw
>         min_res: 78271.51696402048
>         tile_size: [512, 512]
>
> error:
> ======
> mapproxy.source.tile - WARNING - could not retrieve tile: No response from
> URL "http://2x.png": Name or service not known
>
> I also tried to escape the "@", but also no luck.
>
> 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?
>
> Thanks for your help!
>
>
> Matthias Woltering
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapproxy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20180528/8f396acc/attachment.html>


More information about the MapProxy mailing list