Ignore:
Timestamp:
19/02/08 15:44:03 (12 years ago)
Author:
mkochan
Message:

Changed GridSeriesConvertor? and kmlfeatures to use KML.

File:
1 edited

Legend:

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

    r3451 r3459  
    33 
    44import csml.parser 
     5from KML import * 
    56import kmlfeatures 
    67from csmlwrappers import GridSeriesFeatureWrapper 
     8 
    79 
    810class GridSeriesConvertor: 
     
    3234         
    3335        for viewConfig in self.config.findall('View'): 
    34             kmlViewFolder = KMLFolder() 
     36 
     37            kmlViewFolder = KMLFolder(viewConfig.get('name'), [], opened = False, visible = False) 
     38 
    3539            features = self.ds.featureCollection.featureMembers 
    3640            for feature in features: 
     
    3842                # GridSeriesFeatureWrapper allows extended querying of a GridSeriesFeature object 
    3943                gsFeature = GridSeriesFeatureWrapper(feature) 
    40                 description = feature.description.CONTENT    
     44                description = feature.description.CONTENT 
    4145                name = feature.name.CONTENT 
    4246                bBox = gsFeature.getBBox() 
     
    5155 
    5256                # Generate a populated KML folder containing the feature, append it to the view 
    53                 kmlFeatureFolder = gsKML.exportFeature(viewConfig) 
     57                kmlFeatureFolder = gsKML.toKML(viewConfig) 
    5458                kmlViewFolder.children.append(kmlFeatureFolder) 
    5559             
Note: See TracChangeset for help on using the changeset viewer.