Skip to content
Permalink
Browse files

[gdaltools] Proximity(raster distance) error (Fix #8115)

  • Loading branch information
m-kuhn committed Jun 19, 2013
1 parent 0b0de71 commit b2441f809897fdaed1656cb3fb6653da9a34b1b2
Showing with 3 additions and 3 deletions.
  1. +1 −1 python/plugins/GdalTools/tools/doInfo.py
  2. +2 −2 python/plugins/GdalTools/tools/doProximity.py
@@ -101,7 +101,7 @@ def finished( self ):
self.rasterInfoList.clear()
arr = str(self.base.process.readAllStandardOutput()).strip()
if platform.system() == "Windows":
#info = QString.fromLocal8Bit( arr ).trimmed().split( "\r\n" )
#info = QString.fromLocal8Bit( arr ).strip().split( "\r\n" )
# TODO test
info = string.split(arr, sep="\r\n" )
else:
@@ -90,10 +90,10 @@ def getArguments(self):
outputFn = self.getOutputFileName()
arguments.append( outputFn)
if self.valuesCheck.isChecked():
values = self.valuesEdit.text().trimmed()
values = self.valuesEdit.text().split()
if values:
arguments.append( "-values")
arguments.append( values.replace(' ', ','))
arguments.append( ','.join( values) )
if self.distUnitsCheck.isChecked() and self.distUnitsCombo.currentIndex() >= 0:
arguments.append( "-distunits")
arguments.append( self.distUnitsCombo.currentText())

0 comments on commit b2441f8

Please sign in to comment.
You can’t perform that action at this time.