[GRASS-SVN] r35570 - grass/branches/develbranch_6/lib/gis

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jan 23 23:01:25 EST 2009


Author: hamish
Date: 2009-01-23 23:01:25 -0500 (Fri, 23 Jan 2009)
New Revision: 35570

Modified:
   grass/branches/develbranch_6/lib/gis/cats.c
Log:
debug code

Modified: grass/branches/develbranch_6/lib/gis/cats.c
===================================================================
--- grass/branches/develbranch_6/lib/gis/cats.c	2009-01-23 23:19:02 UTC (rev 35569)
+++ grass/branches/develbranch_6/lib/gis/cats.c	2009-01-24 04:01:25 UTC (rev 35570)
@@ -668,7 +668,9 @@
     *label = 0;
     val = G_get_raster_value_d(rast, data_type);
     i = G_quant_get_cell_value(&pcats->q, val);
-    /* DEBUG fprintf (stderr, "val %lf found i %d\n", val, i); */
+
+    G_debug(5, "G_get_raster_cat(): val %lf found i %d", val, i);
+
     if (!G_is_c_null_value(&i) && i < pcats->ncats) {
 	if (pcats->labels[i] != NULL)
 	    return pcats->labels[i];



More information about the grass-commit mailing list