Package mapnik :: Package ogcserver :: Module wms111 :: Class ServiceHandler

Class ServiceHandler

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

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

Inherited from common.BaseServiceHandler: processParameters, processServiceCapabilities

Class Variables
  SERVICE_PARAMS = {'GetCapabilities': {'updatesequence': <mapni...
  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

GetFeatureInfo(self, params)

 
Overrides: common.WMSBaseServiceHandler.GetFeatureInfo

Class Variable Details

SERVICE_PARAMS

Value:
{'GetCapabilities': {'updatesequence': ParameterDefinition(False, str)\
}, 'GetMap': {'layers': ParameterDefinition(True, ListFactory(str)), '\
styles': ParameterDefinition(True, ListFactory(str)), 'srs': Parameter\
Definition(True, CRSFactory(['EPSG'])), 'bbox': ParameterDefinition(Tr\
ue, ListFactory(float)), 'width': ParameterDefinition(True, int), 'hei\
ght': ParameterDefinition(True, int), 'format': ParameterDefinition(Tr\
ue, str, allowedvalues= ('image/png', 'image/jpeg')), 'transparent': P\
arameterDefinition(False, str, 'FALSE', ('TRUE', 'FALSE')), 'bgcolor':\
...

CONF_SERVICE

Value:
[['title', 'Title', <type 'str'>],
 ['abstract', 'Abstract', <type 'str'>],
 ['onlineresource', 'OnlineResource', <type 'str'>],
 ['fees', 'Fees', <type 'str'>],
 ['accessconstraints', 'AccessConstraints', <type 'str'>],
 ['keywordlist', 'KeywordList', <type 'str'>]]

capabilitiesxmltemplate

Value:
'''<?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <!DOCTYPE WMT_MS_Capabilities SYSTEM "http://www.digitalearth.gov/\
wmt/xml/capabilities_1_1_1.dtd">
    <WMT_MS_Capabilities version="1.1.1" updateSequence="0" xmlns:xlin\
k="http://www.w3.org/1999/xlink" xmlns="http://www.opengis.net/wms">
      <Service>
        <Name>WMS</Name>
      </Service>
...