[GRASS-SVN] r64824 - grass/branches/releasebranch_7_0/vector/v.to.db

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 9 12:31:48 PDT 2015


Author: mlennert
Date: 2015-03-09 12:31:48 -0700 (Mon, 09 Mar 2015)
New Revision: 64824

Modified:
   grass/branches/releasebranch_7_0/vector/v.to.db/report.c
Log:
include fractal dimension in printed output


Modified: grass/branches/releasebranch_7_0/vector/v.to.db/report.c
===================================================================
--- grass/branches/releasebranch_7_0/vector/v.to.db/report.c	2015-03-09 19:29:35 UTC (rev 64823)
+++ grass/branches/releasebranch_7_0/vector/v.to.db/report.c	2015-03-09 19:31:48 UTC (rev 64824)
@@ -63,6 +63,13 @@
 	    fprintf(stdout, "%d%s%.15g\n", Values[i].cat, options.fs, Values[i].d1);
 	break;
 
+    case O_FD:
+	if (G_verbose() > G_verbose_min())
+	    fprintf(stdout, "cat%sfd\n", options.fs);
+	for (i = 0; i < vstat.rcat; i++)
+	    fprintf(stdout, "%d%s%.15g\n", Values[i].cat, options.fs, Values[i].d1);
+	break;
+
     case O_PERIMETER:
 	if (G_verbose() > G_verbose_min())
 	    fprintf(stdout, "cat%sperimeter\n", options.fs);



More information about the grass-commit mailing list