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/WMSCapabilities.py

    r3531 r3534  
    124124        self.layer = layer 
    125125        self.wmsRequestConfigElement = wmsRequestConfigElement 
     126        self.description = None 
    126127 
    127128    def areCategoriesListedExplicitly(self): 
     
    207208 
    208209        # Create a KML folder that represents the view of the layer 
    209         kmlLayerViewFolder = KMLFolder(self.name, [], visible = False, opened = False) 
     210        kmlLayerViewFolder = KMLFolder(self.name, [], visible = False, opened = False, description = self.description) 
    210211 
    211212        # Create a categorisation dictionary, dict, which will contain categories (as returned by 
     
    238239 
    239240    def __init__(self, layer, wmsRequestConfigElement): 
     241        View.__init__(self, layer, wmsRequestConfigElement) 
    240242        self.name = 'Whole timecourse' 
    241         View.__init__(self, layer, wmsRequestConfigElement) 
     243        self.description = 'All periods as a contiguous animation. Periods are substituted with logical years.<br><br>Because animation in Google Earth cannot skip between dates, logical years are used to keep the animation contiguous, as will be visible on the animation bar. The first period is substituted with year 1, etc.' 
    242244        yearSet = set() 
    243245        for timestep in self.layer.timesteps: 
     
    267269 
    268270    def __init__(self, layer, wmsRequestConfigElement): 
     271        View.__init__(self, layer, wmsRequestConfigElement) 
    269272        self.name = 'Compare months' 
    270         View.__init__(self, layer, wmsRequestConfigElement) 
     273        self.description = 'In each period, the selected month spreads to cover the whole period.<br><br>Note that if duration of each period is shorter than the spacing between the periods (e.g. for some 20 year climatologies), there will be "blind spots" in the animation.' 
    271274 
    272275    def areCategoriesListedExplicitly(self): 
     
    296299 
    297300    def __init__(self, layer, wmsRequestConfigElement): 
    298         self.name = 'Compare period' 
    299301        View.__init__(self, layer, wmsRequestConfigElement) 
     302        self.name = 'Split by period' 
     303        self.description = 'Animate the selected period only.<br><br>The animation runs only during the period\'s central year, but actually covers the whole period.' 
    300304 
    301305    def areCategoriesListedExplicitly(self): 
Note: See TracChangeset for help on using the changeset viewer.