Changeset 1878 for TI02-CSML


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

added !Trajectory feature

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

Legend:

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

    r1877 r1878  
    471471        addchildren(self,children) 
    472472 
     473class TrajectoryDomain(ReferenceableGrid, DomainSet, csElement): 
     474    def __init__(self, **kwargs): 
     475        DomainSet.__init__(self,**kwargs) 
     476        ReferenceableGrid.__init__(self,**kwargs) 
     477        children={} 
     478        addchildren(self,children) 
     479         
     480class TrajectoryCoverage(AbstractDiscreteCoverage,csElement): 
     481    def __init__(self, **kwargs): 
     482        AbstractDiscreteCoverage.__init__(self,**kwargs) 
     483        children={'trajectoryDomain':[CSML('TrajectoryDomain'),'TrajectoryDomain' ,CSML('trajectoryDomain') ], 'rangeSet':[GML('rangeSet'), 'RangeSet'],'coverageFunction':[GML('coverageFunction'),'csString']} 
     484        addchildren(self,children) 
     485 
     486 
    473487class ScanningRadarDomain(ReferenceableGrid, DomainSet, csElement): 
    474488    def __init__(self, **kwargs): 
     
    608622    def __init__(self,**kwargs): 
    609623        AbstractFeatureCollection.__init__(self,**kwargs) 
    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')]} 
     624        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')]} 
    611625        addchildren(self,children) 
    612626    def _getSubstitutionType(self,tag): 
     
    617631        elif tag==CSML('PointFeature'): 
    618632            return 'PointFeature' 
     633        elif tag==CSML('TrajectoryFeature'): 
     634            return 'TrajectoryFeature' 
    619635        elif tag==CSML('PointSeriesFeature'): 
    620636            return 'PointSeriesFeature' 
     
    655671        elif typename == 'PointFeature': 
    656672            return CSML('PointFeature') 
     673        elif typename == 'TrajectoryFeature': 
     674            return CSML('TrajectoryFeature') 
    657675        elif typename == 'AlternatePointFeature': 
    658676            return CSML('AlternatePointFeature') 
  • TI02-CSML/branches/CSML2/test.xml

    r1877 r1878  
    507507    </parameter> 
    508508</ScanningRadarFeature> 
    509  
     509<TrajectoryFeature gml:id="ID001"> 
     510    <value> 
     511        <TrajectoryCoverage gml:id="ID003"> 
     512            <trajectoryDomain> 
     513                <TrajectoryDomain gml:id="ID005"> 
     514                </TrajectoryDomain> 
     515            </trajectoryDomain> 
     516            <gml:rangeSet> 
     517                <gml:BooleanList>inapplicable missing inapplicable withheld false</gml:BooleanList> 
     518                <gml:CategoryList>unknown CategoryList0 http://www.oxygenxml.com/ template unknown withheld withheld missing</gml:CategoryList> 
     519                <gml:BooleanList>unknown false http://www.oxygenxml.com/ inapplicable withheld template inapplicable missing other:00 missing missing template template</gml:BooleanList> 
     520            </gml:rangeSet> 
     521        </TrajectoryCoverage> 
     522    </value> 
     523    <parameter> 
     524        <swe:Phenomenon gml:id="ID007"> 
     525            <gml:identifier codeSpace="http://www.oxygenxml.com/">identifier0</gml:identifier> 
     526        </swe:Phenomenon> 
     527    </parameter> 
     528</TrajectoryFeature> 
    510529        </gml:featureMembers> 
    511530        </gml:FeatureCollection> 
Note: See TracChangeset for help on using the changeset viewer.