[GRASS-SVN] r69568 - in grass-addons/grass7/raster: r.stream.segment r.stream.stats
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Sep 24 13:18:30 PDT 2016
Author: mmetz
Date: 2016-09-24 13:18:30 -0700 (Sat, 24 Sep 2016)
New Revision: 69568
Modified:
grass-addons/grass7/raster/r.stream.segment/stream_vector.c
grass-addons/grass7/raster/r.stream.stats/stats_prepare.c
Log:
r.stream.[segment|stats]: use double for easting/northing
Modified: grass-addons/grass7/raster/r.stream.segment/stream_vector.c
===================================================================
--- grass-addons/grass7/raster/r.stream.segment/stream_vector.c 2016-09-23 21:01:11 UTC (rev 69567)
+++ grass-addons/grass7/raster/r.stream.segment/stream_vector.c 2016-09-24 20:18:30 UTC (rev 69568)
@@ -5,7 +5,7 @@
int i, j, k;
int r, c, d;
int start, stop;
- float northing, easting;
+ double northing, easting;
struct Map_info Out;
struct line_pnts *Segments;
struct line_cats *Cats;
@@ -221,7 +221,7 @@
{
int i, k;
int r, c, d;
- float northing, easting;
+ double northing, easting;
struct Map_info Out;
struct line_pnts *Segments;
struct line_cats *Cats;
Modified: grass-addons/grass7/raster/r.stream.stats/stats_prepare.c
===================================================================
--- grass-addons/grass7/raster/r.stream.stats/stats_prepare.c 2016-09-23 21:01:11 UTC (rev 69567)
+++ grass-addons/grass7/raster/r.stream.stats/stats_prepare.c 2016-09-24 20:18:30 UTC (rev 69568)
@@ -181,8 +181,8 @@
int done = 1;
int r, c;
int next_r, next_c;
- float cur_northing, cur_easting;
- float next_northing, next_easting;
+ double cur_northing, cur_easting;
+ double next_northing, next_easting;
float diff_elev;
double cur_length;
struct Cell_head window;
@@ -261,8 +261,8 @@
int done = 1;
int r, c;
int next_r, next_c;
- float cur_northing, cur_easting;
- float next_northing, next_easting;
+ double cur_northing, cur_easting;
+ double next_northing, next_easting;
float diff_elev;
double cur_length;
CELL streams_cell, dirs_cell;
More information about the grass-commit
mailing list