[GRASS-SVN] r44201 - grass/trunk/vector/v.to.db
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Nov 6 19:00:01 EDT 2010
Author: martinl
Date: 2010-11-06 16:00:01 -0700 (Sat, 06 Nov 2010)
New Revision: 44201
Modified:
grass/trunk/vector/v.to.db/parse.c
Log:
v.to.db: start/end requires at least two columns - #1208
Modified: grass/trunk/vector/v.to.db/parse.c
===================================================================
--- grass/trunk/vector/v.to.db/parse.c 2010-11-06 22:42:02 UTC (rev 44200)
+++ grass/trunk/vector/v.to.db/parse.c 2010-11-06 23:00:01 UTC (rev 44201)
@@ -131,7 +131,10 @@
}
if (!options.print) {
- if (options.option == O_AREA || options.option == O_LENGTH || options.option == O_COUNT || options.option == O_QUERY || options.option == O_COMPACT || options.option == O_FD || options.option == O_PERIMETER || options.option == O_SLOPE || options.option == O_SINUOUS || options.option == O_AZIMUTH) { /* one column required */
+ if (options.option == O_AREA || options.option == O_LENGTH || options.option == O_COUNT ||
+ options.option == O_QUERY || options.option == O_COMPACT || options.option == O_FD ||
+ options.option == O_PERIMETER || options.option == O_SLOPE || options.option == O_SINUOUS ||
+ options.option == O_AZIMUTH) { /* one column required */
if (ncols != 1) {
G_fatal_error(_("This option requires one column"));
}
@@ -141,7 +144,7 @@
G_fatal_error(_("This option requires two columns"));
}
}
- else if (options.option == O_COOR) {
+ else if (options.option == O_COOR || options.option == O_START || options.option == O_END) {
if (ncols < 2) {
G_fatal_error(_("This option requires at least two columns"));
}
More information about the grass-commit
mailing list