[GRASS-SVN] r60953 - grass/trunk/raster/r.to.vect

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Jun 25 04:49:39 PDT 2014


Author: hcho
Date: 2014-06-25 04:49:39 -0700 (Wed, 25 Jun 2014)
New Revision: 60953

Modified:
   grass/trunk/raster/r.to.vect/lines.c
Log:
r.to.vect: print useful info before quitting

Modified: grass/trunk/raster/r.to.vect/lines.c
===================================================================
--- grass/trunk/raster/r.to.vect/lines.c	2014-06-25 03:57:07 UTC (rev 60952)
+++ grass/trunk/raster/r.to.vect/lines.c	2014-06-25 11:49:39 UTC (rev 60953)
@@ -495,7 +495,13 @@
 	    v_list[col - 1].right = start_line(1);
 	break;
     default:
-	G_debug(1, "Crowded cell %xH (%d,%d)", count, row, col);
+	{
+	    double x, y;
+	    x = Rast_col_to_easting((double)(col + .5), &cell_head);
+	    y = Rast_row_to_northing((double)(row + .5), &cell_head);
+	    G_message(_("Crowded cell at (%f, %f): row %d, col %d, count %d"),
+		      x, y, row, col, count);
+	}
 	G_fatal_error(_("Raster map is not thinned properly.\nPlease run r.thin."));
     }				/* switch count */
 



More information about the grass-commit mailing list