Changeset 2593 for TI05-delivery


Ignore:
Timestamp:
15/06/07 14:33:30 (12 years ago)
Author:
domlowe
Message:

removing time workaround from csml_util.py

Location:
TI05-delivery/ows_framework/trunk/ows_server/ows_server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/controllers/csml_wcs.py

    r2592 r2593  
    115115 
    116116        #set bounding box TODO 
    117         sel = dict(time=('1905-04-15T00:00:00.0' ,'1905-12-15T00:00:00.0'), longitude = (-10,10), latitude=(30,45)) 
    118  
     117        sel = dict(time=('1905-04-15T00:00:00.0' ,'1905-12-15T00:00:00.0'), longitude = (-1,10), latitude=(30,45)) 
     118        if boundingBox is not None: 
     119            sel = dict(latitude=(boundingBox[1], boundingBox[3]), longitude=(boundingBox[0], boundingBox[2])) 
    119120        # Extract via CSML.subsetToGridSeries() 
    120121        filename = extractToNetCDF(feature, sel) 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/lib/csml_util.py

    r2592 r2593  
    7272    (fd, filename) = tempfile.mkstemp('.nc', 'csml_wms_', extract_dir); os.close(fd) 
    7373    feature.subsetToGridSeries(ncname=os.path.basename(filename), 
    74                                outputdir=os.path.dirname(filename), 
    75                                time=sel['time'] # work around for CSML bug 
    76                                #**sel 
    77                                ) 
     74                               outputdir=os.path.dirname(filename) ,**sel) 
    7875    return filename 
    7976         
Note: See TracChangeset for help on using the changeset viewer.