Package mapnik :: Package ogcserver :: Module wms130 :: Class ServiceHandler

Class ServiceHandler

common.BaseServiceHandler --+    
                            |    
 common.WMSBaseServiceHandler --+
                                |
                               ServiceHandler

Instance Methods
 
__init__(self, conf, mapfactory, opsonlineresource)
 
GetCapabilities(self, params)
 
GetMap(self, params)

Inherited from common.WMSBaseServiceHandler: GetFeatureInfo

Inherited from common.BaseServiceHandler: processParameters, processServiceCapabilities

Class Variables
  SERVICE_PARAMS = {'GetCapabilities': {'format': <mapnik.ogcser...
  CONF_SERVICE = [['title', 'Title', <type 'str'>], ['abstract',...
  capabilitiesxmltemplate = '<?xml version="1.0" encoding="UTF-8...

Inherited from common.BaseServiceHandler: CONF_CONTACT, CONF_CONTACT_ADDRESS, CONF_CONTACT_PERSON_PRIMARY

Method Details

GetMap(self, params)

 
Overrides: common.WMSBaseServiceHandler.GetMap

Class Variable Details

SERVICE_PARAMS

Value:
{'GetCapabilities': {'format': ParameterDefinition(False, str, 'text/x\
ml', ('text/xml',), True), 'updatesequence': ParameterDefinition(False\
, str)}, 'GetMap': {'layers': ParameterDefinition(True, ListFactory(st\
r)), 'styles': ParameterDefinition(True, ListFactory(str)), 'crs': Par\
ameterDefinition(True, CRSFactory(['EPSG'])), 'bbox': ParameterDefinit\
ion(True, ListFactory(float)), 'width': ParameterDefinition(True, int)\
, 'height': ParameterDefinition(True, int), 'format': ParameterDefinit\
ion(True, str, allowedvalues= ('image/png', 'image/jpeg')), 'transpare\
...

CONF_SERVICE

Value:
[['title', 'Title', <type 'str'>],
 ['abstract', 'Abstract', <type 'str'>],
 ['onlineresource', 'OnlineResource', <type 'str'>],
 ['fees', 'Fees', <type 'str'>],
 ['accessconstraints', 'AccessConstraints', <type 'str'>],
 ['layerlimit', 'LayerLimit', <type 'int'>],
 ['maxwidth', 'MaxWidth', <type 'int'>],
 ['maxheight', 'MaxHeight', <type 'int'>],
...

capabilitiesxmltemplate

Value:
'''<?xml version="1.0" encoding="UTF-8"?>
    <WMS_Capabilities version="1.3.0" xmlns="http://www.opengis.net/wm\
s"
                                      xmlns:xlink="http://www.w3.org/1\
999/xlink"
                                      xmlns:xsi="http://www.w3.org/200\
1/XMLSchema-instance"
                                      xsi:schemaLocation="http://www.o\
...