Changeset 8457 for mauRepo/CedaMolesModel/trunk/ceda_moles_model/ea_model/informative/other_location_services/directory/di_location.py
 Timestamp:
 10/07/12 14:41:56 (7 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

mauRepo/CedaMolesModel/trunk/ceda_moles_model/ea_model/informative/other_location_services/directory/di_location.py
r8437 r8457 23 23 24 24 ''' 25 Created on 06Jul2012 07:43:1625 Created on 10Jul2012 14:15:02 26 26 27 27 @author: mnagni … … 42 42 self._di_abstractlocation = DI_AbstractLocation() 43 43 44 self._position_gm_aggregate = None 45 self._position_gm_primitive = None 44 46 self._position_gm_complex = None 45 self._position_gm_primitive = None46 self._position_gm_aggregate = None47 47 self._position = None 48 48 self._address_ad_usaddress = None … … 52 52 @property 53 53 def position(self): 54 if(has_value(self._position_gm_aggregate)): 55 return self._position_gm_aggregate 56 if(has_value(self._position_gm_primitive)): 57 return self._position_gm_primitive 54 58 if(has_value(self._position_gm_complex)): 55 59 return self._position_gm_complex 56 if(has_value(self._position_gm_primitive)):57 return self._position_gm_primitive58 if(has_value(self._position_gm_aggregate)):59 return self._position_gm_aggregate60 60 return None 61 61 … … 63 63 def position(self, value): 64 64 valueClass = "%s.%s" % (type(value).__module__,type(value).__name__) 65 if valueClass == "ea_model.iso_19107_2003_spatial_schema.geometry.geometric_aggregates.gm_aggregate.GM_Aggregate": 66 self._position_gm_aggregate = value 67 self._position_gm_primitive = None 68 self._position_gm_complex = None 69 if valueClass == "ea_model.iso_19107_2003_spatial_schema.geometry.geometric_primitive.gm_primitive.GM_Primitive": 70 self._position_gm_primitive = value 71 self._position_gm_aggregate = None 72 self._position_gm_complex = None 65 73 if valueClass == "ea_model.iso_19107_2003_spatial_schema.geometry.geometric_complex.gm_complex.GM_Complex": 66 74 self._position_gm_complex = value 67 self._position_gm_primitive = None68 75 self._position_gm_aggregate = None 69 if valueClass == "ea_model.iso_19107_2003_spatial_schema.geometry.geometric_primitive.gm_primitive.GM_Primitive":70 self._position_gm_primitive = value71 self._position_gm_complex = None72 self._position_gm_aggregate = None73 if valueClass == "ea_model.iso_19107_2003_spatial_schema.geometry.geometric_aggregates.gm_aggregate.GM_Aggregate":74 self._position_gm_aggregate = value75 self._position_gm_complex = None76 76 self._position_gm_primitive = None 77 77 @property
Note: See TracChangeset
for help on using the changeset viewer.