[MapProxy] WMS GetCapabilties Internal Error

Travis Kirstine traviskirstine at gmail.com
Mon Aug 25 13:41:45 PDT 2014


When I make a GetCapabilities request to my WMS service I get the following
error.  The GetCapabilties works for both TMS and WMTS.

Any Ideas, I'm running MapProxy 1.6 via gunicorn


Traceback (most recent call last):
  File "/usr/lib/python2.6/site-
packages/mapproxy/wsgiapp.py", line 166, in __call__
    resp = self.handlers[handler_name].handle(req)
  File "/usr/lib/python2.6/site-packages/mapproxy/service/ows.py", line 38,
in handle
    return self.services[service].handle(req)
  File "/usr/lib/python2.6/site-packages/mapproxy/service/base.py", line
30, in handle
    return handler(parsed_req)
  File "/usr/lib/python2.6/site-packages/mapproxy/service/wms.py", line
170, in capabilities
    ).render(map_request)
  File "/usr/lib/python2.6/site-packages/mapproxy/service/wms.py", line
449, in render
    return self._render_template(_map_request.capabilities_template)
  File "/usr/lib/python2.6/site-packages/mapproxy/service/wms.py", line
459, in _render_template
    layer_srs_bbox=self.layer_srs_bbox,
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 160, in substitute
    result, defs, inherit = self._interpret(ns)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 171, in _interpret
    self._interpret_codes(self._parsed, ns, out=parts, defs=defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 199, in _interpret_codes
    self._interpret_code(item, ns, out, defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 219, in _interpret_code
    base = self._eval(parts[0], ns, pos)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 281, in _eval
    value = eval(code, self.default_namespace, ns)
  File "<string>", line 1, in <module>
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 519, in __call__
    self._template._interpret_codes(self._body, ns, out, subdefs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 199, in _interpret_codes
    self._interpret_code(item, ns, out, defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 213, in _interpret_code
    self._interpret_for(vars, expr, content, ns, out, defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 257, in _interpret_for
    self._interpret_codes(content, ns, out, defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 199, in _interpret_codes
    self._interpret_code(item, ns, out, defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 219, in _interpret_code
    base = self._eval(parts[0], ns, pos)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 281, in _eval
    value = eval(code, self.default_namespace, ns)
  File "<string>", line 1, in <module>
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 519, in __call__
    self._template._interpret_codes(self._body, ns, out, subdefs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 199, in _interpret_codes
    self._interpret_code(item, ns, out, defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 213, in _interpret_code
    self._interpret_for(vars, expr, content, ns, out, defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 257, in _interpret_for
    self._interpret_codes(content, ns, out, defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 199, in _interpret_codes
    self._interpret_code(item, ns, out, defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 219, in _interpret_code
    base = self._eval(parts[0], ns, pos)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 281, in _eval
    value = eval(code, self.default_namespace, ns)
  File "<string>", line 1, in <module>
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 519, in __call__
    self._template._interpret_codes(self._body, ns, out, subdefs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 199, in _interpret_codes
    self._interpret_code(item, ns, out, defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 213, in _interpret_code
    self._interpret_for(vars, expr, content, ns, out, defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 257, in _interpret_for
    self._interpret_codes(content, ns, out, defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 199, in _interpret_codes
    self._interpret_code(item, ns, out, defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 219, in _interpret_code
    base = self._eval(parts[0], ns, pos)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 281, in _eval
    value = eval(code, self.default_namespace, ns)
  File "<string>", line 1, in <module>
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 519, in __call__
    self._template._interpret_codes(self._body, ns, out, subdefs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 199, in _interpret_codes
    self._interpret_code(item, ns, out, defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 213, in _interpret_code
    self._interpret_for(vars, expr, content, ns, out, defs)
  File
"/usr/lib/python2.6/site-packages/mapproxy/util/ext/tempita/__init__.py",
line 246, in _interpret_for
    for item in expr:
  File "/usr/lib/python2.6/site-packages/mapproxy/service/wms.py", line
436, in layer_srs_bbox
    bbox = layer.extent.bbox_for(SRS(srs))
  File "/usr/lib/python2.6/site-packages/mapproxy/layer.py", line 205, in
bbox_for
    return self.srs.transform_bbox_to(srs, self.bbox)
  File "/usr/lib/python2.6/site-packages/mapproxy/srs.py", line 171, in
transform_bbox_to
    result = calculate_bbox(transf_pts)
  File "/usr/lib/python2.6/site-packages/mapproxy/srs.py", line 354, in
calculate_bbox
    raise TransformationError()
TransformationError:  at line 157 column 3 in file
/usr/lib/python2.6/site-packages/mapproxy/service/templates/wms111capabilities.xml
at line 157 column 3 in file
/usr/lib/python2.6/site-packages/mapproxy/service/templates/wms111capabilities.xml
at line 157 column 3 in file
/usr/lib/python2.6/site-packages/mapproxy/service/templates/wms111capabilities.xml
at line 162 column 3 in file
/usr/lib/python2.6/site-packages/mapproxy/service/templates/wms111capabilities.xml
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/mapproxy/wsgiapp.py", line 166, in
__call__
    resp = self.handlers[handler_name].handle(req)
  File "/usr/lib/python2.6/site-packages/mapproxy/service/demo.py", line
90, in handle
    capabilities = urlopen(url)
  File "/usr/lib64/python2.6/urllib2.py", line 126, in urlopen
    return _opener.open(url, data, timeout)
  File "/usr/lib64/python2.6/urllib2.py", line 397, in open
    response = meth(req, response)
  File "/usr/lib64/python2.6/urllib2.py", line 510, in http_response
    'http', request, response, code, msg, hdrs)
  File "/usr/lib64/python2.6/urllib2.py", line 435, in error
    return self._call_chain(*args)
  File "/usr/lib64/python2.6/urllib2.py", line 369, in _call_chain
    result = func(*args)
  File "/usr/lib64/python2.6/urllib2.py", line 518, 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/20140825/24db7d0a/attachment.html>


More information about the MapProxy mailing list