Changeset 5718 for cows


Ignore:
Timestamp:
16/09/09 09:56:49 (10 years ago)
Author:
domlowe
Message:

Restored dimension values also needed fixing in get legend.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/pylons/wms_controller.py

    r5694 r5718  
    496496         
    497497        dimValues = self._getDimValues(layerObj) 
    498          
    499         img = layerObj.getLegendImage(dimValues, renderOpts=additionalParams) 
     498        #now need to revert modified dim values (e.g. height_dim) back to dim values the layerMapper understands (e.g. height) 
     499        restoredDimValues={} 
     500        for dim in dimValues: 
     501            restoredDim=self._mapParamToDim(dim) 
     502            restoredDimValues[restoredDim]=dimValues[dim] 
     503         
     504        img = layerObj.getLegendImage(restoredDimValues, renderOpts=additionalParams) 
    500505         
    501506        self._writeImageResponse(img, format) 
Note: See TracChangeset for help on using the changeset viewer.