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 | """ |
---|
6 | Classes modelling the OWS Data Identification package v1.1.0. |
---|
7 | |
---|
8 | @author: Stephen Pascoe |
---|
9 | """ |
---|
10 | |
---|
11 | from ows_common.iso19115_subset import LanguageString, Keywords |
---|
12 | from ows_common.common import Metadata, BoundingBox |
---|
13 | |
---|
14 | class 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 | |
---|
29 | class 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 | |
---|