Changeset 1509
- Timestamp:
- 12/09/06 09:25:31 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI02-CSML/trunk/Examples/parsing/csml2moles.py
r1507 r1509 66 66 '''compares new envelope, and if necessary changes the aggregated envelope.''' 67 67 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.' 69 69 sys.exit() 70 70 else: … … 82 82 83 83 def 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 ''' 85 88 if args: 86 89 sys.argv =args … … 95 98 finalEnvelope=aggregator.getAggregatedEnvelope() 96 99 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..? 98 102 print finalEnvelope.lowerCorner.vals 99 103 print finalEnvelope.upperCorner.vals
Note: See TracChangeset
for help on using the changeset viewer.