Ignore:
Timestamp:
27/08/09 16:23:55 (11 years ago)
Author:
pnorton
Message:

Improved the legend min and max handling in the csml backend, also changed the controller slightly to pass the dimensions to the getLegendImage function.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/service/imps/csmlbackend/wms_csmllayer.py

    r5629 r5672  
    281281        return value 
    282282 
    283     def getLegendImage(self, orientation='horizontal', renderOpts={}): 
     283    def getLegendImage(self, dimValues, orientation='horizontal', renderOpts={}): 
    284284        """ 
    285285        Create an image of the colourbar for this layer. 
     
    299299        renderer=RGBARenderer(self._minval, self._maxval) 
    300300         
     301        log.debug("dimValues = %s" % (dimValues,)) 
     302 
    301303        if orientation =='vertical': 
    302304            legendImage= renderer.renderColourbar(630, 30, cmap, isVertical=True) 
Note: See TracChangeset for help on using the changeset viewer.