[prev in list] [next in list] [prev in thread] [next in thread]
List: grass-commit
Subject: [GRASS-SVN] r54464 - grass/trunk/vector/v.in.ascii
From: svn_grass () osgeo ! org
Date: 2012-12-29 21:35:08
Message-ID: 20121229213508.8AE59390602 () trac ! osgeo ! org
[Download RAW message or body]
Author: martinl
Date: 2012-12-29 13:35:07 -0800 (Sat, 29 Dec 2012)
New Revision: 54464
Modified:
grass/trunk/vector/v.in.ascii/main.c
Log:
v.in.ascii: be less verbose on standard verbosity level
Modified: grass/trunk/vector/v.in.ascii/main.c
===================================================================
--- grass/trunk/vector/v.in.ascii/main.c 2012-12-29 21:31:37 UTC (rev 54463)
+++ grass/trunk/vector/v.in.ascii/main.c 2012-12-29 21:35:07 UTC (rev 54464)
@@ -257,10 +257,15 @@
&nrows, &coltype, &collen, skip_lines, xcol, ycol,
region_flag->answer);
- G_message(_("Maximum input row length: %d"), rowlen);
- G_message(_("Maximum number of columns: %d"), ncols);
- G_message(_("Minimum number of columns: %d"), minncols);
-
+ G_verbose_message(_("Maximum input row length: %d"), rowlen);
+ if (ncols != minncols) {
+ G_message(_("Maximum number of columns: %d"), ncols);
+ G_message(_("Minimum number of columns: %d"), minncols);
+ }
+ else {
+ G_message(_("Number of columns: %d"), ncols);
+ }
+
/* check column numbers */
if (xcol >= minncols) {
Vect_delete(new->answer);
@@ -342,7 +347,7 @@
switch (coltype[i]) {
case DB_C_TYPE_INT:
- G_message("Column: %d type: integer", i + 1);
+ G_verbose_message("Column: %d type: integer", i + 1);
if (!columns_opt->answer) {
sprintf(buf, "int_%d integer", n_int + 1);
db_append_string(&sql, buf);
@@ -354,7 +359,7 @@
n_int++;
break;
case DB_C_TYPE_DOUBLE:
- G_message("Column: %d type: double", i + 1);
+ G_verbose_message("Column: %d type: double", i + 1);
if (!columns_opt->answer) {
sprintf(buf, "dbl_%d double precision", n_double + 1);
db_append_string(&sql, buf);
@@ -362,7 +367,7 @@
n_double++;
break;
case DB_C_TYPE_STRING:
- G_message("Column: %d type: string length: %d",
+ G_verbose_message("Column: %d type: string length: %d",
i + 1, collen[i]);
if (!columns_opt->answer) {
sprintf(buf, "str_%d varchar(%d)", n_string + 1,
@@ -554,7 +559,5 @@
Vect_close(&Map);
}
- G_done_msg(" ");
-
exit(EXIT_SUCCESS);
}
_______________________________________________
grass-commit mailing list
grass-commit@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/grass-commit
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic