Changeset 3562


Ignore:
Timestamp:
07/03/08 10:35:31 (12 years ago)
Author:
mkochan
Message:

Added wms:Layer abstracts as kml:NetworkLink descriptions.

Location:
DPPP/kml/csml2kml
Files:
3 edited

Legend:

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

    r3557 r3562  
    336336class KMLNetworkLink(KMLElement): 
    337337 
    338     def __init__(self, name, url, styleID = None, visible = True): 
     338    def __init__(self, name, url, description = None, styleID = None, visible = True): 
    339339        self.name = name 
    340340        self.url = url 
    341341        self.visible = visible 
    342342        self.styleID = styleID 
     343        self.description = description 
    343344 
    344345    def build(self): 
     
    346347 
    347348        SubElement(networkLinkElement, 'name').text = self.name 
     349 
     350        if self.description: 
     351            SubElement(networkLinkElement, 'description').text = self.description 
    348352 
    349353        if self.styleID: 
  • DPPP/kml/csml2kml/python/csml2kml/csml2kml/WMSCapabilities.py

    r3557 r3562  
    6565        print 'Saved file "%s".' % filename 
    6666     
    67         return KMLNetworkLink(self.title, fileUrl, visible = False) 
     67        return KMLNetworkLink(self.title, fileUrl, description = self.abstract, visible = False) 
    6868 
    6969class BottomWMSLayer(WMSLayer): 
  • DPPP/kml/csml2kml/testdata/ar4.conf.xml

    r3514 r3562  
    88    <CRS>EPSG:4326</CRS> 
    99  </WMSRequest> 
     10  <OutputRootDirectory>/home/users/mkochan/svn-root/kml/csml2kml/output/wms-ar4</OutputRootDirectory> 
     11  <ServerRootDirectory>http://bond.badc.rl.ac.uk:8089</ServerRootDirectory> 
    1012</WMSLayers2KML> 
Note: See TracChangeset for help on using the changeset viewer.