source: cows/trunk/cows/model/wcs.py @ 4769

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/cows/trunk/cows/model/wcs.py@4769
Revision 4769, 1.4 KB checked in by domlowe, 12 years ago (diff)

adding gml:timepositions to describe coverage response

Line 
1# Copyright (C) 2007 STFC & NERC (Science and Technology Facilities Council).
2# This software may be distributed under the terms of the
3# Q Public License, version 1.0 or later.
4# http://ndg.nerc.ac.uk/public_docs/QPublic_license.txt
5"""
6Extends cows classes where necessary for implementing WMS 1.3.0
7
8@author: Dominic Lowe, Stephen Pascoe
9"""
10
11#NOTE, much of this is straight from WMS and needs to be overhauled. TODO
12
13
14from cows.model.contents import Contents, DatasetSummary
15from cows.model.domain import Domain
16
17class WcsDatasetSummary(DatasetSummary):
18    """
19    """
20    def __init__(self, CRSs=[], description=None, formats=[],supportedCRSs=[],timepositions=[],timelimits=[],**kw):
21        super(WcsDatasetSummary, self).__init__(**kw)
22        self.CRSs = CRSs
23        self.description=description
24        self.formats=formats
25        self.supportedCRSs=supportedCRSs
26        self.timePositions=timepositions
27        self.timeLimits=timelimits
28
29class CoverageDescription(WcsDatasetSummary): 
30    """
31    Further extends WCSDatasetSummary to provide a fuller coverage description
32    used in DescribeCoverageResponse. Building up this extra information may require more
33    work on the servers part, hence this is separate class from the simpler WcsDatasetSummary.
34    """
35    def __init__(self, **kw):
36        super(CoverageDescription, self).__init__(**kw)
37#       TODO, add DescribeCoverage extensions
Note: See TracBrowser for help on using the repository browser.