Ignore:
Timestamp:
28/02/08 11:55:18 (12 years ago)
Author:
mkochan
Message:

Added substitution of whitespace with underscores in filenames.

File:
1 edited

Legend:

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

    r3537 r3542  
    387387            # Save the KML document 
    388388            dockmlFilename = parentDir + '/doc.kml' 
    389             kmzFilename = parentDir + '/' + wmsLayer.title + '.kmz' 
     389            kmzFilename = parentDir + '/' + wmsLayer.title.replace(' ', '_') + '.kmz' 
    390390            kmlDocument.save(dockmlFilename) 
    391391            quietZipCommand = 'zip -q ' + ' "' + kmzFilename + '" "' + dockmlFilename + '"' 
     
    397397            '''recursive''' 
    398398            if currentLevel < self.maxDirDepth and not isinstance(wmsLayer, BottomWMSLayer): 
    399                 currentDir = parentDir + '/' + wmsLayer.title 
     399                currentDir = parentDir + '/' + wmsLayer.title.replace(' ', '_') 
    400400                os.mkdir(currentDir) 
    401401                print 'Created directory "%s"' % currentDir 
Note: See TracChangeset for help on using the changeset viewer.