Changeset 3220


Ignore:
Timestamp:
15/01/08 11:46:20 (12 years ago)
Author:
mkochan
Message:
 
Location:
DPPP/kml/csml2kml
Files:
3 edited

Legend:

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

    r3219 r3220  
    4747        for viewConfig in self.config.getRoot().findall('View'): 
    4848            kmlViewElement = Element('Folder') 
    49             SubElement(kmlViewElement, 'name').text=view.get('name') 
     49            SubElement(kmlViewElement, 'name').text=kmlViewElement.get('name') 
    5050            SubElement(kmlViewElement, 'open').text='1' 
    5151             
  • DPPP/kml/csml2kml/python/kmlfeatures.py

    r3219 r3220  
    106106 
    107107        featureElement=Element('Folder') 
    108         SubElement(featureElement, 'name').text=name  # feature name 
     108        SubElement(featureElement, 'name').text=self.name  # feature name 
    109109        SubElement(featureElement, 'open').text='0' 
    110110        SubElement(featureElement, 'visibility').text='0' 
     
    144144                for timeStep in dict[category]: 
    145145                    goElement = self.buildGroundOverlayElement(timeStep) 
    146                     SubElement(categoryElement, goElement) 
     146                    categoryElement.append(goElement) 
    147147                             
    148             SubElement(featureElement, categoryElement) 
     148            categoryElement.append(featureElement) 
    149149 
    150150        return featureElement 
     
    152152    def buildGroundOverlayElement(self, timeStep): 
    153153 
    154         goElement=SubElement(folderElement, 'GroundOverlay')       
     154        goElement=Element('GroundOverlay')       
    155155        SubElement(goElement, 'name').text=self.name + ' ' + timestep 
    156156        SubElement(goElement, 'open').text='0' 
  • DPPP/kml/csml2kml/testdata/clim_10.csml2kml.conf.xml

    r3214 r3220  
    1212  </CSMLGridSeriesFeatureWMSRequest> 
    1313  <View name="By feature, whole century"> 
    14     <SplitTimePointsBy></SplitTimePointsBy> 
     14    <SplitTimeStepsBy></SplitTimeStepsBy> 
    1515    <LogicalYearTransform>DECADES_SINCE_1900</LogicalYearTransform> 
    1616  </View> 
    1717  <View name="By feature and decade"> 
    18     <SplitTimePointsBy>year</SplitBy> 
     18    <SplitTimeStepsBy>year</SplitTimeStepsBy> 
    1919    <LogicalYearTransform>IDENTICAL</LogicalYearTransform> 
    2020  </View> 
    2121  <View name="By feature and month"> 
    22     <SplitBy>month</SplitBy> 
     22    <SplitTimeStepsBy>month</SplitTimeStepsBy> 
    2323    <LogicalYearTransform>IDENTICAL</LogicalYearTransform> 
    2424  </View> 
Note: See TracChangeset for help on using the changeset viewer.