[GRASS-dev] Re: [GRASS GIS] #1110: v.rast.stats locks up on wingrass
GRASS GIS
trac at osgeo.org
Sun Aug 21 15:53:54 EDT 2011
#1110: v.rast.stats locks up on wingrass
---------------------------------------------------------+------------------
Reporter: hamish | Owner: grass-dev@…
Type: defect | Status: new
Priority: critical | Milestone: 6.4.2
Component: Vector | Version: svn-releasebranch64
Keywords: wingrass, v.rast.stats, v.db.addcol, v.info | Platform: MSWindows XP
Cpu: x86-32 |
---------------------------------------------------------+------------------
Comment(by hellik):
Replying to [comment:5 hamish]:
> are you working from the rxvt/msys prompt? the cmd.exe DOS prompt? from
within the GUI?
> does that make a difference?
tested with wingrass-nightly-build WinGRASS-6.4.SVN-r47775-1-Setup.exe
sqlite as db-backend
(1) "GRASS 6.4.SVN with MSYS" => v.rast.stats-wxgui
{{{
v.rast.stats --verbose vector=mylakes at g7 raster=elevation at PERMANENT
colprefix=gui
Adding columns ' gui_n INTEGER, gui_min DOUBLE PRECISION, gui_max DOUBLE
PRECISION, gui_range DOUBLE PRECISION, gui_mean DOUBLE PRECISION,
gui_stddev DOUBLE PRECISION, gui_variance DOUBLE PRECISION, gui_cf_var
DOUBLE PRECISION, gui_sum DOUBLE PRECISION'
Processing data (766 categories)...
Processing category 6229 (1/766)
[...]
Processing category 11145 (766/766)
Updating the database ...
Statistics calculated from raster map <elevation at PERMANENT> and uploaded
to attribute table of vector map <mylakes>.
Done.
}}}
(Sun Aug 21 19:31:02 2011) Command finished (1647 sec)
(2) "GRASS 6.4.SVN with MSYS" in the wxgui-command-console
{{{
v.rast.stats --verbose vector=mylakes at g7 raster=elevation at PERMANENT
colprefix=cons
Adding columns ' cons_n INTEGER, cons_min DOUBLE PRECISION, cons_max
DOUBLE PRECISION, cons_range DOUBLE PRECISION, cons_mean DOUBLE PRECISION,
cons_stddev DOUBLE PRECISION, cons_variance DOUBLE PRECISION, cons_cf_var
DOUBLE PRECISION, cons_sum DOUBLE PRECISION'
Processing data (766 categories)...
Processing category 6229 (1/766)
[...]
Processing category 11145 (766/766)
Updating the database ...
Statistics calculated from raster map <elevation at PERMANENT> and uploaded
to attribute table of vector map <mylakes>.
Done.
}}}
(3) "GRASS 6.4.SVN with MSYS" in the wingrass-msys-shell
{{{
GRASS 6.4> v.rast.stats --verbose vector=mylakes at g7
raster=elevation at PERMANENT
colprefix=msys
Adding columns ' msys_n INTEGER, msys_min DOUBLE PRECISION, msys_max
DOUBLE
PRECISION, msys_range DOUBLE PRECISION, msys_mean DOUBLE PRECISION,
msys_stddev DOUBLE PRECISION, msys_variance DOUBLE PRECISION, msys_cf_var
DOUBLE PRECISION, msys_sum DOUBLE PRECISION'
Processing data (766 categories)...
Processing category 6229 (1/766)
[...]
Processing category 11145 (766/766)
Updating the database ...
Statistics calculated from raster map <elevation at PERMANENT> and uploaded
to
attribute table of vector map <mylakes>.
Done.
}}}
(4) "GRASS Command Line" - wingrass in text-mode (windows-command-line)
{{{
GRASS 6.4.2svn (nc_spm_08)> v.rast.stats --verbose vector=mylakes at g7
raster=elev
ation at PERMANENT colprefix=msdos
Adding columns ' msdos_n INTEGER, msdos_min DOUBLE PRECISION, msdos_max
DOUBLE PRECISION, msdos_range DOUBLE PRECISION, msdos_mean DOUBLE
PRECISION, msdos_stddev DOUBLE PRECISION, msdos_variance DOUBLE PRECISION,
msdos_cf_var DOUBLE PRECISION, msdos_sum DOUBLE PRECISION'
C:/Program Files/GRASS 6.4.SVN/scripts/v.rast.stats: line 285:
v.db.addcol: command not found
FEHLER: Cannot continue (problem adding columns).
}}}
(5) GRASS 6.4.SVN (desktop shortcut without msys)
{{{
v.rast.stats --verbose vector=mylakes at g7 raster=elevation at PERMANENT
colprefix=owxgui
Adding columns ' owxgui_n INTEGER, owxgui_min DOUBLE PRECISION, owxgui_max
DOUBLE PRECISION, owxgui_range DOUBLE PRECISION, owxgui_mean DOUBLE
PRECISION, owxgui_stddev DOUBLE PRECISION, owxgui_variance DOUBLE
PRECISION, owxgui_cf_var DOUBLE PRECISION, owxgui_sum DOUBLE PRECISION'
C:/Program Files/GRASS 6.4.SVN/scripts/v.rast.stats: line
285: v.db.addcol: command not found
ERROR: Cannot continue (problem adding columns).
}}}
in case (1), (2), (3) wingrass is started by "C:\Program Files\GRASS
6.4.SVN\msys\msys.bat" /grass/bin/grass64svn -wxpython
in case (4) wingrass is started by "C:\Program Files\GRASS
6.4.SVN\grass64svn.bat" -text
in case (5) wingrass is started by "C:\Program Files\GRASS
6.4.SVN\grass64svn.bat" -wxpython
so it seems that the v.db.addcol-script can't be find by the v.rast.stat-
script when wingrass is started via grass64svn.bat, but it's possible in
wingrass started via msys-way.
best regards
Helmut
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/1110#comment:6>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list