[GRASS-SVN] r35587 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 24 17:22:03 EST 2009
Author: hamish
Date: 2009-01-24 17:22:03 -0500 (Sat, 24 Jan 2009)
New Revision: 35587
Modified:
grass/trunk/lib/gis/cats.c
Log:
debug code (merge from devbr6)
Modified: grass/trunk/lib/gis/cats.c
===================================================================
--- grass/trunk/lib/gis/cats.c 2009-01-24 21:47:56 UTC (rev 35586)
+++ grass/trunk/lib/gis/cats.c 2009-01-24 22:22:03 UTC (rev 35587)
@@ -670,7 +670,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