source: TI05-delivery/ows_framework/trunk/ows_common/contents.py @ 2475

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_common/contents.py@2475
Revision 2475, 1.6 KB checked in by spascoe, 12 years ago (diff)

renaming part 2

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"""
6Classes modelling the OWS Contents package v1.1.0.
7
8@author: Stephen Pascoe
9"""
10
11from ows_common.data_identification import Description
12from ows_common.is19115_subset import (Code, Metadata, BoundingBox, WGS84BoundingBox,
13                                Keywords)
14
15class Contents(object):
16    """
17    @ivar datasetSummary
18    @type datasetSummary: Iterable of DatasetSummary objects
19    @ivar otherSource: A URL
20    @type otherSource: None or str
21
22    """
23    def __init__(self, datasetSummary=[], otherSource=None):
24        self.datasetSummary = datasetSummary
25        self.otherSource = otherSource
26
27class DatasetSummary(Description):
28    """
29    @ivar identifier
30    @type identifier: None, str or Code
31    @ivar metadata
32    @type metadata: iterable of Metadata objects
33    @ivar boundingBoxes
34    @type boundingBoxes: iterable of BoundingBox objects
35    @ivar wsg84BoundingBoxes
36    @type wsg84BoundingBoxes: iterable of WSG84BoundingBox objects
37    """
38
39    def __init__(self, title=None, abstract=None, keywords=Keywords(),
40                 identifier=None, metadata=[], boundingBoxes=[],
41                 wsg84BoundingBoxes=[]):
42        super(DatasetSummary, self).__init__(title, abstract, keywords)
43
44        self.identifier = identifier
45        self.metadata = metadata
46        self.boundingBoxes = boundingBoxes
47        self wsg84BoundingBoxes = wsg84BoundingBoxes
48
49       
50       
51                 
Note: See TracBrowser for help on using the repository browser.