[GRASS-SVN] r61560 - grass-addons/grass7/raster3d/r3.flow

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Aug 7 11:37:02 PDT 2014


Author: annakrat
Date: 2014-08-07 11:37:02 -0700 (Thu, 07 Aug 2014)
New Revision: 61560

Modified:
   grass-addons/grass7/raster3d/r3.flow/main.c
Log:
r3.flow: generate flowlines only for seeds when specified

Modified: grass-addons/grass7/raster3d/r3.flow/main.c
===================================================================
--- grass-addons/grass7/raster3d/r3.flow/main.c	2014-08-07 07:16:30 UTC (rev 61559)
+++ grass-addons/grass7/raster3d/r3.flow/main.c	2014-08-07 18:37:02 UTC (rev 61560)
@@ -463,8 +463,8 @@
 		    if (flowacc_opt->answer)
 			seed.flowaccum = TRUE;
 
-		    if (flowlines_opt->answer && (c % skip[0] == 0) &&
-			(r % skip[1] == 0) && (d % skip[2] == 0))
+		    if (flowlines_opt->answer && !seed_opt->answer &&
+		       (c % skip[0] == 0) && (r % skip[1] == 0) && (d % skip[2] == 0))
 			seed.flowline = TRUE;
 
 		    if (seed.flowaccum || seed.flowline) {



More information about the grass-commit mailing list