Changeset 1892 for TI02-CSML


Ignore:
Timestamp:
19/12/06 10:18:55 (13 years ago)
Author:
domlowe
Message:

added gml:GridEnvelope class

File:
1 edited

Legend:

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

    r1890 r1892  
    219219                 
    220220class csString(csElement): 
    221     def __init__(self, **kwargs): 
     221    def __init__(self, text=None,**kwargs): 
     222        if text != None: 
     223            self.CONTENT=text 
    222224        children={} 
    223225        addchildren(self,children) 
     
    253255        AbstractGML.__init__(self,**kwargs) 
    254256 
     257class GridEnvelope(AbstractGML,SRSReferenceGroup, csElement): 
     258    def __init__(self, **kwargs): 
     259        SRSReferenceGroup.__init__(self,**kwargs) 
     260        AbstractGML.__init__(self,**kwargs) 
     261        children={'low':[GML('low'), 'csString'],'high':[GML('high'), 'csString']} 
     262        addchildren(self,children) 
    255263 
    256264class Envelope(AbstractGML,SRSReferenceGroup, csElement): 
     
    414422        AbstractGML.__init__(self,**kwargs) 
    415423        AssociationAttributeGroup.__init__(self,**kwargs) 
    416         children={'coordTransformTable':[CSML('GridCoordinatesTable'), 'GridCoordinatesTable', CSML('coordTransformTable')]} 
     424        children={'coordTransformTable':[CSML('GridCoordinatesTable'), 'GridCoordinatesTable', CSML('coordTransformTable')],'axisLabels':[CSML('axisLabels'),'csString'], 'limits':[GML('GridEnvelope'),'GridEnvelope',CSML('limits')]} 
    417425        addchildren(self,children) 
    418426        a=['dimension'] 
     
    716724        return typename 
    717725 
     726     
    718727def main(): 
    719728    '''round trip for testing purposes:''' 
Note: See TracChangeset for help on using the changeset viewer.