Changeset 831


Ignore:
Timestamp:
25/04/06 16:56:14 (14 years ago)
Author:
domlowe
Message:

added csmlio.py to provide easy wrapper to parser, also ioDemo.py to show how to make calls. Neither are complete

Location:
TI02-CSML/trunk/newparser
Files:
2 added
2 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/newparser/example.xml

    r714 r831  
    311311                </gml:featureMember> 
    312312                                <gml:featureMember> 
    313                         <GridFeature> 
     313                        <GridFeature gml:id='feat06'> 
    314314                                <GridDomain> 
    315315                                        <domainReference> 
  • TI02-CSML/trunk/newparser/parser_extra.py

    r812 r831  
    88import Parser 
    99import sys 
    10 import pickle 
     10 
    1111 
    1212#string manipulation function. may as well go in this file for now. 
     
    6565                        for definition in self.dataset.referenceSystemDefinitions.definitionMembers: 
    6666                            if definition.id == feature.domain.domainReference.srsName[1:]: 
    67                                 #remove srsName attribute and replace with Object. 
     67                                #remove srsName attribute and replace withimport pickle Object. 
    6868                                pass #Leave this for now. 
    6969                    if hasattr(feature.domain, 'domainComplement'): 
     
    9999                                     feature.rangeSet.aggregatedArray.uom=definition 
    100100                                     break 
    101  
     101        #TODO need to also take into account the fact that UnitDefinitions could be externally defined. 
     102         
    102103        return self.dataset 
Note: See TracChangeset for help on using the changeset viewer.