[GRASS-SVN] r54445 - grass/trunk/vector/v.in.ogr

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Dec 28 07:31:23 PST 2012


Author: martinl
Date: 2012-12-28 07:31:22 -0800 (Fri, 28 Dec 2012)
New Revision: 54445

Modified:
   grass/trunk/vector/v.in.ogr/geom.c
   grass/trunk/vector/v.in.ogr/main.c
Log:
v.in.org: message cosmetics (degenerated polygons)


Modified: grass/trunk/vector/v.in.ogr/geom.c
===================================================================
--- grass/trunk/vector/v.in.ogr/geom.c	2012-12-28 15:25:13 UTC (rev 54444)
+++ grass/trunk/vector/v.in.ogr/geom.c	2012-12-28 15:31:22 UTC (rev 54445)
@@ -311,8 +311,8 @@
 	/* Degenerate is not ignored because it may be useful to see where it is,
 	 * but may be eliminated by min_area option */
 	if (Points->n_points < 4)
-	    G_warning(_("Degenerate polygon (%d vertices)"),
-		      Points->n_points);
+	    G_warning(_("Feature (cat %d): degenerated polygon (%d vertices)"),
+		      cat, Points->n_points);
 
 	size = G_area_of_polygon(Points->x, Points->y, Points->n_points);
 	if (size < min_area) {

Modified: grass/trunk/vector/v.in.ogr/main.c
===================================================================
--- grass/trunk/vector/v.in.ogr/main.c	2012-12-28 15:25:13 UTC (rev 54444)
+++ grass/trunk/vector/v.in.ogr/main.c	2012-12-28 15:31:22 UTC (rev 54445)
@@ -692,8 +692,8 @@
 	    G_fatal_error(error_msg);
 	}
 	else {
-	    G_message(_("Projection of input dataset and current location "
-			"appear to match"));
+	    G_verbose_message(_("Projection of input dataset and current location "
+				"appear to match"));
 	}
     }
 



More information about the grass-commit mailing list