Changeset 1509


Ignore:
Timestamp:
12/09/06 09:25:31 (13 years ago)
Author:
domlowe
Message:

comments and tidying

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/Examples/parsing/csml2moles.py

    r1507 r1509  
    6666        '''compares new envelope, and if necessary changes the aggregated envelope.''' 
    6767        if envtocheck.srsName!=self.envelope.srsName: 
    68             print 'can currently only perform aggregation within the same spatio-temporal reference system.' 
     68            print 'Can currently only perform aggregation within the same spatio-temporal reference system.' 
    6969            sys.exit() 
    7070        else:  
     
    8282 
    8383def main(args=None): 
    84     '''Get command line arguments, should be csml files ''' 
     84    '''Get command line arguments, should be paths to csml files 
     85    e.g. python csml2moles.py csmlfile1.xml csmlfile2.xml csmlfile3.xml  
     86    main() will aggregate the spatial and temporal bounding box across all the featureCollections. 
     87    Currently only one featureCollection per csml file is supported ''' 
    8588    if args: 
    8689        sys.argv =args 
     
    9598    finalEnvelope=aggregator.getAggregatedEnvelope() 
    9699 
    97     #test output 
     100    #test output - need to decide what we want to do with the aggregated envelope:  
     101    #options include; Create an empty moles record, write to a text file, add to an existing moles record..? 
    98102    print finalEnvelope.lowerCorner.vals 
    99103    print finalEnvelope.upperCorner.vals 
Note: See TracChangeset for help on using the changeset viewer.