[GRASS-SVN] r64823 - grass/trunk/vector/v.to.db

svn_grass at osgeo.org svn_grass at osgeo.org
Mon Mar 9 12:29:35 PDT 2015


Author: mlennert
Date: 2015-03-09 12:29:35 -0700 (Mon, 09 Mar 2015)
New Revision: 64823

Modified:
   grass/trunk/vector/v.to.db/report.c
Log:
include fractal dimension into the printed output


Modified: grass/trunk/vector/v.to.db/report.c
===================================================================
--- grass/trunk/vector/v.to.db/report.c	2015-03-09 19:11:10 UTC (rev 64822)
+++ grass/trunk/vector/v.to.db/report.c	2015-03-09 19:29:35 UTC (rev 64823)
@@ -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