[GRASS-SVN] r47381 - in grass/branches/releasebranch_6_4/scripts: v.db.addtable v.db.dropcol v.db.droptable v.db.renamecol v.db.univar v.db.update

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Aug 3 12:33:44 EDT 2011


Author: neteler
Date: 2011-08-03 09:33:44 -0700 (Wed, 03 Aug 2011)
New Revision: 47381

Modified:
   grass/branches/releasebranch_6_4/scripts/v.db.addtable/v.db.addtable
   grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol
   grass/branches/releasebranch_6_4/scripts/v.db.droptable/v.db.droptable
   grass/branches/releasebranch_6_4/scripts/v.db.renamecol/v.db.renamecol
   grass/branches/releasebranch_6_4/scripts/v.db.univar/v.db.univar
   grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update
Log:
added support for layer selection and column name in wxGUI

Modified: grass/branches/releasebranch_6_4/scripts/v.db.addtable/v.db.addtable
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.addtable/v.db.addtable	2011-08-03 16:16:39 UTC (rev 47380)
+++ grass/branches/releasebranch_6_4/scripts/v.db.addtable/v.db.addtable	2011-08-03 16:33:44 UTC (rev 47381)
@@ -33,7 +33,7 @@
 #%end
 #%option
 #% key: layer
-#% type: integer
+#% gisprompt: old_layer,layer,layer
 #% description: Layer where to add new attribute table
 #% answer: 1
 #% required : no

Modified: grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol	2011-08-03 16:16:39 UTC (rev 47380)
+++ grass/branches/releasebranch_6_4/scripts/v.db.dropcol/v.db.dropcol	2011-08-03 16:33:44 UTC (rev 47381)
@@ -33,7 +33,7 @@
 
 #%option
 #% key: layer
-#% type: integer
+#% gisprompt: old_layer,layer,layer
 #% description: Layer where to drop column
 #% answer: 1
 #% required : no
@@ -41,14 +41,14 @@
 
 #%option
 #% key: column
-#% type: string
-#% description: Name of the column
+#% gisprompt: old_dbcolumn,dbcolumn,dbcolumn
+#% description: Name of the column to drop
 #% required : yes
 #%end
 
 
 if  [ -z "$GISBASE" ] ; then
-    echo 'You must be in GRASS GIS to run this program' >&2
+    echo "You must be in GRASS GIS to run this program." 1>&2
  exit 1
 fi
 

Modified: grass/branches/releasebranch_6_4/scripts/v.db.droptable/v.db.droptable
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.droptable/v.db.droptable	2011-08-03 16:16:39 UTC (rev 47380)
+++ grass/branches/releasebranch_6_4/scripts/v.db.droptable/v.db.droptable	2011-08-03 16:33:44 UTC (rev 47381)
@@ -1,5 +1,5 @@
 #!/bin/sh
-#
+
 ############################################################################
 #
 # MODULE:       v.db.droptable
@@ -37,7 +37,7 @@
 #%end
 #%option
 #% key: layer
-#% type: integer
+#% gisprompt: old_layer,layer,layer
 #% description: Layer from which to drop linked attribute table
 #% answer: 1
 #% required : no
@@ -132,7 +132,7 @@
    fi
 
    # write cmd history:
-   v.support "${GIS_OPT_MAP}" cmdhist="${CMDLINE}"
+   v.support map="${GIS_OPT_MAP}" cmdhist="${CMDLINE}"
 
 else
    g.message "Leaving map/table unchanged." 

Modified: grass/branches/releasebranch_6_4/scripts/v.db.renamecol/v.db.renamecol
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.renamecol/v.db.renamecol	2011-08-03 16:16:39 UTC (rev 47380)
+++ grass/branches/releasebranch_6_4/scripts/v.db.renamecol/v.db.renamecol	2011-08-03 16:33:44 UTC (rev 47381)
@@ -33,7 +33,7 @@
 #%end
 #%option
 #% key: layer
-#% type: integer
+#% gisprompt:  old_layer,layer,layer
 #% description: Layer where to rename column
 #% answer: 1
 #% required : no

Modified: grass/branches/releasebranch_6_4/scripts/v.db.univar/v.db.univar
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.univar/v.db.univar	2011-08-03 16:16:39 UTC (rev 47380)
+++ grass/branches/releasebranch_6_4/scripts/v.db.univar/v.db.univar	2011-08-03 16:33:44 UTC (rev 47381)
@@ -31,7 +31,7 @@
 #%End
 #%option
 #% key: column
-#% type: string
+#% gisprompt: old_dbcolumn,dbcolumn,dbcolumn
 #% description: Column on which to calculate statistics (must be numeric)
 #% required : yes
 #%end
@@ -57,7 +57,7 @@
 if  [ -z "$GISBASE" ] ; then
     echo "You must be in GRASS GIS to run this program." 1>&2
  exit 1
-fi   
+fi
 
 if [ "$1" != "@ARGS_PARSED@" ] ; then
   exec g.parser "$0" "$@"

Modified: grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update
===================================================================
--- grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update	2011-08-03 16:16:39 UTC (rev 47380)
+++ grass/branches/releasebranch_6_4/scripts/v.db.update/v.db.update	2011-08-03 16:33:44 UTC (rev 47381)
@@ -27,8 +27,8 @@
 #%end
 #%option
 #% key: layer
-#% type: integer
 #% gisprompt: old_layer,layer,layer
+#% gisprompt: old_layer,layer,layer
 #% description: Layer to which the table to be changed is connected
 #% answer: 1
 #% required : no



More information about the grass-commit mailing list