artemp/trac2github — Issue #496: OGCServer and uDig do not play nicely
Author: artemp
Created: 2011-10-09 20:37:24+00:00
State: open
Labels: OGC_Server__WMS_

uDig seems to make different Capabilities (more compliant?) requests that other clients, most of which fail.

Notably uDig sends:

{{{
/?wmtver=1.0.0&request=capabilities
}}}

which fails miserably as both wmt, that version, and that request ('capabilities' vs. 'GetCapabilities') are unhandled.

Also unlikely other clients tested that do work (ArcGIS 9.3 and QGIS) uDig's GetCaps 'service=WMS' is not predictably sent and the OGCServer currently raises when it is missing:

{{{
Index: bindings/python/mapnik/ogcserver/wsgi.py
===================================================================
--- bindings/python/mapnik/ogcserver/wsgi.py (revision 1575)
+++ bindings/python/mapnik/ogcserver/wsgi.py (working copy)
@@ -68,7 +68,11 @@
if request in ['GetMap', 'GetFeatureInfo']:
service = 'WMS'
else:
- service = reqparams['service']
+ try:
+ service = reqparams['service']
+ except:
+ service = 'WMS'
+ request = 'GetCapabilities'
if reqparams.has_key('service'):
del reqparams['service']
try:
}}}