artemp/mapnik — Issue #494: OGCServer GetCaps 1.1 does not correctly populate xlink with onlineresource, causes GetMap url to fail
Author: artemp
Created: 2011-10-11 16:22:06+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)

}}}