source: mauRepo/MolesManager/trunk/src/ea_model/iso_19111_referencing_by_coordinates/coordinate_reference_systems/sc_generalderivedcrs.py @ 8091

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/mauRepo/MolesManager/trunk/src/ea_model/iso_19111_referencing_by_coordinates/coordinate_reference_systems/sc_generalderivedcrs.py@8091
Revision 8091, 5.7 KB checked in by mnagni, 8 years ago (diff)

The migration process now includes
1) deployment_data files
2) XML document hash
3) full Dojo support


Line 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21from ea_model.iso_19111_referencing_by_coordinates.coordinate_reference_systems.sc_singlecrs import  SC_SingleCRS
22from ascore.utils import has_value
23
24'''
25Created on 16-Feb-2012 16:18:04
26
27@author: mnagni
28'''
29
30class SC_GeneralDerivedCRS(SC_SingleCRS):
31    '''
32        Represents a data entity defined in a UML diagram and supposed to
33        be persisted in a relational database.
34 
35        This class has been genererated automatically using the Apache Velocity project.
36    '''
37    '''
38        Please note that any access to the inner attributes should be done using
39        the given get/set methods and NOT accessing them directly.
40    '''
41    def __init__(self):
42        self._sc_singlecrs = SC_SingleCRS()     
43
44        self.domainOfValidity = None
45        self.remarks = None
46        self.alias = []
47        self.scope = []
48        self.identifier = []
49        self._object_gm_complex = []
50        self._object_gm_primitive = []
51        self._object_gm_aggregate = []
52        self.name = None
53        self._coordOperationTo_cc_passthroughoperation = []
54        self._coordOperationTo_cc_concatenatedoperation = []
55        self._coordOperationTo_cc_singleoperation = []
56        self.derivedCRS = []
57        self.conversion = None
58        self.directPosition = []
59        self._coordinateSystem_cs_verticalcs = None
60        self._coordinateSystem_cs_userdefinedcs = None
61        self._coordinateSystem_cs_cylindricalcs = None
62        self._coordinateSystem_cs_ellipsoidalcs = None
63        self._coordinateSystem_cs_sphericalcs = None
64        self._coordinateSystem_cs_affinecs = None
65        self._coordinateSystem_cs_linearcs = None
66        self._coordinateSystem_cs_polarcs = None
67        self._coordinateSystem_cs_cartesiancs = None
68        self._datum_cd_engineeringdatum = None
69        self._datum_cd_verticaldatum = None
70        self._datum_cd_geodeticdatum = None
71        self._datum_cd_imagedatum = None
72        self.grid = []
73        self.compoundCRS = []
74        self._coordOperationFrom_cc_passthroughoperation = []
75        self._coordOperationFrom_cc_concatenatedoperation = []
76        self._coordOperationFrom_cc_singleoperation = []
77        super(SC_GeneralDerivedCRS, self).__init__()
78
79    @property
80    def domainOfValidity(self): 
81        return self._sc_singlecrs.domainOfValidity
82
83    @domainOfValidity.setter
84    def domainOfValidity(self, value): 
85            self._sc_singlecrs.domainOfValidity = value
86
87    @property
88    def remarks(self): 
89        return self._sc_singlecrs.remarks
90
91    @remarks.setter
92    def remarks(self, value):   
93            self._sc_singlecrs.remarks = value
94
95    @property
96    def alias(self):   
97        return self._sc_singlecrs.alias
98
99    @alias.setter
100    def alias(self, value):     
101            self._sc_singlecrs.alias = value
102
103    @property
104    def scope(self):   
105        return self._sc_singlecrs.scope
106
107    @scope.setter
108    def scope(self, value):     
109            self._sc_singlecrs.scope = value
110
111    @property
112    def identifier(self):       
113        return self._sc_singlecrs.identifier
114
115    @identifier.setter
116    def identifier(self, value):       
117            self._sc_singlecrs.identifier = value
118
119    @property
120    def object(self):   
121        return self._sc_singlecrs.object
122
123    @object.setter
124    def object(self, value):   
125            self._sc_singlecrs.object = value
126
127    @property
128    def name(self):     
129        return self._sc_singlecrs.name
130
131    @name.setter
132    def name(self, value):     
133            self._sc_singlecrs.name = value
134
135    @property
136    def coordOperationTo(self): 
137        return self._sc_singlecrs.coordOperationTo
138
139    @coordOperationTo.setter
140    def coordOperationTo(self, value): 
141            self._sc_singlecrs.coordOperationTo = value
142
143    @property
144    def derivedCRS(self):       
145        return self._sc_singlecrs.derivedCRS
146
147    @derivedCRS.setter
148    def derivedCRS(self, value):       
149            self._sc_singlecrs.derivedCRS = value
150
151    @property
152    def directPosition(self):   
153        return self._sc_singlecrs.directPosition
154
155    @directPosition.setter
156    def directPosition(self, value):   
157            self._sc_singlecrs.directPosition = value
158
159    @property
160    def coordinateSystem(self): 
161        return self._sc_singlecrs.coordinateSystem
162
163    @coordinateSystem.setter
164    def coordinateSystem(self, value): 
165            self._sc_singlecrs.coordinateSystem = value
166
167    @property
168    def datum(self):   
169        return self._sc_singlecrs.datum
170
171    @datum.setter
172    def datum(self, value):     
173            self._sc_singlecrs.datum = value
174
175    @property
176    def grid(self):     
177        return self._sc_singlecrs.grid
178
179    @grid.setter
180    def grid(self, value):     
181            self._sc_singlecrs.grid = value
182
183    @property
184    def compoundCRS(self):     
185        return self._sc_singlecrs.compoundCRS
186
187    @compoundCRS.setter
188    def compoundCRS(self, value):       
189            self._sc_singlecrs.compoundCRS = value
190
191    @property
192    def coordOperationFrom(self):       
193        return self._sc_singlecrs.coordOperationFrom
194
195    @coordOperationFrom.setter
196    def coordOperationFrom(self, value):       
197            self._sc_singlecrs.coordOperationFrom = value
198
199    def __key(self):
200        return (self.domainOfValidity, self.remarks, self.alias, self.scope, self.identifier, self.object, self.name, self.coordOperationTo, self.derivedCRS, self.conversion, self.directPosition, self.coordinateSystem, self.datum, self.grid, self.compoundCRS, self.coordOperationFrom)
201
202    def __eq__(self, y):
203        '''
204        Cannot compare classes which do not define a "__key" attribute
205        '''
206        if hasattr(self, '_%s__key' % (type(self).__name__)) and hasattr(y, '_%s__key' % (type(y).__name__)):
207            return self.__key() == y.__key()
208        return id(self) == id(y)
209
210    def __hash__(self):
211        return hash(self.__key())
Note: See TracBrowser for help on using the repository browser.