[MapProxy] wmts kvp - internal error when getting tile

Travis Kirstine traviskirstine at gmail.com
Tue Jun 13 08:19:13 PDT 2017


I'm getting a internal error when fetching a tile from the WMTS KVP service
using QGIS.
>From some older posting it appears that there can be a issue with the
client application incorrectly requesting the tilematrix as a string (1
instead of 01).  However I would expect this to work at higher tilematrixes
> 10 which it doesn't

The error is below:


Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/mapproxy/wsgiapp.py", line 189,
in __call__
    resp = self.handlers[handler_name].handle(req)
  File "/usr/lib64/python2.7/site-packages/mapproxy/service/ows.py", line
38, in handle
    return self.services[service].handle(req)
  File "/usr/lib64/python2.7/site-packages/mapproxy/service/base.py", line
30, in handle
    return handler(parsed_req)
  File "/usr/lib64/python2.7/site-packages/mapproxy/service/wmts.py", line
93, in tile
    tile = tile_layer.render(request, coverage=limited_to,
decorate_img=decorate_img)
  File "/usr/lib64/python2.7/site-packages/mapproxy/service/tile.py", line
308, in render
    dimensions=dimensions, with_metadata=True)
  File "/usr/lib64/python2.7/site-packages/mapproxy/cache/tile.py", line
110, in load_tile_coord
    self.cache.load_tile(tile, with_metadata)
  File "/usr/lib64/python2.7/site-packages/mapproxy/cache/riak.py", line
132, in load_tile
    res = self._get_object(tile.coord)
  File "/usr/lib64/python2.7/site-packages/mapproxy/cache/riak.py", line
64, in _get_object
    key = '%(z)d_%(x)d_%(y)d' % locals()
TypeError: %d format: a number is required, not unicode
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20170613/a78fd2d6/attachment.html>


More information about the MapProxy mailing list