[GRASS-dev] [GRASS GIS] #1683: error message v.add.col on MacOSX
GRASS GIS
trac at osgeo.org
Tue Aug 14 02:57:00 PDT 2012
#1683: error message v.add.col on MacOSX
---------------------------+------------------------------------------------
Reporter: jradinger | Owner: grass-dev@…
Type: defect | Status: new
Priority: major | Milestone: 6.4.3
Component: Shell Scripts | Version: svn-develbranch6
Keywords: v.db.addcol | Platform: All
Cpu: Unspecified |
---------------------------+------------------------------------------------
Comment(by jradinger):
I tried again with the first example (streams at test). No problems occured.
Anyway another
mapset still produces error messages:
{{{
(Tue Aug 14 12:46:01 2012)
v.db.addcol map=sender_point at FIDIMO_Cele columns=testcol DOUBLE
/usr/local/grass-6.5.svn/scripts/v.db.addcol: 1: eval:
FIDIMO_Cele: not found
(Tue Aug 14 12:46:02 2012) Command finished (1 sec)
}}}
And here the extended output:
{{{
(Tue Aug 14 12:48:12 2012)
v.db.addcol map=sender_point at FIDIMO_Cele columns=testcol DOUBLE
+ [ -z /usr/local/grass-6.5.svn ]
+ [ map=sender_point at FIDIMO_Cele != @ARGS_PARSED@ ]
+ basename /usr/local/grass-6.5.svn/scripts/v.db.addcol
+ CMDLINE=v.db.addcol
+ CMDLINE=v.db.addcol "map=sender_point at FIDIMO_Cele"
+ CMDLINE=v.db.addcol "map=sender_point at FIDIMO_Cele"
"columns=testcol DOUBLE"
+ export CMDLINE
+ exec g.parser /usr/local/grass-6.5.svn/scripts/v.db.addcol
map=sender_point at FIDIMO_Cele columns=testcol DOUBLE
+ [ -z /usr/local/grass-6.5.svn ]
+ [ @ARGS_PARSED@ != @ARGS_PARSED@ ]
+ basename /usr/local/grass-6.5.svn/scripts/v.db.addcol
+ PROG=v.db.addcol
+ which awk
+ [ ! -x /usr/bin/awk ]
+ unset LC_ALL
+ LC_NUMERIC=C
+ export LC_NUMERIC
+ g.gisenv get=MAPSET
+ eval FIDIMO_Cele
+ FIDIMO_Cele
/usr/local/grass-6.5.svn/scripts/v.db.addcol: 1: eval:
FIDIMO_Cele: not found
+ g.findfile element=vector file=sender_point at FIDIMO_Cele
mapset=
+ eval name='sender_point at FIDIMO_Cele' mapset='FIDIMO_Cele'
fullname='sender_point at FIDIMO_Cele' file='/home/radinger/Doc
uments/GRASS_locations/Cele_location/FIDIMO_Cele/vector/send
er_point'
+ name=sender_point at FIDIMO_Cele mapset=FIDIMO_Cele
fullname=sender_point at FIDIMO_Cele file=/home/radinger/Docume
nts/GRASS_locations/Cele_location/FIDIMO_Cele/vector/sender_
point
+ [ ! /home/radinger/Documents/GRASS_locations/Cele_location
/FIDIMO_Cele/vector/sender_point ]
+ v.db.connect sender_point at FIDIMO_Cele -gl layer=1 fs=|
+ cut -f2 -d|
+ table=sender_point
+ [ -z sender_point ]
+ cut -f4 -d|
+ v.db.connect sender_point at FIDIMO_Cele -gl fs=| layer=1
+ database=/home/radinger/Documents/GRASS_locations/Cele_loc
ation/FIDIMO_Cele/sqlite.db
+ cut -f5 -d|
+ v.db.connect sender_point at FIDIMO_Cele -gl fs=| layer=1
+ driver=sqlite
+ awk -F, {print NF}
+ echo testcol DOUBLE
+ colnum=1
+ n=1
+ [ 1 -le 1 ]
+ cut -d, -f1
+ echo testcol DOUBLE
+ col=testcol DOUBLE
+ [ -z testcol DOUBLE ]
+ db.execute database=/home/radinger/Documents/GRASS_locatio
ns/Cele_location/FIDIMO_Cele/sqlite.db driver=sqlite
+ echo ALTER TABLE sender_point ADD COLUMN testcol DOUBLE
+ [ 0 -eq 1 ]
+ expr 1 + 1
+ n=2
+ [ 2 -le 1 ]
+ v.support sender_point at FIDIMO_Cele cmdhist=v.db.addcol
"map=sender_point at FIDIMO_Cele" "columns=testcol DOUBLE"
+ exit 0
(Tue Aug 14 12:48:13 2012) Command finished (1 sec)
}}}
So far as I can see there is no whitespace in the mapset.
Tested on Ubuntu 12.04 with Grass6-devel r52671. This might
be related to ticket #1696.
/johannes
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1683#comment:9>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list