[GRASS-SVN] r64475 - grass/trunk/vector/v.to.rast
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Feb 5 13:32:58 PST 2015
Author: mmetz
Date: 2015-02-05 13:32:58 -0800 (Thu, 05 Feb 2015)
New Revision: 64475
Modified:
grass/trunk/vector/v.to.rast/vect2rast.c
Log:
v.to.rast: disable wrong messages about converted features
Modified: grass/trunk/vector/v.to.rast/vect2rast.c
===================================================================
--- grass/trunk/vector/v.to.rast/vect2rast.c 2015-02-05 16:14:29 UTC (rev 64474)
+++ grass/trunk/vector/v.to.rast/vect2rast.c 2015-02-05 21:32:58 UTC (rev 64475)
@@ -25,7 +25,7 @@
/* Attributes */
int nrec;
- int ctype;
+ int ctype = 0;
struct field_info *Fi;
dbDriver *Driver;
dbCatValArray cvarr;
@@ -215,11 +215,21 @@
update_labels(raster_map, vector_map, field, labelcolumn, use, value,
column);
+#if 0
+ /* maximum possible numer of areas: number of centroids
+ * actual number of areas, currently unknown:
+ * number of areas with centroid that are within cat constraint
+ * and overlap with current region */
if (nareas_all > 0)
G_message(_("Converted areas: %d of %d"), nareas,
- nareas_all - Vect_get_num_primitives(&Map, GV_CENTROID));
+ Vect_get_num_primitives(&Map, GV_CENTROID));
+ /* maximum possible numer of lines: number of GV_LINE + GV_POINT
+ * actual number of lines, currently unknown:
+ * number of lines are within cat constraint
+ * and overlap with current region */
if (nplines_all > 0)
G_message(_("Converted points/lines: %d of %d"), nlines, nplines_all);
+#endif
return 0;
}
More information about the grass-commit
mailing list