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

adding gml:timepositions to describe coverage response

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.