Changeset 3686


Ignore:
Timestamp:
26/03/08 12:39:38 (12 years ago)
Author:
mkochan
Message:

Made changes to MIDAS stations output.

Location:
DPPP/kml/csml2kml/python/csml2kml/csml2kml
Files:
3 edited

Legend:

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

    r3656 r3686  
    117117        # Build a quad-tree from the locations, and convert it into a KMLFolder object. 
    118118        quadTree = build_quadtree(locations) 
    119         kmlFolder = _quadTreeToKMLFolder(quadTree) 
     119        kmlStationsFolder = KMLFolder('Stations', [_quadTreeToKMLFolder(quadTree)], opened = False) 
    120120 
    121         # Add kmlFolder to the current document 
    122         kmlDocument.elements.append(kmlFolder) 
     121        # Add kmlStationsFolder to the current document 
     122        kmlDocument.elements.append(kmlStationsFolder) 
    123123 
    124124        # Make the folder follow the "locked folder" style 
    125125        kmlDocument.styles.append(self.lockedFolderStyle) 
    126         kmlFolder.styleID = self.lockedFolderStyle.id 
     126        kmlStationsFolder.styleID = self.lockedFolderStyle.id 
    127127 
    128128        return kmlDocument 
  • DPPP/kml/csml2kml/python/csml2kml/csml2kml/config/midas.csml2kml.conf.xml

    r3684 r3686  
    11<Stations2KML> 
    2   <DocumentName>MIDAS stations (first 100 of them)</DocumentName> 
     2  <DocumentName>MIDAS stations</DocumentName> 
    33  <UseRegions>yes</UseRegions> 
    44  <GetAllStationsRequestURL><![CDATA[http://bond.badc.rl.ac.uk:8084/geoserver/wfs?request=getFeature&service=wfs&version=1.1.0&typename=np:Station&maxFeatures=100000]]></GetAllStationsRequestURL> 
  • DPPP/kml/csml2kml/python/csml2kml/csml2kml/config/midas_small_subset.csml2kml.conf.xml

    r3657 r3686  
    33  <UseRegions>yes</UseRegions> 
    44  <GetAllStationsRequestURL><![CDATA[http://bond.badc.rl.ac.uk:8084/geoserver/wfs?request=getFeature&service=wfs&version=1.1.0&typename=np:Station&maxFeatures=100]]></GetAllStationsRequestURL> 
    5   <BalloonTemplate>&lt;h2&gt;Station $[station_name]&lt;/h2&gt;Click here to see the list of &lt;a href=&quot;http://superglue.badc.rl.ac.uk:8089/csmlGrapher/list?station_name=$[station_name]&quot;&gt;CSML features associated with this station&lt;/a&gt; (this will open a window of your default web browser).</BalloonTemplate> 
     5  <BalloonTemplate>&lt;h2&gt;Station $[station_name]&lt;/h2&gt;Click here to see the list of &lt;a href=&quot;http://superglue.badc.rl.ac.uk:8084/csmlGrapher/list?station_name=$[station_name]&quot;&gt;CSML features associated with this station&lt;/a&gt; (this will open a window of your default web browser).</BalloonTemplate> 
    66  <StationData> 
    77    <Datum name="station_id">#ID#</Datum> 
Note: See TracChangeset for help on using the changeset viewer.