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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI05-delivery/ows_framework/trunk/ows_common/data_identification.py@2475
Revision 2475, 1.7 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 Data Identification package v1.1.0.
7
8@author: Stephen Pascoe
9"""
10
11from ows_common.is19115_subset import LanguageString, Keywords
12from ows_common.common import Metadata, BoundingBox
13
14class Description(object):
15    """
16    @ivar title
17    @type title: None, str or LanguageString
18    @ivar abstract
19    @type abstract: None, str or LanguageString
20    @ivar keywords
21    @type keywords: iterable or Keywords
22
23    """
24    def __init__(self, title=None, abstract=None, keywords=Keywords()):
25        self.title = title
26        self.abstract = abstract
27        self.keywords = keywords
28
29class Identification(Description):
30    """
31    @note: BasicIdentification is not modelled directly.
32
33    @ivar identifier
34    @type identifier: None or Code
35    @ivar metadata
36    @type metadata: iterable of Metadata
37
38    @ivar outputFormats
39    @type outputFormats: iterable of str
40    @ivar availableCRSs: URIs of available coordinate reference systems
41    @type availableCRSs: iterable of str
42
43    @ivar boundingBoxes
44    @type boundingBoxes: iterable of BoundingBox
45
46    """
47    def __init__(self, identifier=None, metadata=[], outputFormats=[],
48                 availableCRSs=[], boundingBoxes=[], **kwargs):
49        super(Identification, self).__init__(**kwargs)
50
51        self.identifier = identifier
52        self.metadata = metadata
53        self.outputFormats = outputFormats
54        self.availableCRSs = availableCRSs
55        self.boundingBoxes = boundingBoxes
56       
Note: See TracBrowser for help on using the repository browser.