Ignore:
Timestamp:
28/03/08 11:11:21 (12 years ago)
Author:
spascoe
Message:

Implementation of GetFeatureInfo?. Not tested yet but the interface
described in wms_iface.py should remain constant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/service/wms_iface.py

    r3688 r3696  
    4848    ILayerMapper supports the retrieval of sets of layers according to arbitary 
    4949    keyword/value pairs. 
    50      
     50 
    5151    """ 
    5252    def map(self, **kwargs): 
     
    6060        """ 
    6161        raise NotImplementedError 
    62  
     62         
    6363 
    6464class ILayer(object): 
     
    7474    @ivar legendSize: (width, height) in pixels of legend. 
    7575 
     76    @ivar featureInfoFormats: A sequence of formats supported for the 
     77        self.getFeatureInfo method.  If this is None or empty GetFeatureInfo 
     78        is not supported. 
     79 
    7680    @todo: Do we need minValue/maxValue? 
    7781 
    7882    """ 
    7983    title = abstract = dimensions = units = crss = wgs84BBox = NotImplemented 
     84    featureInfoFormats = NotImplemented 
    8085 
    8186    def getBBox(self, crs): 
     
    128133        raise NotImplementedError 
    129134 
     135    def getFeatureInfo(self, format, crs, point, dimValues): 
     136        """ 
     137        Return a response string descibing the feature at a given 
     138        point in a given CRS. 
     139 
     140        @param format: One of self.featureInfoFormats.  Defines which 
     141            format the response will be in. 
     142        @param crs: One of self.crss 
     143        @param point: a tuple (x, y) in the supplied crs of the point 
     144            being selected. 
     145        @param dimValues: A mapping of dimension names to dimansion values. 
     146        @return: A string containing the response. 
     147 
     148        """ 
     149        raise NotImplementedError 
     150         
     151 
    130152class IDimension(object): 
    131153    """ 
Note: See TracChangeset for help on using the changeset viewer.