[GRASS-SVN] r41796 - grass/trunk/gui/wxpython/scripts

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Apr 10 16:48:14 EDT 2010


Author: martinl
Date: 2010-04-10 16:48:13 -0400 (Sat, 10 Apr 2010)
New Revision: 41796

Removed:
   grass/trunk/gui/wxpython/scripts/p.cmd
   grass/trunk/gui/wxpython/scripts/p.db
   grass/trunk/gui/wxpython/scripts/p.mon
   grass/trunk/gui/wxpython/scripts/p.rast
   grass/trunk/gui/wxpython/scripts/p.vect
Log:
remove bash scripts


Deleted: grass/trunk/gui/wxpython/scripts/p.cmd
===================================================================
--- grass/trunk/gui/wxpython/scripts/p.cmd	2010-04-10 20:39:51 UTC (rev 41795)
+++ grass/trunk/gui/wxpython/scripts/p.cmd	2010-04-10 20:48:13 UTC (rev 41796)
@@ -1,49 +0,0 @@
-#!/bin/sh
-
-#%module
-#% description: Wrapper for display commands and pX monitors
-#% keywords: display
-#%end
-#%option
-#% key: cmd
-#% type: string
-#% required: yes
-#% multiple: no
-#% label: Command to be performed
-#% description: Example: "d.rast map=elevation.dem at PERMANENT catlist=1300-1400 -i"
-#%end
-#%option
-#% key: opacity
-#% type: string
-#% required: no
-#% multiple: no
-#% key_desc: val
-#% description: Opacity level in percentage
-#% answer: 100
-#%end
-
-if [ -z "$GISBASE" ] ; then
-    echo "You must be in GRASS GIS to run this program." 1>&2
-    exit 1
-fi
-
-if [ "$1" != "@ARGS_PARSED@" ] ; then
-    exec g.parser "$0" "$@"
-fi
-
-cmdfile="`g.gisenv get=GRASS_PYCMDFILE`"
-
-if [ -e ${cmdfile} ] && [ -n "${cmdfile}" ]; then
-    :
-else
-    g.message -e "GRASS_PYCMDFILE - File not found. Run p.mon"
-    exit 1
-fi
-
-cmd="${GIS_OPT_CMD}"
-
-g.message -d message="$0: ${cmd}"
-
-echo "${cmd}" >> "${cmdfile}"
-
-exit 0

Deleted: grass/trunk/gui/wxpython/scripts/p.db
===================================================================
--- grass/trunk/gui/wxpython/scripts/p.db	2010-04-10 20:39:51 UTC (rev 41795)
+++ grass/trunk/gui/wxpython/scripts/p.db	2010-04-10 20:48:13 UTC (rev 41796)
@@ -1,36 +0,0 @@
-#!/bin/sh
-
-#%Module
-#% description: Start stand-alone attribute table manager
-#% keywords: database
-#%End
-#%Option
-#% key: table
-#% type: string
-#% required: yes
-#% multiple: no
-#% description: Table name
-#%End
-
-if [ -z "$GISBASE" ] ; then
-    echo "You must be in GRASS GIS to run this program." 1>&2
-    exit 1
-fi
-
-if [ "$1" != "@ARGS_PARSED@" ] ; then
-    exec g.parser "$0" "$@"
-fi
-
-# CODE GOES HERE
-
-
-if [ -z "$PYTHONPATH" ] ; then
-   PYTHONPATH="$GISBASE/etc/wxpython"
-else
-   PYTHONPATH="$GISBASE/etc/wxpython:$PYTHONPATH"
-fi
-export PYTHONPATH
-
-"$GRASS_PYTHON" "$GISBASE/etc/wxpython/gui_modules/dbm.py" "$GIS_OPT_TABLE"
-
-exit 0

