[GRASS-SVN] r61341 - grass/branches/releasebranch_7_0/raster/r.to.vect

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jul 22 14:26:32 PDT 2014


Author: neteler
Date: 2014-07-22 14:26:32 -0700 (Tue, 22 Jul 2014)
New Revision: 61341

Modified:
   grass/branches/releasebranch_7_0/raster/r.to.vect/lines.c
Log:
 r.to.vect: print useful info about crowded cell before quitting (backport from trunk)

Modified: grass/branches/releasebranch_7_0/raster/r.to.vect/lines.c
===================================================================
--- grass/branches/releasebranch_7_0/raster/r.to.vect/lines.c	2014-07-22 21:17:40 UTC (rev 61340)
+++ grass/branches/releasebranch_7_0/raster/r.to.vect/lines.c	2014-07-22 21:26:32 UTC (rev 61341)
@@ -495,7 +495,10 @@
 	    v_list[col - 1].right = start_line(1);
 	break;
     default:
-	G_debug(1, "Crowded cell %xH (%d,%d)", count, row, col);
+	G_message(_("Crowded cell at (%f, %f): row %d, col %d, count %d"),
+		  Rast_col_to_easting((double)col - .5, &cell_head),
+		  Rast_row_to_northing((double)row + .5, &cell_head),
+		  row, col - 1, count);
 	G_fatal_error(_("Raster map is not thinned properly.\nPlease run r.thin."));
     }				/* switch count */
 



More information about the grass-commit mailing list