[GRASS-SVN] r45095 - grass/trunk/display/d.vect
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Jan 20 07:34:27 EST 2011
Author: martinl
Date: 2011-01-20 04:34:27 -0800 (Thu, 20 Jan 2011)
New Revision: 45095
Modified:
grass/trunk/display/d.vect/main.c
Log:
d.vect: extend warning message (topo not available)
Modified: grass/trunk/display/d.vect/main.c
===================================================================
--- grass/trunk/display/d.vect/main.c 2011-01-20 12:20:19 UTC (rev 45094)
+++ grass/trunk/display/d.vect/main.c 2011-01-20 12:34:27 UTC (rev 45095)
@@ -121,10 +121,7 @@
map_opt = G_define_standard_option(G_OPT_V_MAP);
- field_opt = G_define_standard_option(G_OPT_V_FIELD);
- field_opt->label =
- _("Layer number (if -1, all layers are displayed)");
- field_opt->gisprompt = "old_layer,layer,layer_all";
+ field_opt = G_define_standard_option(G_OPT_V_FIELD_ALL);
display_opt = G_define_option();
display_opt->key = "display";
@@ -642,12 +639,16 @@
D_line_width(default_width);
}
else
- G_warning(_("Unable to display areas, topology not available"));
+ G_warning(_("Unable to display areas, topology not available. "
+ "Please try to rebuild topology using "
+ "v.build or v.build.all."));
}
if (display & DISP_SHAPE) {
if (id_flag->answer && level < 2) {
- G_warning(_("Unable to display lines by id, topology not available"));
+ G_warning(_("Unable to display lines by id, topology not available. "
+ "Please try to rebuild topology using "
+ "v.build or v.build.all."));
}
else {
stat = plot1(&Map, type, area, Clist,
@@ -696,7 +697,9 @@
if (level >= 2)
stat = topo(&Map, type, area, &lattr);
else
- G_warning(_("Unable to display topology, not available"));
+ G_warning(_("Unable to display topology, not available."
+ "Please try to rebuild topology using "
+ "v.build or v.build.all."));
}
}
More information about the grass-commit
mailing list