Changeset 1877 for TI02-CSML/branches


Ignore:
Timestamp:
15/12/06 15:51:15 (13 years ago)
Author:
domlowe
Message:

added ScanningRadar Feature

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

Legend:

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

    r1876 r1877  
    471471        addchildren(self,children) 
    472472 
    473 class GridSeriesDomain(ReferenceableGrid, DomainSet, csElement): 
     473class ScanningRadarDomain(ReferenceableGrid, DomainSet, csElement): 
    474474    def __init__(self, **kwargs): 
    475475        DomainSet.__init__(self,**kwargs) 
     
    478478        addchildren(self,children) 
    479479         
     480class ScanningRadarCoverage(AbstractDiscreteCoverage,csElement): 
     481    def __init__(self, **kwargs): 
     482        AbstractDiscreteCoverage.__init__(self,**kwargs) 
     483        children={'scanningRadarDomain':[CSML('ScanningRadarDomain'),'ScanningRadarDomain' ,CSML('scanningRadarDomain') ], 'rangeSet':[GML('rangeSet'), 'RangeSet'],'coverageFunction':[GML('coverageFunction'),'csString']} 
     484        addchildren(self,children) 
     485 
     486 
     487class GridSeriesDomain(ReferenceableGrid, DomainSet, csElement): 
     488    def __init__(self, **kwargs): 
     489        DomainSet.__init__(self,**kwargs) 
     490        ReferenceableGrid.__init__(self,**kwargs) 
     491        children={} 
     492        addchildren(self,children) 
     493         
    480494class GridSeriesCoverage(AbstractDiscreteCoverage,csElement): 
    481495    def __init__(self, **kwargs): 
     
    551565        children={'stationLocations':[CSML('stationLocations'), 'csString'], 'stationTimes':[CSML('stationTimes'), 'TimePositionList'],'value':[CSML('SectionCoverage'), 'SectionCoverage', CSML('value')], 'parameter':[CSML('parameter'), 'Phenomenon']} 
    552566        addchildren(self,children) 
     567 
     568 
     569 
    553570 
    554571class ScanningRadarFeature(AbstractFeature, csElement): 
     
    591608    def __init__(self,**kwargs): 
    592609        AbstractFeatureCollection.__init__(self,**kwargs) 
    593         children={'members':[[CSML('GridFeature'), CSML('GridSeriesFeature'),CSML('PointFeature'),CSML('ProfileFeature'),CSML('ProfileSeriesFeature'),CSML('RaggedProfileSeriesFeature'),CSML('RaggedSectionFeature'),CSML('SectionFeature'),CSML('PointSeriesFeature'),CSML('AlternatePointFeature')], 'AbstractFeature', GML('featureMembers')]} 
     610        children={'members':[[CSML('GridFeature'), CSML('GridSeriesFeature'),CSML('PointFeature'),CSML('ProfileFeature'),CSML('ProfileSeriesFeature'),CSML('RaggedProfileSeriesFeature'),CSML('RaggedSectionFeature'),CSML('SectionFeature'),CSML('ScanningRadarFeature'),CSML('PointSeriesFeature'),CSML('AlternatePointFeature')], 'AbstractFeature', GML('featureMembers')]} 
    594611        addchildren(self,children) 
    595612    def _getSubstitutionType(self,tag): 
     
    612629        elif tag==CSML('SectionFeature'): 
    613630            return 'SectionFeature' 
     631        elif tag==CSML('ScanningRadarFeature'): 
     632            return 'ScanningRadarFeature' 
    614633        elif tag==CSML('AlternatePointFeature'): 
    615634            return 'AlternatePointFeature' 
     
    628647        elif typename == 'SectionFeature': 
    629648            return CSML('SectionFeature') 
     649        elif typename == 'ScanningRadarFeature': 
     650            return CSML('ScanningRadarFeature') 
    630651        elif typename == 'RaggedSectionFeature': 
    631652            return CSML('RaggedSectionFeature') 
  • TI02-CSML/branches/CSML2/test.xml

    r1875 r1877  
    451451    </parameter> 
    452452</SectionFeature> 
    453  
     453<ScanningRadarFeature gml:id="ID001"> 
     454    <value> 
     455        <ScanningRadarCoverage gml:id="ID003"> 
     456            <scanningRadarDomain> 
     457                <ScanningRadarDomain gml:id="ID005"> 
     458                </ScanningRadarDomain> 
     459            </scanningRadarDomain> 
     460            <gml:rangeSet> 
     461                <gml:DataBlock> 
     462                    <gml:rangeParameters> 
     463                    </gml:rangeParameters> 
     464                    <gml:doubleOrNilReasonTupleList>other:00</gml:doubleOrNilReasonTupleList> 
     465                </gml:DataBlock> 
     466            </gml:rangeSet> 
     467        </ScanningRadarCoverage> 
     468    </value> 
     469    <parameter> 
     470        <swe:PhenomenonSeries dimension="2" gml:id="ID007"> 
     471            <gml:identifier codeSpace="http://www.oxygenxml.com/">identifier0</gml:identifier> 
     472            <swe:base/> 
     473            <swe:constraintList> 
     474                <swe:TypedValueList> 
     475                    <swe:property codeSpace="http://www.oxygenxml.com/">property0</swe:property> 
     476                    <swe:value> 
     477                    </swe:value> 
     478                    <swe:value> 
     479                    </swe:value> 
     480                    <swe:value> 
     481                    </swe:value> 
     482                </swe:TypedValueList> 
     483            </swe:constraintList> 
     484            <swe:constraintList> 
     485                <swe:TypedValueList> 
     486                    <swe:property codeSpace="http://www.oxygenxml.com/">property1</swe:property> 
     487                    <swe:value> 
     488                    </swe:value> 
     489                    <swe:value> 
     490                    </swe:value> 
     491                    <swe:value> 
     492                    </swe:value> 
     493                </swe:TypedValueList> 
     494            </swe:constraintList> 
     495            <swe:constraintList> 
     496                <swe:TypedValueList> 
     497                    <swe:property codeSpace="http://www.oxygenxml.com/">property2</swe:property> 
     498                    <swe:value> 
     499                    </swe:value> 
     500                    <swe:value> 
     501                    </swe:value> 
     502                    <swe:value> 
     503                    </swe:value> 
     504                </swe:TypedValueList> 
     505            </swe:constraintList> 
     506        </swe:PhenomenonSeries> 
     507    </parameter> 
     508</ScanningRadarFeature> 
    454509 
    455510        </gml:featureMembers> 
Note: See TracChangeset for help on using the changeset viewer.