Changeset 4223


Ignore:
Timestamp:
23/09/08 16:59:39 (11 years ago)
Author:
sdonegan
Message:

Updated comments regarding fix for missing temporalCoverage in DIF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI01-discovery/branches/ingestAutomation-upgrade/OAIBatch/PostgresRecord.py

    r4027 r4223  
    3333    ''' 
    3434    # TODO MDIP transforms do not work very well for lots of files - so currently hiding these 
    35     documentTypes = ['MOLES', 'DIF', 'DC', 'ISO19139']#, 'MDIP'] 
     35    documentTypes = ['MOLES', 'DIF', 'DC', 'ISO19139','MDIP'] 
    3636     
    3737    # vocab server - used for finding scope values in the moles files 
     
    317317        @return: TimeRange object array with temporal data 
    318318        ''' 
     319         
    319320        if self.stData is None: 
     321             
    320322            self.getSpatioTemporalData() 
    321          
     323   
    322324        return self.stData.getTemporalData() 
    323325         
     
    352354        Extract spatio temporal data from the original document 
    353355        ''' 
     356         
     357        
    354358        logging.info('Retrieving spatiotemporal info from moles file') 
    355359        # initialise the various spatiotemporal arrays used to extract data to 
     
    373377            self.getCoordData(self.dgMeta) 
    374378 
     379         
     380 
     381        #SJD error with line below- this is where 23/09/08 edit in PostgresDAO fudge sorts... 
    375382        if not self.dgMeta.dgMetadataRecord.dgDataEntity.dgDataSummary.dgDataCoverage.dgTemporalCoverage: 
     383             
    376384            logging.info("No temporal coverage elements found - assuming no temporal data available") 
    377385        else: 
     386            
    378387            self.getTimeRangeData(self.dgMeta) 
    379388 
     
    513522        try: 
    514523 
     524            
    515525            bboxes = dgMeta.dgMetadataRecord.dgDataEntity.dgDataSummary.dgDataCoverage.dgSpatialCoverage.BoundingBox 
    516526             
     
    518528                logging.info("No bounding box info found for document") 
    519529                return 
    520                  
     530            
    521531            bbox_list=self.listify(bboxes) 
    522532            #parse the list of coordinates 
Note: See TracChangeset for help on using the changeset viewer.