source: qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/model/ddc_wms_layer_slab.py @ 5529

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/model/ddc_wms_layer_slab.py@5529
Revision 5529, 723 bytes checked in by pnorton, 11 years ago (diff)

Added the style specific display options to the grid and contour renderers. Also added the required JSON.

Line 
1import time
2import logging
3
4from geoplot.layer_drawer_grid import LayerDrawerGrid
5
6from wms_ddc_vis.model.ddc_wms_layer_slab_base import DDCWmsLayerSlabBase
7
8log = logging.getLogger(__name__)
9
10class DDCWmsLayerSlab(DDCWmsLayerSlabBase):
11
12       
13    def _setupLayerDrawer(self):
14       
15        cmapRange = (self.parser.getOption('cmap_min'), self.parser.getOption('cmap_max'))
16       
17        ld = LayerDrawerGrid(self.variable, 
18                             cmap=self.parser.getOption('cmap'), 
19                             showGridLines=self.parser.getOption('show_grid_lines'), 
20                             cmapRange=cmapRange,
21                             transparent=self.transparent)
22       
23        return ld
24 
Note: See TracBrowser for help on using the repository browser.