Deleted: grass/trunk/gui/wxpython/scripts/p.mon
===================================================================
--- grass/trunk/gui/wxpython/scripts/p.mon	2010-04-10 20:39:51 UTC (rev 41795)
+++ grass/trunk/gui/wxpython/scripts/p.mon	2010-04-10 20:48:13 UTC (rev 41796)
@@ -1,91 +0,0 @@
-#!/bin/sh
-
-#%Module
-#% description: To establish and control use of a graphics display monitor.
-#% keywords: display
-#%End
-#%Flag
-#% key: l
-#% description: List all monitors
-#%End
-#%Flag
-#% key: L
-#% description: List all monitors (with current status)
-#%End
-#%Flag
-#% key: p
-#% description: Print name of currently selected monitor
-#%End
-#%Flag
-#% key: r
-#% description: Release currently selected monitor
-#%End
-#%Flag
-#% key: s
-#% description: Do not automatically select when starting
-#%End
-#%Option
-#% key: start
-#% type: string
-#% required: no
-#% multiple: no
-#% description: Name of graphics monitor to start (p0-p9)
-#%End
-#%Option
-#% key: stop
-#% type: string
-#% required: no
-#% multiple: no
-#% description: Name of graphics monitor to stop
-#%End
-#%Option
-#% key: select
-#% type: string
-#% required: no
-#% multiple: no
-#% description: Name of graphics monitor to select
-#%End
-#%Option
-#% key: unlock
-#% type: string
-#% required: no
-#% multiple: no
-#% description: Name of graphics monitor to unlock
-#%End
-
-if [ -z "$GISBASE" ] ; then
-    echo "You must be in GRASS GIS to run this program." 1>&2
-    exit 1
-fi
-
-if [ "$1" != "@ARGS_PARSED@" ] ; then
-    exec g.parser "$0" "$@"
-fi
-
-# CODE GOES HERE
-
-if [ -z "$PYTHONPATH" ] ; then
-   PYTHONPATH="$GISBASE/etc/wxpython"
-else
-   PYTHONPATH="$GISBASE/etc/wxpython:$PYTHONPATH"
-fi
-export PYTHONPATH
-
-start="$GIS_OPT_START"
-select="$GIS_OPT_SELECT"
-stop="$GIS_OPT_STOP"
-unlock="$GIS_OPT_UNLOCK"
-
-# create the command file
-command_file="`g.tempfile pid=$$`"
-g.gisenv set="GRASS_PYCMDFILE=${command_file}"
-
-if [ -n "$start" ] ; then
-    "$GRASS_PYTHON" "$GISBASE/etc/wxpython/gui_modules/mapdisp.py" "$start" "${command_file}" &
-fi
-
-if [[ -n "$stop" || -n "$select" || -n "$unlock" ]] ; then
-    g.message -w "Not implemented yet"
-fi
-
-exit 0

