Ignore:
Timestamp:
03/12/07 09:30:06 (12 years ago)
Author:
domlowe
Message:

support for ragged section in wcs

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_wcs1_0_0.py

    r3023 r3090  
    280280                #TODO need to return a suitable wcs error. 
    281281                print 'warning, could not get correct axis info' 
    282              
     282                #best guess! 
     283                if t is None: 
     284                    t='time' 
     285                if lon is None: 
     286                    lon = 'longitude' 
     287                if lat is None: 
     288                    lat = 'latitude' 
    283289            #create selection dictionary: 
    284290            sel={} 
     
    304310            axisNames=feature.getAxisLabels() 
    305311     
    306             # Extract via CSML.subsetToGridSeries() 
     312              # Extract via CSML.subsetToGridSeries() 
    307313            if store: 
    308314                #need to farm off to WPS 
  • TI05-delivery/ows_framework/trunk/ows_server/ows_server/lib/csml_util.py

    r3023 r3090  
    104104        del sel['latitude'] #delete dummy values 
    105105        feature.subsetToPointSeries(ncname=os.path.basename(filename), outputdir=os.path.dirname(filename) ,**sel) 
    106          
     106    elif type(feature) is csml.parser.RaggedSectionFeature: 
     107        del sel['longitude'] #delete dummy values 
     108        del sel['latitude'] #delete dummy values 
     109        feature.subsetByTime(ncname=os.path.basename(filename), outputdir=os.path.dirname(filename) ,**sel) 
    107110    return filename 
    108111         
Note: See TracChangeset for help on using the changeset viewer.