Changeset 4769 for cows


Ignore:
Timestamp:
07/01/09 15:02:43 (11 years ago)
Author:
domlowe
Message:

adding gml:timepositions to describe coverage response

Location:
cows/trunk/cows
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • cows/trunk/cows/model/wcs.py

    r4695 r4769  
    1818    """ 
    1919    """ 
    20     def __init__(self, CRSs=[], description=None, formats=[],supportedCRSs=[],timelimits=[],**kw): 
     20    def __init__(self, CRSs=[], description=None, formats=[],supportedCRSs=[],timepositions=[],timelimits=[],**kw): 
    2121        super(WcsDatasetSummary, self).__init__(**kw) 
    2222        self.CRSs = CRSs 
     
    2424        self.formats=formats 
    2525        self.supportedCRSs=supportedCRSs 
     26        self.timePositions=timepositions 
    2627        self.timeLimits=timelimits 
    2728 
  • cows/trunk/cows/pylons/templates/wcs_describecoverage_1_0_0.xml

    r4740 r4769  
    3232            </spatialDomain> 
    3333            <temporalDomain> 
     34                                <gml:timePosition py:for="timepos in cd.timePositions" py:content="timepos"/> 
    3435                <timePeriod> 
    3536                    <beginPosition>${cd.timeLimits[0]}</beginPosition> 
  • cows/trunk/cows/pylons/wcs_controller.py

    r4768 r4769  
    204204                                     formats=['application/cf-netcdf'], 
    205205                                     supportedCRSs=coverage.crss,  
     206                                     timepositions=coverage.timePositions, 
    206207                                     timelimits=coverage.timeLimits 
    207208                                     ) 
  • cows/trunk/cows/service/imps/csmlbackend/wcs_csmllayer.py

    r4695 r4769  
    3939        domain = feature.getDomain() 
    4040        tax= feature.getTimeAxis() 
     41        timepositions=domain[tax] 
    4142        timelimits=[domain[tax][0],domain[tax][len(domain[tax])-1]]   
    4243        crs=feature.getNativeCRS() 
     
    4647            crss.append('WGS84') 
    4748 
    48         return title, abstract, timelimits, units, crss 
     49        return title, abstract, timepositions, timelimits, units, crss 
    4950             
    5051    def getCoverageDescription(self): 
     
    6970        self._crscat=csml.csmllibs.csmlcrs.CRSCatalogue() 
    7071        for feature in csml.csmllibs.csmlextra.listify(ds.featureCollection.featureMembers): 
    71             title, abstract, timelimits, units, crss=self.getInfo(feature) 
    72             layermap[feature.id]=CSMLCoverage([title],[abstract], timelimits, units, crss, feature) 
     72            title, abstract, timepositions, timelimits, units, crss=self.getInfo(feature) 
     73            layermap[feature.id]=CSMLCoverage([title],[abstract], timepositions, timelimits, units, crss, feature) 
    7374        if len(layermap) > 0: 
    7475            self.layermapcache[fileoruri]=layermap 
     
    8384    """ represents a WCS Coverage. Implements ICoverage """ 
    8485     
    85     def __init__(self, title, abstract, timelimits, units, crss, feature): 
     86    def __init__(self, title, abstract, timepositions, timelimits, units, crss, feature): 
    8687        self.title=title 
    8788        self.abstract=abstract 
    8889        self.description='TO DO - coverage description' 
     90        self.timePositions=timepositions 
    8991        self.timeLimits=timelimits 
    9092        self.units=units 
Note: See TracChangeset for help on using the changeset viewer.