Ignore:
Timestamp:
24/09/09 11:59:59 (11 years ago)
Author:
pnorton
Message:

Added a openlayers map to select the bounding box. Also fixed a few smaller bugs + changed the layout a bit.

Location:
cowsclient/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cowsclient/trunk

    • Property svn:ignore
      •  

        old new  
        66build 
        77dist 
         8pnorton_development_local.ini 
  • cowsclient/trunk/cowsclient/controllers/wcsdown.py

    r5671 r5759  
    1111 
    1212import paste 
     13import time 
    1314 
    1415from cowsclient.lib.base import BaseController, g, response, config, request, c, session, render 
     
    3031        Default controller method to handle the initial requests to the page 
    3132        """ 
    32                  
     33        st = time.time() 
    3334        params = self._getParams() 
    3435 
     
    8182        g.server=config['app_conf']['serverurl'] 
    8283         
    83  
     84        params = {} 
     85        for paramString in config['download_baselayer.params'].split(','): 
     86            key, value = paramString.split(':') 
     87            params[key] = value 
    8488         
     89        baseLayerObj = {"url":config['download_baselayer.url'], "params": params } 
     90         
     91        c.baseLayerJSON = utils.toJSON(baseLayerObj)  
     92         
     93        log.debug("rendering template after %ss" % (time.time() - st,)) 
    8594        return render('wcsdown') 
    8695     
Note: See TracChangeset for help on using the changeset viewer.