[GRASS-dev] Re: [GRASS GIS] #1310: Browse button in WxPython GUIs (for scripts) does not provide a correct file path for WinGRAS

GRASS GIS trac at osgeo.org
Sat Mar 26 13:02:00 EDT 2011


#1310: Browse button in WxPython GUIs (for scripts) does not provide a correct
file path for WinGRAS
------------------------------+---------------------------------------------
 Reporter:  katrineggert1980  |       Owner:  grass-dev@…              
     Type:  defect            |      Status:  new                      
 Priority:  critical          |   Milestone:  6.4.1                    
Component:  wxGUI             |     Version:  6.4.1 RCs                
 Keywords:  winGRASS          |    Platform:  MSWindows XP             
      Cpu:  Unspecified       |  
------------------------------+---------------------------------------------

Comment(by neteler):

 Replying to [comment:3 neteler]:
 > Looking at the *script* r.out.xyz, we see that a redirection is used:
 >
 > {{{
 > # if no output filename, output to stdout
 > if  [ -z "$GIS_OPT_OUTPUT" ] || [ "$GIS_OPT_OUTPUT" = "-" ]; then
 >     r.stats -1gn "$GIS_OPT_INPUT" fs="$GIS_OPT_FS"
 > else
 >     r.stats -1gn "$GIS_OPT_INPUT" fs="$GIS_OPT_FS" > "$GIS_OPT_OUTPUT"
 > fi
 > }}}
 >
 > I suspect that this is causing problems on Windows.

 I wonder why not simply using the "output=" parameter of r.stats:

 {{{
   output   Name for output file (if omitted or "-" output to stdout)
 }}}

 Helmut, could you please test if adding output="$GIS_OPT_OUTPUT" helps?

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1310#comment:4>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list