[GRASS-SVN] r36550 - grass/trunk/scripts/r.fillnulls
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Mar 31 17:18:12 EDT 2009
Author: neteler
Date: 2009-03-31 17:18:12 -0400 (Tue, 31 Mar 2009)
New Revision: 36550
Modified:
grass/trunk/scripts/r.fillnulls/r.fillnulls.py
Log:
Don't use locale dependent output for parsing
Modified: grass/trunk/scripts/r.fillnulls/r.fillnulls.py
===================================================================
--- grass/trunk/scripts/r.fillnulls/r.fillnulls.py 2009-03-31 21:17:13 UTC (rev 36549)
+++ grass/trunk/scripts/r.fillnulls/r.fillnulls.py 2009-03-31 21:18:12 UTC (rev 36550)
@@ -123,10 +123,10 @@
grass.fatal("abandoned. Removing temporary maps, restoring user mask if needed:")
# count number of points to control segmax parameter for interpolation:
- s = grass.read_command('v.info', map = vecttmp)
+ s = grass.read_command('v.info -t', map = vecttmp)
for l in s.splitlines():
- if "Number of points:" in l:
- s = l.split(':')[1].strip()
+ if "points" in l:
+ s = l.split('=')[1].strip()
s = s.split()[0].strip()
pointsnumber = int(s)
break
More information about the grass-commit
mailing list