Changeset 8423 for mauRepo


Ignore:
Timestamp:
02/07/12 08:27:22 (7 years ago)
Author:
mnagni
Message:

Complete - # 22488: CEDA Observation Collection - Geographical Extent
 http://team.ceda.ac.uk/trac/ceda/ticket/22488
Incomplete - # 22513: Missing ValidTime? tag in the CedaSearch?
 http://team.ceda.ac.uk/trac/ceda/ticket/22513
Fixed a 'None' element bug in postgisutils

Location:
mauRepo/MolesManager/trunk/src/libs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • mauRepo/MolesManager/trunk/src/libs/migration/processor/dataEntity.py

    r8416 r8423  
    7373    def _assignGeographicExtent(self, ceda_observationCollection): 
    7474        bbox = self.epbRepo.moles3EPB.getUnifyObservationCollectionGEAsBBox(ceda_observationCollection) 
    75         if bbox: 
     75        if bbox is not None: 
    7676            upperCornerData, lowerCornerData = bbox[4:len(bbox)-1].split(',') 
    7777            east, north = upperCornerData.split() 
  • mauRepo/MolesManager/trunk/src/libs/postgisutil.py

    r8416 r8423  
    5858def unifyGeometriesAsBBox(bboxes, epb): 
    5959    union = _processGeometries(bboxes, epb, 'ST_Union') 
    60     return getBox2D(union, epb) 
     60    if union is not None: 
     61        return getBox2D(union, epb) 
     62    return None 
    6163 
    6264def intersectGeometries(bboxes, epb): 
Note: See TracChangeset for help on using the changeset viewer.