Discussion:
[MapProxy] High-dpi tiles from tileserver-gl
Matthias Woltering
2018-05-28 11:24:44 UTC
Permalink
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:
Loading Image...

retina-url:
Loading Image...

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: Loading Image...

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 "Loading Image...": 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
Travis Kirstine
2018-05-28 18:37:48 UTC
Permalink
Post by Matthias Woltering
Hi all,
I would like to fetch high-dpi tiles from tileserver-gl via mapproxy. To
http://my-tileserver-gl/styles/osm/10/1075/1342.png
see: <http://tileserver.readthedocs.io/en/latest/endpoints.html#
static-images>
==============
type: tile
grid: webmercator_hq
base: GLOBAL_WEBMERCATOR
srs: "EPSG:3857"
origin: nw
min_res: 78271.51696402048
tile_size: [512, 512]
======
mapproxy.source.tile - WARNING - could not retrieve tile: No response from
URL "http://2x.png": Name or service not known
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
https://lists.osgeo.org/mailman/listinfo/mapproxy
Matthias Woltering
2018-05-29 08:53:22 UTC
Permalink
Thanks for your answer. I already tried this - it doesn't work.
Post by Matthias Woltering
Hi all,
I would like to fetch high-dpi tiles from tileserver-gl via
http://my-tileserver-gl/styles/osm/10/1075/1342.png
<http://my-tileserver-gl/styles/osm/10/1075/1342.png>
<http://tileserver.readthedocs.io/en/latest/endpoints.html#static-images
<http://tileserver.readthedocs.io/en/latest/endpoints.html#static-images>>
==============
    type: tile
    grid: webmercator_hq
        base: GLOBAL_WEBMERCATOR
        srs: "EPSG:3857"
        origin: nw
        min_res: 78271.51696402048
        tile_size: [512, 512]
======
mapproxy.source.tile - WARNING - could not retrieve tile: No
response from URL "http://2x.png": Name or service not known
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
https://lists.osgeo.org/mailman/listinfo/mapproxy
<https://lists.osgeo.org/mailman/listinfo/mapproxy>
--
-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-
Dr. Matthias Woltering
Yorckstr. 22
40476 Düsseldorf
***@gmail.com
0176-60883761
Loading...