[GRASS-SVN] r42413 -
grass/branches/develbranch_6/raster/r.grow.distance
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Jun 1 05:16:17 EDT 2010
Author: mmetz
Date: 2010-06-01 05:16:05 -0400 (Tue, 01 Jun 2010)
New Revision: 42413
Modified:
grass/branches/develbranch_6/raster/r.grow.distance/main.c
Log:
bugfix for distance calculation (partial backport from trunk r34429)
Modified: grass/branches/develbranch_6/raster/r.grow.distance/main.c
===================================================================
--- grass/branches/develbranch_6/raster/r.grow.distance/main.c 2010-06-01 09:14:25 UTC (rev 42412)
+++ grass/branches/develbranch_6/raster/r.grow.distance/main.c 2010-06-01 09:16:05 UTC (rev 42413)
@@ -287,6 +287,12 @@
check(col, 1, -1);
}
+ for (col = 0; col < ncols; col++)
+ check(col, -1, 0);
+
+ for (col = ncols - 1; col >= 0; col--)
+ check(col, 1, 0);
+
if (dist_name) {
if (out_row != dist_row)
for (col = 0; col < ncols; col++)
More information about the grass-commit
mailing list