Ignore:
Timestamp:
27/02/08 15:12:44 (12 years ago)
Author:
mkochan
Message:

Added descriptions to the View objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • DPPP/kml/csml2kml/python/csml2kml/csml2kml/KML.py

    r3459 r3534  
    184184    ''' 
    185185 
    186     def __init__(self, name, children, styleID = None, region = None, opened = True, visible = True): 
     186    def __init__(self, name, children, styleID = None, region = None, opened = True, visible = True, description = None): 
    187187        self.name = name 
    188188        self.children = children 
     
    191191        self.opened = opened 
    192192        self.visible = visible 
     193        self.description = description 
    193194 
    194195    def build(self): 
     
    197198            SubElement(folderElement, 'styleUrl').text = '#' + self.styleID 
    198199        SubElement(folderElement, 'name').text = self.name 
     200        if self.description: 
     201            SubElement(folderElement, 'description').text = self.description 
    199202        if self.visible: 
    200203            SubElement(folderElement, 'visibility').text = '1' 
Note: See TracChangeset for help on using the changeset viewer.