Skip to content

Commit

Permalink
[gdaltools] Proximity(raster distance) error (Fix #8115)
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 19, 2013
1 parent 0b0de71 commit b2441f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/plugins/GdalTools/tools/doInfo.py
Expand Up @@ -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:
Expand Down
4 changes: 2 additions & 2 deletions python/plugins/GdalTools/tools/doProximity.py
Expand Up @@ -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())
Expand Down

0 comments on commit b2441f8

Please sign in to comment.