Deleted: grass/trunk/gui/wxpython/scripts/p.rast
===================================================================
--- grass/trunk/gui/wxpython/scripts/p.rast	2010-04-10 20:39:51 UTC (rev 41795)
+++ grass/trunk/gui/wxpython/scripts/p.rast	2010-04-10 20:48:13 UTC (rev 41796)
@@ -1,113 +0,0 @@
-#!/bin/sh
-
-#%Module
-#% description: Displays and overlays raster map layers in the active display frame on the graphics monitor
-#% keywords: display
-#%End
-#%flag
-#% key: i
-#% description: Invert catlist
-#%End
-#%Option
-#% key: map
-#% type: string
-#% required: yes
-#% multiple: no
-#% description: Raster map to be displayed
-#% gisprompt: old,cell,raster
-#%End
-#%Option
-#% key: catlist
-#% type: string
-#% required: no
-#% multiple: yes
-#% key_desc: cat[-cat]
-#% description: List of categories to be displayed (INT maps)
-#%End
-#%Option
-#% key: vallist
-#% type: string
-#% required: no
-#% multiple: yes
-#% key_desc: val[-val]
-#% description: List of values to be displayed (FP maps)
-#%End
-#%Option
-#% key: opacity
-#% type: string
-#% required: no
-#% multiple: no
-#% key_desc: val[-val]
-#% description: Set opacity between 0-100%
-#%End
-
-
-if [ -z "$GISBASE" ] ; then
-    echo "You must be in GRASS GIS to run this program." 1>&2
-    exit 1
-fi
-
-if [ "$1" != "@ARGS_PARSED@" ] ; then
-    exec g.parser "$0" "$@"
-fi
-
-# CODE GOES HERE
-
-cmdfile="`g.gisenv get=GRASS_PYCMDFILE`"
-
-if [ -e ${cmdfile} ] && [ -n "${cmdfile}" ]; then
-    echo -n
-else
-    g.message -e "GRASS_PYCMDFILE - File not found. Run p.mon"
-    exit 1
-fi
-
-
-eval "`echo ${GIS_OPT_MAP} | sed -e 's/^/NAME=/' -e 's/@/; MAPSET=/'`;"
-
-#echo $NAME 
-
-if [ -z "${MAPSET}" ]; then
-    mapset=""
-else
-    mapset="mapset=${MAPSET}"
-fi
-
-#echo $MAPSET
-
-eval "`g.findfile element=cell file=${NAME} ${mapset}`"
-
-#echo $NAME 
-#echo $MAPSET
-
-if [ -z "${GIS_OPT_CATLIST}" ]; then
-    CATLIST="None"
-else
-    CATLIST="${GIS_OPT_CATLIST}"
-fi
-
-if [ -z "${GIS_OPT_VALLIST}" ]; then
-    VALLIST="None"
-else
-    VALLIST="${GIS_OPT_VALLIST}"
-fi
-
-if [ -z "${GIS_OPT_OPACITY}" ]; then
-    OPACITY="100"
-else
-    OPACITY="${GIS_OPT_OPACITY}"
-fi
-
-if [ "${GIS_FLAG_I}" -eq "1" ]; then
-    INVERT="True"
-else
-    INVERT="False"
-fi
-
-
-#cmd="self.map.AddRasterLayer(self, $NAME $MAPSET $CATLIST $VALLIST $INVERCATS $INVERT $OPACITY)"
-
-cmd="addraster ${name} ${mapset} ${CATLIST} ${VALLIST} ${INVERT} ${OPACITY}"
-
-#echo "${cmd}"
-echo "${cmd}" >> "${cmdfile}"

