Ignore:
Timestamp:
20/08/09 12:09:57 (10 years ago)
Author:
pnorton
Message:

Removed the ddc layer/slab/layermapper as these are now included in cows as the csml_geoplot implementation.

Added the GetFigure? method that uses geoplot to generate a simple figure output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • qesdi/wms_ddc_vis/trunk/lib/wms_ddc_vis/controllers/coastwms.py

    r5535 r5647  
    1818from cows.exceptions import * 
    1919from cows import bbox_util 
     20import time 
    2021 
    2122from geoplot.layer_drawer_coastline import LayerDrawerCoastlines 
     
    160161         
    161162     
    162     def GetMap(self): 
    163  
     163    def GetMap(self):         
     164        st = time.time() 
     165 
     166         
    164167        # Housekeeping 
    165168        version = self.getOwsParam('version', default=self.validVersions[0]) 
     
    193196                'Format %s not supported' % format, 'format') 
    194197 
     198        if layerName == 'auto': 
     199            layerName = None 
     200         
    195201        ldg = LayerDrawerCoastlines(transparent=transparent, 
    196202                                    resolution=layerName) 
     
    199205        yLimits = (bbox[1], bbox[3])         
    200206        finalImg = ldg.makeImage(xLimits, yLimits, width, height)      
    201        
     207 
    202208         
    203209        # IE < 7 doesn't display the alpha layer right.  Here we sniff the 
     
    217223        response.write(buf.getvalue()) 
    218224 
     225         
     226        log.debug("got coastline in %s" % (time.time() - st,)) 
    219227 
    220228    def GetContext(self): 
Note: See TracChangeset for help on using the changeset viewer.