소스 검색

v.in.org: message cosmetics (degenerated polygons)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@54445 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 12 년 전
부모
커밋
3327ba1426
2개의 변경된 파일4개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 2
      vector/v.in.ogr/geom.c
  2. 2 2
      vector/v.in.ogr/main.c

+ 2 - 2
vector/v.in.ogr/geom.c

@@ -311,8 +311,8 @@ geom(OGRGeometryH hGeom, struct Map_info *Map, int field, int cat,
 	/* 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) {

+ 2 - 2
vector/v.in.ogr/main.c

@@ -692,8 +692,8 @@ int main(int argc, char *argv[])
 	    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"));
 	}
     }