Skip to content

Commit b2441f8

Browse files
committed
[gdaltools] Proximity(raster distance) error (Fix #8115)
1 parent 0b0de71 commit b2441f8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

python/plugins/GdalTools/tools/doInfo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def finished( self ):
101101
self.rasterInfoList.clear()
102102
arr = str(self.base.process.readAllStandardOutput()).strip()
103103
if platform.system() == "Windows":
104-
#info = QString.fromLocal8Bit( arr ).trimmed().split( "\r\n" )
104+
#info = QString.fromLocal8Bit( arr ).strip().split( "\r\n" )
105105
# TODO test
106106
info = string.split(arr, sep="\r\n" )
107107
else:

python/plugins/GdalTools/tools/doProximity.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ def getArguments(self):
9090
outputFn = self.getOutputFileName()
9191
arguments.append( outputFn)
9292
if self.valuesCheck.isChecked():
93-
values = self.valuesEdit.text().trimmed()
93+
values = self.valuesEdit.text().split()
9494
if values:
9595
arguments.append( "-values")
96-
arguments.append( values.replace(' ', ','))
96+
arguments.append( ','.join( values) )
9797
if self.distUnitsCheck.isChecked() and self.distUnitsCombo.currentIndex() >= 0:
9898
arguments.append( "-distunits")
9999
arguments.append( self.distUnitsCombo.currentText())

0 commit comments

Comments
 (0)