[GRASS-SVN] r53283 - grass/trunk/vector/v.univar
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 28 05:49:16 PDT 2012
Author: neteler
Date: 2012-09-28 05:49:16 -0700 (Fri, 28 Sep 2012)
New Revision: 53283
Modified:
grass/trunk/vector/v.univar/main.c
Log:
print also number of vectors
Modified: grass/trunk/vector/v.univar/main.c
===================================================================
--- grass/trunk/vector/v.univar/main.c 2012-09-28 12:42:39 UTC (rev 53282)
+++ grass/trunk/vector/v.univar/main.c 2012-09-28 12:49:16 UTC (rev 53283)
@@ -66,6 +66,7 @@
/* Statistics */
int count = 0; /* number of features with non-null attribute */
+int nlines; /* number of primitives */
double sum = 0.0;
double sumsq = 0.0;
double sumcb = 0.0;
@@ -181,7 +182,6 @@
int i, j, k, ncats, *cats;
int type;
struct line_pnts *iPoints, *jPoints;
- int nlines;
iPoints = Vect_new_line_struct();
jPoints = Vect_new_line_struct();
More information about the grass-commit
mailing list