[GRASS-SVN] r69566 - grass-addons/grass7/raster/r.stream.order
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 23 13:03:14 PDT 2016
Author: mmetz
Date: 2016-09-23 13:03:14 -0700 (Fri, 23 Sep 2016)
New Revision: 69566
Modified:
grass-addons/grass7/raster/r.stream.order/stream_topology.c
grass-addons/grass7/raster/r.stream.order/stream_vector.c
Log:
r.stream.order: calculate distance with double
Modified: grass-addons/grass7/raster/r.stream.order/stream_topology.c
===================================================================
--- grass-addons/grass7/raster/r.stream.order/stream_topology.c 2016-09-23 19:56:29 UTC (rev 69565)
+++ grass-addons/grass7/raster/r.stream.order/stream_topology.c 2016-09-23 20:03:14 UTC (rev 69566)
@@ -113,9 +113,9 @@
int next_r, next_c;
int prev_r, prev_c;
int cur_stream;
- float cur_northing, cur_easting;
- float next_northing, next_easting;
- float init_northing, init_easting;
+ double cur_northing, cur_easting;
+ double next_northing, next_easting;
+ double init_northing, init_easting;
double cur_length = 0.;
double cur_accum_length = 0.;
STREAM *SA = stream_attributes; /* for better code readability */
@@ -334,9 +334,9 @@
int next_r, next_c;
int prev_r, prev_c;
int cur_stream, next_stream, dirs_cell;
- float cur_northing, cur_easting;
- float next_northing, next_easting;
- float init_northing, init_easting;
+ double cur_northing, cur_easting;
+ double next_northing, next_easting;
+ double init_northing, init_easting;
double cur_length = 0.;
double cur_accum_length = 0.;
STREAM *SA = stream_attributes; /* for better code readability */
Modified: grass-addons/grass7/raster/r.stream.order/stream_vector.c
===================================================================
--- grass-addons/grass7/raster/r.stream.order/stream_vector.c 2016-09-23 19:56:29 UTC (rev 69565)
+++ grass-addons/grass7/raster/r.stream.order/stream_vector.c 2016-09-23 20:03:14 UTC (rev 69566)
@@ -8,7 +8,7 @@
int next_r, next_c;
int add_outlet = 0;
int cur_stream;
- float northing, easting;
+ double northing, easting;
struct Cell_head window;
struct line_pnts *Segments;
struct line_cats *Cats;
@@ -94,7 +94,7 @@
int add_outlet;
int streams_cell, dirs_cell;
int cur_stream, next_stream;
- float northing, easting;
+ double northing, easting;
struct Cell_head window;
struct line_pnts *Segments;
struct line_cats *Cats;
More information about the grass-commit
mailing list