source: DPPP/kml/csml2kml/python/csml2kml/csml2kml/WMSLayerConvertor.py @ 3595

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/DPPP/kml/csml2kml/python/csml2kml/csml2kml/WMSLayerConvertor.py@3595
Revision 3595, 611 bytes checked in by mkochan, 14 years ago (diff)

Split WMSLayer-related functionality into two modules: WMSLayer.py and WMSLayerConvertor.py.

Line 
1from WMSLayer import *
2
3class WMSLayerConvertor:
4   
5    def __init__(self, topWmsLayer, wmsRequestConfigElement, baseKmlOutputDirectory, baseKmlOutputUrl):
6        self.topWmsLayer = topWmsLayer
7        self.wmsRequestConfigElement = wmsRequestConfigElement
8        self.baseKmlOutputDirectory = baseKmlOutputDirectory
9        self.baseKmlOutputUrl = baseKmlOutputUrl
10       
11    def convert(self):
12        viewTypes = [ViewWholeTimecourse, ViewSplittedByMonth, ViewSplittedByPeriod]
13        self.topWmsLayer.toKML(self.wmsRequestConfigElement, viewTypes, self.baseKmlOutputDirectory, self.baseKmlOutputUrl)
Note: See TracBrowser for help on using the repository browser.