Ignore:
Timestamp:
22/01/07 12:03:39 (13 years ago)
Author:
domlowe
Message:

support for ValueArray and xlink attributes in rangeSet

File:
1 edited

Legend:

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

    r2024 r2025  
    366366        addchildren(self,children) 
    367367 
     368 
     369class ValueComponent(AbstractGML, AssociationAttributeGroup, csElement): 
     370    def __init__(self, **kwargs): 
     371        AbstractGML.__init__(self,**kwargs) 
     372        AssociationAttributeGroup.__init__(self,**kwargs) 
     373        children=children={'quantityList':[GML('QuantityList'), 'MeasureOrNullList']} 
     374        addchildren(self,children) 
     375 
     376 
     377class ValueArray(AbstractGML, csElement): 
     378    def __init__(self, **kwargs): 
     379        AbstractGML.__init__(self,**kwargs) 
     380        #this is a bit of a diversion from the object/property pattern but is necessary to  
     381        #make valueComponent a class so valueComponent can have xlink attributes 
     382        children=children={'valueComponent':[GML('valueComponent'), 'ValueComponent', ]} 
     383        addchildren(self,children) 
     384         
    368385class RangeSet(AbstractGML,AssociationAttributeGroup,csElement): 
    369386    def __init__(self, **kwargs): 
    370387        AbstractGML.__init__(self,**kwargs) 
    371388        AssociationAttributeGroup.__init__(self,**kwargs) 
    372         children={'quantityList':[GML('QuantityList'), 'MeasureOrNullList'],        'dataBlock':[GML('DataBlock'),'DataBlock'],'arrayDescriptor':[FILEFORMATS, 'ArrayDescriptor'],  'aggregatedArray':[CSML('AggregatedArray'), 'AggregatedArray']} 
     389        children={'quantityList':[GML('QuantityList'), 'MeasureOrNullList'],        'dataBlock':[GML('DataBlock'),'DataBlock'],'arrayDescriptor':[FILEFORMATS, 'ArrayDescriptor'],  'aggregatedArray':[CSML('AggregatedArray'), 'AggregatedArray'], 
     390        'valueArray':[GML('ValueArray'),'ValueArray']} 
    373391        addchildren(self,children) 
    374392 
     
    711729        AbstractFeatureCollection.__init__(self,**kwargs) 
    712730        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          
     731      
    716732        addchildren(self,children) 
    717733    def _getSubstitutionType(self,tag): 
Note: See TracChangeset for help on using the changeset viewer.