[GRASS-SVN] r70659 - grass-addons/grass7/raster/r.findtheriver
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Feb 22 03:01:21 PST 2017
Author: hcho
Date: 2017-02-22 03:01:21 -0800 (Wed, 22 Feb 2017)
New Revision: 70659
Added:
grass-addons/grass7/raster/r.findtheriver/global.h
Removed:
grass-addons/grass7/raster/r.findtheriver/point_list.h
Log:
r.findtheriver: separate file for find_stream; standardized options
Added: grass-addons/grass7/raster/r.findtheriver/global.h
===================================================================
--- grass-addons/grass7/raster/r.findtheriver/global.h (rev 0)
+++ grass-addons/grass7/raster/r.findtheriver/global.h 2017-02-22 11:01:21 UTC (rev 70659)
@@ -0,0 +1,27 @@
+#ifndef _GLOBAL_H__
+#define _GLOBAL_H__
+
+#include <grass/raster.h>
+
+#define THRESHOLD_DISTANCE 100
+
+/* point_list.c */
+typedef struct PointNode
+{
+ int col;
+ int row;
+ struct PointNode *next;
+} PointList_t;
+
+PointList_t *create_list(int, int);
+PointList_t *append_point(PointList_t * const, int, int);
+void destroy_list(PointList_t *);
+PointList_t *find_nearest_point(PointList_t * const, int, int);
+void print_list(PointList_t * const, const char *const);
+
+/* find_stream.c */
+PointList_t *find_stream_pixels_in_window(int, char *, const char *,
+ RASTER_MAP_TYPE, int, double, int,
+ int, int, int);
+
+#endif
Deleted: grass-addons/grass7/raster/r.findtheriver/point_list.h
===================================================================
--- grass-addons/grass7/raster/r.findtheriver/point_list.h 2017-02-22 11:01:05 UTC (rev 70658)
+++ grass-addons/grass7/raster/r.findtheriver/point_list.h 2017-02-22 11:01:21 UTC (rev 70659)
@@ -1,34 +0,0 @@
-
-/****************************************************************************
- *
- * MODULE: r.findtheriver
- * AUTHOR(S): Brian Miles - brian_miles at unc.edu
- * with hints from: Glynn Clements - glynn gclements.plus.com
- * PURPOSE: Finds the nearest stream pixel to a coordinate pair using
- * an upstream accumulating area map.
- *
- * COPYRIGHT: (C) 2013 by the University of North Carolina at Chapel Hill
- *
- * This program is free software under the GNU General Public
- * License (>=v2). Read the file COPYING that comes with GRASS
- * for details.
- *
- *****************************************************************************/
-
-#ifndef __POINT_LIST_H__
-#define __POINT_LIST_H__
-
-typedef struct PointNode
-{
- int col;
- int row;
- struct PointNode *next;
-} PointList_t;
-
-PointList_t *create_list(int col, int row);
-PointList_t *append_point(PointList_t * const head, int col, int row);
-void destroy_list(PointList_t * head);
-PointList_t *find_nearest_point(PointList_t * const head, int col, int row);
-void print_list(PointList_t * const head, const char *const sep);
-
-#endif
More information about the grass-commit
mailing list