[GRASS-SVN] r47383 - in grass/branches/develbranch_6/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:36:18 EDT 2011


Author: neteler
Date: 2011-08-03 09:36:18 -0700 (Wed, 03 Aug 2011)
New Revision: 47383

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

Modified: grass/branches/develbranch_6/scripts/v.db.addtable/v.db.addtable
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.addtable/v.db.addtable	2011-08-03 16:34:53 UTC (rev 47382)
+++ grass/branches/develbranch_6/scripts/v.db.addtable/v.db.addtable	2011-08-03 16:36:18 UTC (rev 47383)
@@ -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/develbranch_6/scripts/v.db.dropcol/v.db.dropcol
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.dropcol/v.db.dropcol	2011-08-03 16:34:53 UTC (rev 47382)
+++ grass/branches/develbranch_6/scripts/v.db.dropcol/v.db.dropcol	2011-08-03 16:36:18 UTC (rev 47383)
@@ -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,17 +41,17 @@
 
 #%option
 #% key: column
-#% type: string
+#% gisprompt: old_dbcolumn,dbcolumn,dbcolumn
+#% description: Name of the column to drop
 ##TODO: #% description: Name of the column(s) to drop
-#% description: Name of the column to drop
 #% required : yes
 ##TODO #% multiple : yes
 #%end
 
 
 if  [ -z "$GISBASE" ] ; then
-    echo 'You must be in GRASS GIS to run this program' >&2
- exit 1
+    echo "You must be in GRASS GIS to run this program" >&2
+    exit 1
 fi
 
 # save command line

Modified: grass/branches/develbranch_6/scripts/v.db.droptable/v.db.droptable
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.droptable/v.db.droptable	2011-08-03 16:34:53 UTC (rev 47382)
+++ grass/branches/develbranch_6/scripts/v.db.droptable/v.db.droptable	2011-08-03 16:36:18 UTC (rev 47383)
@@ -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/develbranch_6/scripts/v.db.renamecol/v.db.renamecol
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.renamecol/v.db.renamecol	2011-08-03 16:34:53 UTC (rev 47382)
+++ grass/branches/develbranch_6/scripts/v.db.renamecol/v.db.renamecol	2011-08-03 16:36:18 UTC (rev 47383)
@@ -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/develbranch_6/scripts/v.db.univar/v.db.univar
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.univar/v.db.univar	2011-08-03 16:34:53 UTC (rev 47382)
+++ grass/branches/develbranch_6/scripts/v.db.univar/v.db.univar	2011-08-03 16:36:18 UTC (rev 47383)
@@ -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/develbranch_6/scripts/v.db.update/v.db.update
===================================================================
--- grass/branches/develbranch_6/scripts/v.db.update/v.db.update	2011-08-03 16:34:53 UTC (rev 47382)
+++ grass/branches/develbranch_6/scripts/v.db.update/v.db.update	2011-08-03 16:36:18 UTC (rev 47383)
@@ -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