Changeset 2024 for TI02-CSML/trunk


Ignore:
Timestamp:
22/01/07 10:40:18 (13 years ago)
Author:
domlowe
Message:

parser supports reading featureMembers and featureMember - but only writing of featureMember

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/parser.py

    r2023 r2024  
    710710    def __init__(self,**kwargs): 
    711711        AbstractFeatureCollection.__init__(self,**kwargs) 
    712         children={'members':[[CSML('GridFeature'), CSML('GridSeriesFeature'),CSML('PointFeature'),CSML('TrajectoryFeature'),CSML('ProfileFeature'),CSML('ProfileSeriesFeature'),CSML('RaggedProfileSeriesFeature'),CSML('RaggedSectionFeature'),CSML('SectionFeature'),CSML('ScanningRadarFeature'),CSML('PointSeriesFeature'),CSML('AlternatePointFeature')], 'AbstractFeature', GML('featureMembers')]} 
     712        children={'featureMembers':[[CSML('GridFeature'), CSML('GridSeriesFeature'),CSML('PointFeature'),CSML('TrajectoryFeature'),CSML('ProfileFeature'),CSML('ProfileSeriesFeature'),CSML('RaggedProfileSeriesFeature'),CSML('RaggedSectionFeature'),CSML('SectionFeature'),CSML('ScanningRadarFeature'),CSML('PointSeriesFeature'),CSML('AlternatePointFeature')], 'AbstractFeature', GML('featureMember'),1]} 
     713         
     714        #children={'gridOrdinates':[CSML('GridOrdinateDescription'), 'GridOrdinateDescription',CSML('gridOrdinate'),1], 'gridPoints':[CSML('GridPointDescription'),'GridPointDescription',CSML('gridPoints')]}      
     715         
    713716        addchildren(self,children) 
    714717    def _getSubstitutionType(self,tag): 
     
    771774        AbstractGML.__init__(self,**kwargs) 
    772775        children = {'featureCollection':[CSML('CSMLFeatureCollection') ,'CSMLFeatureCollection'],'storageDescriptor':[CSML('CSMLStorageDescriptor'), 'CSMLStorageDescriptor']} 
     776         
    773777        addchildren(self,children) 
    774778    def toXML(self): 
Note: See TracChangeset for help on using the changeset viewer.