浏览代码

Fix error in parsing r.profile output. AFAICT, this problem arose from some kind of change in the r.profile output since this same syntax was not problematic in the recent past.

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41133 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton 15 年之前
父节点
当前提交
c9843dc0a7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      gui/wxpython/gui_modules/profile.py

+ 1 - 1
gui/wxpython/gui_modules/profile.py

@@ -453,7 +453,7 @@ class ProfileFrame(wx.Frame):
                 return dataset
             
             for line in ret.splitlines():
-                dist, elev = line.split(' ')
+                dist, elev = line.strip().split(' ')
                 if elev != 'nan':
                     datalist.append((dist,elev))