Ignore:
Timestamp:
07/12/06 15:57:17 (13 years ago)
Author:
domlowe
Message:

PointFeature? added

File:
1 edited

Legend:

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

    r1833 r1834  
    225225        addchildren(self,{}) 
    226226 
     227class PointDomain(domainSet): 
     228    def __init__(self, **kwargs): 
     229        domainSet.__init__(self,**kwargs) 
     230        addchildren(self,{}) 
     231 
    227232class AbstractCoverage(AbstractFeature, csElement): 
    228233    def __init__(self, **kwargs): 
     
    240245        addchildren(self,{}) 
    241246        a=['dimension'] 
    242         addatts(self,a)    
    243         if hasattr(self, 'ATTRIBUTES'): 
    244             for att in a: 
    245                 self.ATTRIBUTES.append(att) 
    246         else: 
    247             self.ATTRIBUTES=a 
     247        addatts(self,a) 
    248248 
    249249class ReferenceableGridCoverage(AbstractDiscreteCoverage, csElement): 
     
    251251        AbstractDiscreteCoverage.__init__(self,**kwargs) 
    252252        children={'referenceableGridDomain':[CSML('ReferenceableGrid'),'ReferenceableGrid' ,CSML('referenceableGridDomain') ]} 
     253        addchildren(self,children) 
     254         
     255class PointCoverage(AbstractDiscreteCoverage, csElement): 
     256    def __init__(self, **kwargs): 
     257        AbstractDiscreteCoverage.__init__(self,**kwargs) 
     258        children={'pointDomain':[CSML('PointDomain'),'PointDomain' ,CSML('pointDomain') ]} 
    253259        addchildren(self,children) 
    254260 
     
    265271        addchildren(self,children) 
    266272 
     273class PointFeature(AbstractFeature, csElement): 
     274    def __init__(self, **kwargs): 
     275        AbstractFeature.__init__(self,**kwargs) 
     276        children={'location':[CSML('location'), 'csString'],'time':[CSML('time'), 'csString'], 'value':[CSML('PointCoverage'), 'PointCoverage', CSML('value')], 'parameter':[CSML('parameter'), 'Phenomenon']} 
     277        addchildren(self,children) 
     278 
     279 
    267280class GridFeature(AbstractFeature, csElement): 
    268281    def __init__(self, **kwargs): 
    269282        AbstractFeature.__init__(self,**kwargs) 
    270         #children={'time':[CSML('time'), 'csString'], 'value':[CSML('value'), 'ReferenceableGridCoverage', CSML('ReferenceableGridCoverage')], 'parameter':[CSML('parameter'), 'Phenomenon']} 
    271283        children={'time':[CSML('time'), 'csString'], 'value':[CSML('ReferenceableGridCoverage'), 'ReferenceableGridCoverage', CSML('value')], 'parameter':[CSML('parameter'), 'Phenomenon']} 
    272284        addchildren(self,children) 
Note: See TracChangeset for help on using the changeset viewer.