Ignore:
Timestamp:
31/03/12 14:17:08 (8 years ago)
Author:
mnagni
Message:

New database schema where URL class is a string and MO_Project.subProject use CEDA_Project as subType

Location:
mauRepo/MolesManager/trunk/src/ea_model/iso_19130_sensor_data/raster_digitised_product
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19130_sensor_data/raster_digitised_product/sd_detectorarray.py

    r8180 r8197  
    2222 
    2323''' 
    24 Created on 14-Mar-2012 14:10:44 
     24Created on 30-Mar-2012 16:45:25 
    2525 
    2626@author: mnagni 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19130_sensor_data/raster_digitised_product/sd_film.py

    r8180 r8197  
    2323 
    2424''' 
    25 Created on 14-Mar-2012 14:10:47 
     25Created on 30-Mar-2012 16:45:19 
    2626 
    2727@author: mnagni 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19130_sensor_data/raster_digitised_product/sd_hardcopy.py

    r8180 r8197  
    2222 
    2323''' 
    24 Created on 14-Mar-2012 14:10:42 
     24Created on 30-Mar-2012 16:45:16 
    2525 
    2626@author: mnagni 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19130_sensor_data/raster_digitised_product/sd_paper.py

    r8180 r8197  
    2323 
    2424''' 
    25 Created on 14-Mar-2012 14:10:49 
     25Created on 30-Mar-2012 16:45:22 
    2626 
    2727@author: mnagni 
  • mauRepo/MolesManager/trunk/src/ea_model/iso_19130_sensor_data/raster_digitised_product/sd_rasterdigitisedproduct.py

    r8180 r8197  
    2323 
    2424''' 
    25 Created on 14-Mar-2012 14:10:50 
     25Created on 30-Mar-2012 16:45:23 
    2626 
    2727@author: mnagni 
     
    4545        self.detectorArray = None 
    4646        self.qualityInfo = [] 
     47        self._scannerControlPoint_sd_gcplocation = None 
     48        self._scannerControlPoint_sd_gcpregistry = None 
     49        self._scannerControlPoint_sd_gcpsurvey = None 
     50        self._scannerControlPoint_sd_gcplibrary = None 
     51        self._hardcopy_sd_film = [] 
    4752        self._hardcopy_sd_paper = [] 
    48         self._hardcopy_sd_film = [] 
    49         self._scannerControlPoint_sd_gcplocation = None 
    50         self._scannerControlPoint_sd_gcplibrary = None 
    51         self._scannerControlPoint_sd_gcpsurvey = None 
    52         self._scannerControlPoint_sd_gcpregistry = None 
    5353        self.scannerTransformation = None 
    5454        super(SD_RasterDigitisedProduct, self).__init__() 
     
    6363 
    6464    @property 
    65     def hardcopy(self):  
    66         ret = [] 
    67         for item in self._hardcopy_sd_paper: 
    68             ret.append(item) 
    69         for item in self._hardcopy_sd_film: 
    70             ret.append(item) 
    71         return ret 
    72  
    73     @hardcopy.setter 
    74     def hardcopy(self, value):   
    75         if isinstance(value, list): 
    76             self._hardcopy_sd_paper[:] 
    77             self._hardcopy_sd_film[:] 
    78             for item in value: 
    79                 valueClass = "%s.%s" % (type(item).__module__,type(item).__name__) 
    80                 if valueClass == "ea_model.iso_19130_sensor_data.raster_digitised_product.sd_paper.SD_Paper": 
    81                     self._hardcopy_sd_paper.append(item) 
    82                     continue 
    83                 if valueClass == "ea_model.iso_19130_sensor_data.raster_digitised_product.sd_film.SD_Film": 
    84                     self._hardcopy_sd_film.append(item) 
    85                     continue 
    86  
    87     @property 
    8865    def scannerControlPoint(self):       
    8966        if(has_value(self._scannerControlPoint_sd_gcplocation)): 
    9067            return self._scannerControlPoint_sd_gcplocation 
     68        if(has_value(self._scannerControlPoint_sd_gcpregistry)): 
     69            return self._scannerControlPoint_sd_gcpregistry 
     70        if(has_value(self._scannerControlPoint_sd_gcpsurvey)): 
     71            return self._scannerControlPoint_sd_gcpsurvey 
    9172        if(has_value(self._scannerControlPoint_sd_gcplibrary)): 
    9273            return self._scannerControlPoint_sd_gcplibrary 
    93         if(has_value(self._scannerControlPoint_sd_gcpsurvey)): 
    94             return self._scannerControlPoint_sd_gcpsurvey 
    95         if(has_value(self._scannerControlPoint_sd_gcpregistry)): 
    96             return self._scannerControlPoint_sd_gcpregistry 
    9774        return  None 
    9875 
     
    10279        if valueClass == "ea_model.iso_19130_sensor_data.ground_control.sd_gcplocation.SD_GCPLocation": 
    10380            self._scannerControlPoint_sd_gcplocation = value 
     81            self._scannerControlPoint_sd_gcpregistry = None 
     82            self._scannerControlPoint_sd_gcpsurvey = None 
    10483            self._scannerControlPoint_sd_gcplibrary = None 
     84        if valueClass == "ea_model.iso_19130_sensor_data.ground_control.sd_gcpregistry.SD_GCPRegistry": 
     85            self._scannerControlPoint_sd_gcpregistry = value 
     86            self._scannerControlPoint_sd_gcplocation = None 
    10587            self._scannerControlPoint_sd_gcpsurvey = None 
     88            self._scannerControlPoint_sd_gcplibrary = None 
     89        if valueClass == "ea_model.iso_19130_sensor_data.ground_control.sd_gcpsurvey.SD_GCPSurvey": 
     90            self._scannerControlPoint_sd_gcpsurvey = value 
     91            self._scannerControlPoint_sd_gcplocation = None 
    10692            self._scannerControlPoint_sd_gcpregistry = None 
     93            self._scannerControlPoint_sd_gcplibrary = None 
    10794        if valueClass == "ea_model.iso_19130_sensor_data.ground_control.sd_gcplibrary.SD_GCPLibrary": 
    10895            self._scannerControlPoint_sd_gcplibrary = value 
    10996            self._scannerControlPoint_sd_gcplocation = None 
    110             self._scannerControlPoint_sd_gcpsurvey = None 
    11197            self._scannerControlPoint_sd_gcpregistry = None 
    112         if valueClass == "ea_model.iso_19130_sensor_data.ground_control.sd_gcpsurvey.SD_GCPSurvey": 
    113             self._scannerControlPoint_sd_gcpsurvey = value 
    114             self._scannerControlPoint_sd_gcplocation = None 
    115             self._scannerControlPoint_sd_gcplibrary = None 
    116             self._scannerControlPoint_sd_gcpregistry = None 
    117         if valueClass == "ea_model.iso_19130_sensor_data.ground_control.sd_gcpregistry.SD_GCPRegistry": 
    118             self._scannerControlPoint_sd_gcpregistry = value 
    119             self._scannerControlPoint_sd_gcplocation = None 
    120             self._scannerControlPoint_sd_gcplibrary = None 
    12198            self._scannerControlPoint_sd_gcpsurvey = None 
    12299 
     100    @property 
     101    def hardcopy(self):  
     102        ret = [] 
     103        for item in self._hardcopy_sd_film: 
     104            ret.append(item) 
     105        for item in self._hardcopy_sd_paper: 
     106            ret.append(item) 
     107        return ret 
     108 
     109    @hardcopy.setter 
     110    def hardcopy(self, value):   
     111        if isinstance(value, list): 
     112            self._hardcopy_sd_film[:] 
     113            self._hardcopy_sd_paper[:] 
     114            for item in value: 
     115                valueClass = "%s.%s" % (type(item).__module__,type(item).__name__) 
     116                if valueClass == "ea_model.iso_19130_sensor_data.raster_digitised_product.sd_film.SD_Film": 
     117                    self._hardcopy_sd_film.append(item) 
     118                    continue 
     119                if valueClass == "ea_model.iso_19130_sensor_data.raster_digitised_product.sd_paper.SD_Paper": 
     120                    self._hardcopy_sd_paper.append(item) 
     121                    continue 
     122 
    123123    def __key(self): 
    124         return (self.interiorOrientation, self.detectorArray, self.qualityInfo, self.hardcopy, self.scannerControlPoint, self.scannerTransformation) 
     124        return (self.interiorOrientation, self.detectorArray, self.qualityInfo, self.scannerControlPoint, self.hardcopy, self.scannerTransformation) 
    125125 
    126126    def __eq__(self, y): 
Note: See TracChangeset for help on using the changeset viewer.