Deleted: grass/trunk/gui/wxpython/scripts/p.vect
===================================================================
--- grass/trunk/gui/wxpython/scripts/p.vect	2010-04-10 20:39:51 UTC (rev 41795)
+++ grass/trunk/gui/wxpython/scripts/p.vect	2010-04-10 20:48:13 UTC (rev 41796)
@@ -1,335 +0,0 @@
-#!/bin/sh
-
-#%Module
-#% description: Displays GRASS vector data in the active frame on the graphics monitor.
-#% keywords: display
-#%End
-#%Flag
-#% key: v
-#% description: Run verbosely
-#%End
-#%Flag
-#% key: a
-#% description: Get colors from map table column (of form RRR:GGG:BBB)
-#% guisection: Colors
-#%End
-#%Flag
-#% key: c
-#% description: Random colors according to category number (or layer number if 'layer=-1' is given)
-#% guisection: Colors
-#%End
-#%Flag
-#% key: i
-#% description: Use values from 'cats' option as line ID
-#% guisection: Query
-#%End
-#%Flag
-#% key: x
-#% description: Don't add to list of vectors and commands in monitor (it won't be drawn if the monitor is refreshed)
-#%End
-#%Option
-#% key: map
-#% type: string
-#% required: yes
-#% multiple: no
-#% key_desc: name
-#% description: Name of input vector map
-#% gisprompt: old,vector,vector
-#%End
-#%Option
-#% key: type
-#% type: string
-#% required: no
-#% multiple: yes
-#% options: point,line,boundary,centroid,area,face
-#% label: Type
-#% description: Feature type(s)
-#% answer: point,line,boundary,centroid,area,face
-#%End
-#%Option
-#% key: display
-#% type: string
-#% required: no
-#% multiple: yes
-#% options: shape,cat,topo,dir,attr,zcoor
-#% description: Display
-#% answer: shape
-#%End
-#%Option
-#% key: attrcol
-#% type: string
-#% required: no
-#% multiple: no
-#% description: Name of column to be displayed
-#% guisection: Labels
-#%End
-#%Option
-#% key: icon
-#% type: string
-#% required: no
-#% multiple: no
-#% options: demo/muchomurka,demo/smrk,basic/arrow1,basic/arrow2,basic/box,basic/circle,basic/cross1,basic/cross2,basic/diamond,basic/marker,basic/octagon,basic/point,basic/pushpin,basic/star,basic/triangle,basic/x,extra/4pt_star,extra/adcp,extra/airport,extra/alpha_flag,extra/bridge,extra/compass,extra/dive_flag,extra/fancy_compass,extra/half-circle,extra/offbox_ne,extra/offbox_nw,extra/offbox_se,extra/offbox_sw,extra/pentagon,extra/target
-#% description: Point and centroid symbol
-#% answer: basic/x
-#% guisection: Symbols
-#%End
-#%Option
-#% key: size
-#% type: integer
-#% required: no
-#% multiple: no
-#% description: Symbol size
-#% answer: 8
-#% guisection: Symbols
-#%End
-#%Option
-#% key: layer
-#% type: integer
-#% required: no
-#% multiple: no
-#% label: Layer number
-#% description: Layer number. If -1, all layers are displayed.
-#% answer: 1
-#%End
-#%Option
-#% key: cats
-#% type: string
-#% required: no
-#% multiple: no
-#% key_desc: range
-#% label: Category values
-#% description: Example: 1,3,7-9,13
-#% guisection: Query
-#%End
-#%Option
-#% key: where
-#% type: string
-#% required: no
-#% multiple: no
-#% key_desc: sql_query
-#% label: WHERE conditions of SQL statement without 'where' keyword.
-#% description: Example: income < 1000 and inhab >= 10000
-#% guisection: Query
-#%End
-#%Option
-#% key: width
-#% type: integer
-#% required: no
-#% multiple: no
-#% description: Line width
-#% answer: 0
-#% guisection: Lines
-#%End
-#%Option
-#% key: wcolumn
-#% type: string
-#% required: no
-#% multiple: no
-#% description: Name of column for line widths (these values will be scaled by wscale)
-#% guisection: Lines
-#%End
-#%Option
-#% key: wscale
-#% type: double
-#% required: no
-#% multiple: no
-#% description: Scale factor for wcolumn
-#% answer: 1
-#% guisection: Lines
-#%End
-#%Option
-#% key: color
-#% type: string
-#% required: no
-#% multiple: no
-#% description: Line color
-#% answer: black
-#% gisprompt: color,grass,color
-#% guisection: Colors
-#%End
-#%Option
-#% key: fcolor
-#% type: string
-#% required: no
-#% multiple: no
-#% description: Area fill color
-#% answer: 200:200:200
-#% gisprompt: color,grass,color
-#% guisection: Colors
-#%End
-#%Option
-#% key: rgb_column
-#% type: string
-#% required: no
-#% multiple: no
-#% description: Name of color definition column (for use with -a flag)
-#% answer: GRASSRGB
-#% guisection: Colors
-#%End
-#%Option
-#% key: llayer
-#% type: integer
-#% required: no
-#% multiple: no
-#% description: Layer for labels (default: the given layer number)
-#% guisection: Labels
-#%End
-#%Option
-#% key: lcolor
-#% type: string
-#% required: no
-#% multiple: no
-#% description: Label color
-#% answer: red
-#% gisprompt: color,grass,color
-#% guisection: Labels
-#%End
-#%Option
-#% key: bgcolor
-#% type: string
-#% required: no
-#% multiple: no
-#% description: Label background color
-#% answer: none
-#% gisprompt: color,grass,color
-#% guisection: Labels
-#%End
-#%Option
-#% key: bcolor
-#% type: string
-#% required: no
-#% multiple: no
-#% description: Label border color
-#% answer: none
-#% gisprompt: color,grass,color
-#% guisection: Labels
-#%End
-#%Option
-#% key: lsize
-#% type: integer
-#% required: no
-#% multiple: no
-#% description: Label size (pixels)
-#% answer: 8
-#% guisection: Labels
-#%End
-#%Option
-#% key: font
-#% type: string
-#% required: no
-#% multiple: no
-#% description: Font name
-#% guisection: Labels
-#%End
-#%Option
-#% key: xref
-#% type: string
-#% required: no
-#% multiple: no
-#% options: left,center,right
-#% description: Label horizontal justification
-#% answer: left
-#% guisection: Labels
-#%End
-#%Option
-#% key: yref
-#% type: string
-#% required: no
-#% multiple: no
-#% options: top,center,bottom
-#% description: Label vertical justification
-#% answer: center
-#% guisection: Labels
-#%End
-#%Option
-#% key: minreg
-#% type: double
-#% required: no
-#% multiple: no
-#% description: Minimum region size (average from height and width) when map is displayed
-#%End
-#%Option
-#% key: maxreg
-#% type: double
-#% required: no
-#% multiple: no
-#% description: Maximum region size (average from height and width) when map is displayed
-#%End
-#%Option
-#% key: render
-#% type: string
-#% required: no
-#% multiple: no
-#% options: g,r,d,c
-#% description: Rendering method for filled polygons
-#% answer: g
-#%End
-
-
-if [ -z "$GISBASE" ] ; then
-    echo "You must be in GRASS GIS to run this program." 1>&2
-    exit 1
-fi
-
-if [ "$1" != "@ARGS_PARSED@" ] ; then
-    exec g.parser "$0" "$@"
-fi
-
-# CODE GOES HERE
-
-cmdfile="`g.gisenv get=GRASS_PYCMDFILE`"
-
-if [ -e ${cmdfile} ] && [ -n "${cmdfile}" ]; then
-    echo -n
-else
-    echo "WARNING: GRASS_PYCMDFILE - File not found. Run p.mon" >&2
-    exit 1
-fi
-
-
-eval "`echo ${GIS_OPT_MAP} | sed -e 's/^/NAME=/' -e 's/@/; MAPSET=/'`;"
-
-#echo $NAME 
-
-if [ -z "${MAPSET}" ]; then
-    mapset=""
-else
-    mapset="mapset=${MAPSET}"
-fi
-
-#echo $MAPSET
-
-eval "`g.findfile element=vector file=${NAME} ${mapset}`"
-
-#echo $NAME 
-#echo $MAPSET
-
-if [ -z "${GIS_OPT_CATLIST}" ]; then
-    CATLIST="None"
-else
-    CATLIST="${GIS_OPT_CATLIST}"
-fi
-
-if [ -z "${GIS_OPT_VALLIST}" ]; then
-    VALLIST="None"
-else
-    VALLIST="${GIS_OPT_VALLIST}"
-fi
-
-if [ -z "${GIS_OPT_OPACITY}" ]; then
-    OPACITY="100"
-else
-    OPACITY="${GIS_OPT_OPACITY}"
-fi
-
-if [ "${GIS_FLAG_c}" -eq "1" ]; then
-    CATSCOLORS="True"
-else
-    CATSCOLORS="False"
-fi
-
-
-#cmd="self.map.AddRasterLayer(self, $NAME $MAPSET $CATLIST $VALLIST $INVERCATS $INVERT $OPACITY)"
-
-cmd="addvector ${name} ${mapset}"
-echo "${cmd}" >> "${cmdfile}"



More information about the grass-commit mailing list