artemp/trac2github — Issue #495: OGCServer GetCaps 1.1 does not correctly populate xlink with onlineresource, causes GetMap url to fail
Author: artemp
Created: 2011-10-09 20:37:21+00:00
State: open
Labels: OGC_Server__WMS_

{{{
Index: bindings/python/mapnik/ogcserver/wms111.py
===================================================================
--- bindings/python/mapnik/ogcserver/wms111.py (revision 1575)
+++ bindings/python/mapnik/ogcserver/wms111.py (working copy)
@@ -147,7 +147,7 @@
if not self.capabilities:
capetree = ElementTree.fromstring(self.capabilitiesxmltemplate)

- elements = capetree.findall('Capability//OnlineResource')
+ elements = capetree.findall('{http://www.opengis.net/wms}Capability//{http://www.opengis.net/wms}OnlineResource')
for element in elements:
element.set('{http://www.w3.org/1999/xlink}href', self.opsonlineresource)

}}}