Changeset 1867 for TI02-CSML


Ignore:
Timestamp:
14/12/06 15:54:01 (13 years ago)
Author:
domlowe
Message:

added ProfileCoverage

Location:
TI02-CSML/branches/CSML2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/branches/CSML2/csParser.py

    r1864 r1867  
    283283         
    284284class DataBlock(AbstractGML,csElement): 
     285    #THIS IS INCOMPLETE  
    285286    def __init__(self, **kwargs): 
    286287        AbstractGML.__init__(self,**kwargs) 
     
    314315        children={} 
    315316        addchildren(self,children) 
     317 
     318class ProfileDomain(DomainSet, MultiPoint,csElement): 
     319    def __init__(self, **kwargs): 
     320        DomainSet.__init__(self,**kwargs) 
     321        MultiPoint.__init__(self,**kwargs) 
     322        children={} 
     323        addchildren(self,children) 
     324 
    316325 
    317326 
     
    404413        print self.CHILDREN 
    405414 
     415 
     416class ProfileCoverage(AbstractDiscreteCoverage, csElement): 
     417    def __init__(self, **kwargs): 
     418        AbstractDiscreteCoverage.__init__(self,**kwargs) 
     419        children={'profileDomain':[CSML('ProfileDomain'),'ProfileDomain' ,CSML('profileDomain') ], 'rangeSet':[GML('rangeSet'), 'RangeSet'],'coverageFunction':[GML('coverageFunction'),'csString']} 
     420        addchildren(self,children) 
     421 
    406422class PointCoverage(AbstractDiscreteCoverage, csElement): 
    407423    def __init__(self, **kwargs): 
     
    544560    def __init__(self,**kwargs): 
    545561        AbstractFeatureCollection.__init__(self,**kwargs) 
    546         children={'members':[[CSML('GridFeature'), CSML('GridSeriesFeature'),CSML('PointFeature'),CSML('PointSeriesFeature'),CSML('AlternatePointFeature')], 'AbstractFeature', GML('featureMembers')]} 
     562        children={'members':[[CSML('GridFeature'), CSML('GridSeriesFeature'),CSML('PointFeature'),CSML('ProfileFeature'),CSML('PointSeriesFeature'),CSML('AlternatePointFeature')], 'AbstractFeature', GML('featureMembers')]} 
    547563        addchildren(self,children) 
    548564    def _getSubstitutionType(self,tag): 
     
    555571        elif tag==CSML('PointSeriesFeature'): 
    556572            return 'PointSeriesFeature' 
     573        elif tag==CSML('ProfileFeature'): 
     574            return 'ProfileFeature' 
    557575        elif tag==CSML('AlternatePointFeature'): 
    558576            return 'AlternatePointFeature' 
     
    565583        elif typename == 'PointSeriesFeature': 
    566584            return CSML('PointSeriesFeature') 
     585        elif typename == 'ProfileFeature': 
     586            return CSML('ProfileFeature') 
    567587        elif typename == 'PointFeature': 
    568588            return CSML('PointFeature') 
  • TI02-CSML/branches/CSML2/test.xml

    r1864 r1867  
    307307            </parameter> 
    308308        </GridSeriesFeature> 
    309         --> 
    310309        <PointSeriesFeature> 
    311310            <value> 
     
    331330            </parameter> 
    332331        </PointSeriesFeature> 
    333          
     332        --> 
     333        <ProfileFeature gml:id="ID001"> 
     334            <value> 
     335                <ProfileCoverage gml:id="ID003"> 
     336                    <profileDomain> 
     337                        <ProfileDomain gml:id="ID005"> 
     338                        </ProfileDomain> 
     339                    </profileDomain> 
     340                    <gml:rangeSet> 
     341                        <gml:DataBlock> 
     342                            <gml:rangeParameters> 
     343                            </gml:rangeParameters> 
     344                            <gml:doubleOrNilReasonTupleList>template withheld http://www.oxygenxml.com/ missing template unknown http://www.oxygenxml.com/ 3.14159E0 withheld http://www.oxygenxml.com/ unknown inapplicable</gml:doubleOrNilReasonTupleList> 
     345                        </gml:DataBlock> 
     346                    </gml:rangeSet> 
     347                </ProfileCoverage> 
     348            </value> 
     349            <parameter> 
     350                <swe:Phenomenon gml:id="ID007"> 
     351                    <gml:identifier codeSpace="http://www.oxygenxml.com/">identifier0</gml:identifier> 
     352                </swe:Phenomenon> 
     353            </parameter> 
     354        </ProfileFeature>         
    334355        </gml:featureMembers> 
    335356        </gml:FeatureCollection> 
    336          
    337357</Dataset> 
Note: See TracChangeset for help on using the changeset viewer.