forked from qgisinspiretools/qgis-inspire-atom-client-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
inspireatomlib.py
102 lines (73 loc) · 2.66 KB
/
inspireatomlib.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
"""
/***************************************************************************
WFS 2.0 Library
-------------------
begin : 2012-05-17
copyright : (C) 2012 by Juergen Weichand
email : [email protected]
website : http://www.weichand.de
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
"""
class Dataset(object):
def __init__(self, id):
self.__id__ = id
self.__title = ""
self.__summary = ""
self.__link_metadata = ""
self.__link_subfeed = ""
self.__rights = ""
def getId(self):
return self.__id__
def getTitle(self):
return self.__title
def getSummary(self):
return self.__summary
def getLinkMetadata(self):
return self.__link_metadata
def getLinkSubfeed(self):
return self.__link_subfeed
def getRights(self):
return self.__rights
def setTitle(self, title):
self.__title = title
def setSummary(self, summary):
self.__summary = summary
def setLinkMetadata(self, link_metadata):
self.__link_metadata = link_metadata
def setLinkSubfeed(self, link_subfeed):
self.__link_subfeed = link_subfeed
def setRights(self, rights):
self.__rights = rights
class DatasetRepresentation(object):
def __init__(self, id):
self.__id__ = id
self.__title = ""
self.__epsg = ""
self.__language = ""
self.__files = []
def getId(self):
return self.__id__
def getTitle(self):
return self.__title
def getEpsg(self):
return self.__epsg
def getLanguage(self):
return self.__language
def getFiles(self):
return self.__files
def setTitle(self, title):
self.__title = title
def setEpsg(self, epsg):
self.__epsg = epsg
def setLanguage(self, language):
self.__language = language
def setFiles(self, files):
self.__files = files