mapnik-org/mapnik — Issue #491: OGCServer GetCaps not working with ArcGIS 1.3 requests
Author: artemp
Created: 2011-10-11 07:58:35+00:00
State: open
Labels: OGC_Server__WMS_

{{{
Index: bindings/python/mapnik/ogcserver/wms130.py
===================================================================
--- bindings/python/mapnik/ogcserver/wms130.py (revision 1575)
+++ bindings/python/mapnik/ogcserver/wms130.py (working copy)
@@ -38,7 +38,7 @@

SERVICE_PARAMS = {
'GetCapabilities': {
- 'format': ParameterDefinition(False, str, 'text/xml', ('text/xml',), True),
+ 'format': ParameterDefinition(False, str, 'text/xml', ('text/xml',)),
'updatesequence': ParameterDefinition(False, str)
},
'GetMap': {
@@ -51,7 +51,7 @@
'format': ParameterDefinition(True, str, allowedvalues=('image/png', 'image/jpeg')),
'transparent': ParameterDefinition(False, str, 'FALSE', ('TRUE', 'FALSE')),
'bgcolor': ParameterDefinition(False, ColorFactory, ColorFactory('0xFFFFFF')),
- 'exceptions': ParameterDefinition(False, str, 'XML', ('XML', 'INIMAGE', 'BLANK','HTML')),
+ 'exceptions': ParameterDefinition(False, str, 'XML', ('XML', 'INIMAGE', 'BLANK','HTML'),True),
},
'GetFeatureInfo': {
'layers': ParameterDefinition(True, ListFactory(str)),
@@ -61,9 +61,9 @@
'width': ParameterDefinition(True, int),
'height': ParameterDefinition(True, int),
'format': ParameterDefinition(False, str, allowedvalues=('image/png', 'image/jpeg')),
- 'transparent': ParameterDefinition(False, str, 'FALSE', ('TRUE', 'FALSE')),
+ 'transparent': ParameterDefinition(False, str, 'FALSE', ('TRUE', 'FALSE'),True),
'bgcolor': ParameterDefinition(False, ColorFactory, ColorFactory('0xFFFFFF')),
- 'exceptions': ParameterDefinition(False, str, 'XML', ('XML', 'INIMAGE', 'BLANK','HTML')),
+ 'exceptions': ParameterDefinition(False, str, 'XML', ('XML', 'INIMAGE', 'BLANK','HTML'),True),
'query_layers': ParameterDefinition(True, ListFactory(str)),
'info_format': ParameterDefinition(True, str, allowedvalues=('text/plain', 'text/xml')),
'feature_count': ParameterDefinition(False, int, 1),
}}}