[GRASS-dev] Re: [GRASS GIS] #902: nviz (tcl) fails on wingrass
GRASS GIS
trac at osgeo.org
Fri Feb 5 01:53:53 EST 2010
#902: nviz (tcl) fails on wingrass
-----------------------+----------------------------------------------------
Reporter: hamish | Owner: grass-dev at lists.osgeo.org
Type: defect | Status: new
Priority: critical | Milestone: 6.4.0
Component: NVIZ | Version: svn-trunk
Resolution: | Keywords:
Platform: All | Cpu: All
-----------------------+----------------------------------------------------
Comment (by glynn):
Replying to [comment:6 hamish]:
> With today's daily build of the WinGrass installer (r40819) "`nviz -q`"
now works from the msys prompt. But it still doesn't work from the wxGUI.
>
> When you select File -> NVIZ (Tcl/Tk) the module's GUI pops up and you
can set elev: elevation.dem by hand.
>
> But then when you hit [Run] you get a popup error and an error in the
module gui output tab. The popup error reads:
>
> Error in command execution nviz2.2_script
Right. The "nviz" script doesn't invoke g.parser. It invokes
{{{
"$GISBASE/etc/nviz2.2/nviz" -f
"$GISBASE/etc/nviz2.2/scripts/nviz2.2_script"
}}}
and the nviz binary calls G_parser() (with argv[0] set to Tcl's $argv0,
which is the name of the script).
One solution is to simply force argv[0] to "nviz" unless script_mode is
set.
--
Ticket URL: <https://trac.osgeo.org/grass/ticket/902#comment:7>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list