[GRASS-SVN] r36363 - grass/branches/develbranch_6/raster/r.walk

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Mar 13 14:18:47 EDT 2009


Author: cmbarton
Date: 2009-03-13 14:18:47 -0400 (Fri, 13 Mar 2009)
New Revision: 36363

Modified:
   grass/branches/develbranch_6/raster/r.walk/stash.h
Log:
Fix to create backlink maps for better least cost path analysis.

Modified: grass/branches/develbranch_6/raster/r.walk/stash.h
===================================================================
--- grass/branches/develbranch_6/raster/r.walk/stash.h	2009-03-13 16:31:52 UTC (rev 36362)
+++ grass/branches/develbranch_6/raster/r.walk/stash.h	2009-03-13 18:18:47 UTC (rev 36363)
@@ -17,6 +17,7 @@
 #define      CUM_COST_LAYER        1
 #define      COST_LAYER            2
 #define      START_PT              3
+#define      MOVE_DIR_LAYER        4
 
 struct start_pt
 {
@@ -38,17 +39,18 @@
     {
     "output", CUM_COST_LAYER}, {
     "input", COST_LAYER}, {
-    "coor", START_PT}
+    "coor", START_PT}, {
+    "outdir", MOVE_DIR_LAYER}
 };
 
-char cum_cost_layer[64];
+char cum_cost_layer[64], move_dir_layer[64];
 char cost_layer[64], dtm_layer[64];
 struct start_pt *head_start_pt = NULL;
 struct start_pt *head_end_pt = NULL;
 
 #else
 
-extern char cum_cost_layer[];
+extern char cum_cost_layer[], move_dir_layer[];
 extern char cost_layer[], dtm_layer[];
 extern struct start_pt *head_start_pt;
 extern struct start_pt *head_end_pt;



More information about the grass-commit mailing list