source: TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/model/wcs.py @ 3553

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/branches/ows_framework-refactor/ows_common/ows_common/model/wcs.py@3553
Revision 3553, 1.8 KB checked in by spascoe, 12 years ago (diff)

Moved all the model classes into their own sub-module.

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 ows_common 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 ows_common.contents import Contents, DatasetSummary
15from ows_common.domain import Domain
16
17class WcsDatasetSummary(DatasetSummary):
18    """
19    """
20    def __init__(self, CRSs=[], description=None, formats=[],supportedCRSs=[],timelimits=[],**kw):
21        super(WcsDatasetSummary, self).__init__(**kw)
22
23        self.CRSs = CRSs
24        self.description=description
25        self.formats=formats
26        self.supportedCRSs=supportedCRSs
27        self.timeLimits=timelimits
28
29
30class FormattedURL(object):
31    """
32    @ivar format
33    @type format: str
34    @ivar onlineResource
35    @type onlineResource: OnlineResource object
36
37    """
38    def __init__(self, format, onlineResource):
39        self.format = format
40        self.onlineResource = onlineResource
41
42
43class Dimension(Domain):
44    """
45    Use Domain attributes where possible.
46   
47    @ivar multipleValues
48    @type multipleValues: boolean (default False)
49    @ivar nearestValue
50    @type nearestValue: boolean (default False)
51    @ivar current
52    @type current: boolean (default False)
53
54    """
55    def __init__(self, multipleValues=False, nearestValue=False,
56                 current=False, *kw):
57        super(Dimension, self).__init__(**kw)
58       
59        self.multipleValues = multipleValues
60        self.nearestValue = nearestValue
61        self.current = current
62
63
64#
65#!TODO: Other objects referenced by WmsDatasetSummary
66#
Note: See TracBrowser for help on using the repository browser.