[MapProxy] WMTS GetCapabilities

Raffaello Bertini raffaellobertini at gmail.com
Sat Oct 13 13:19:27 PDT 2012


in the demo app inside mapproxy WMTS work properly, WMS too
But when I tried to access with openlayers I've got a bad request (no image)
And in the Demo app when i click on "WMTS view capabilieties html page"
I've got this MapProxy error:

Collecting Python Trace Output...
C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\request\base.py:
162: PendingDeprecationWarning: cgi.parse_qsl is deprecated, use
urlparse.parse_
qsl instead
  for key, value in cgi.parse_qsl(str(qs), include_empty):
Traceback (most recent call last):
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\wsgiapp.
py", line 133, in __call__
    resp = self.handlers[handler_name].handle(req)
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\service\
base.py", line 30, in handle
    return handler(parsed_req)
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\service\
wmts.py", line 63, in capabilities
    result = self.capabilities_class(service, self.layers.values(),
self.matrix_
sets).render(request)
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\service\
wmts.py", line 121, in render
    return self._render_template(_map_request.capabilities_template)
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\service\
wmts.py", line 131, in _render_template
    doc = template.substitute(**self.template_context())
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext
\tempita\__init__.py", line 160, in substitute
    result, defs, inherit = self._interpret(ns)
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext
\tempita\__init__.py", line 171, in _interpret
    self._interpret_codes(self._parsed, ns, out=parts, defs=defs)
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext
\tempita\__init__.py", line 199, in _interpret_codes
    self._interpret_code(item, ns, out, defs)
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext
\tempita\__init__.py", line 213, in _interpret_code
    self._interpret_for(vars, expr, content, ns, out, defs)
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext
\tempita\__init__.py", line 257, in _interpret_for
    self._interpret_codes(content, ns, out, defs)
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext
\tempita\__init__.py", line 199, in _interpret_codes
    self._interpret_code(item, ns, out, defs)
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext
\tempita\__init__.py", line 213, in _interpret_code
    self._interpret_for(vars, expr, content, ns, out, defs)
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\util\ext
\tempita\__init__.py", line 246, in _interpret_for
    for item in expr:
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\service\
wmts.py", line 193, in __iter__
    origin = self.grid.origin_tile(level, 'ul')
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\grid.py"
, line 443, in origin_tile
    assert self.supports_access_with_origin(origin), 'TODO error exception'
AssertionError: TODO error exception
Traceback (most recent call last):
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\wsgiapp.
py", line 133, in __call__
    resp = self.handlers[handler_name].handle(req)
  File
"C:\Python27\lib\site-packages\mapproxy-1.4.0-py2.7.egg\mapproxy\service\
demo.py", line 91, in handle
    capabilities = urlopen(url)
  File "C:\Python27\Lib\urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "C:\Python27\Lib\urllib2.py", line 406, in open
    response = meth(req, response)
  File "C:\Python27\Lib\urllib2.py", line 519, in http_response
    'http', request, response, code, msg, hdrs)
  File "C:\Python27\Lib\urllib2.py", line 444, in error
    return self._call_chain(*args)
  File "C:\Python27\Lib\urllib2.py", line 378, in _call_chain
    result = func(*args)
  File "C:\Python27\Lib\urllib2.py", line 527, in http_error_default
    raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
HTTPError: HTTP Error 500: Internal Server Error
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20121013/407d333d/attachment.html>


More information about the MapProxy mailing list