[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 12:56:21 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:1 hellik]:
 > tested with WinGRASS-6.4.SVN-r45749-1-Setup.exe
 ...
 > {{{
 > r.out.xyz input=elevation at PERMANENT output=C:\wd\exportgrass\routxyz.txt
 > c:/Program Files/GRASS 6.4.SVN/scripts/r.out.xyz: line 61:
 > C:wdexportgrassroutxyz.txt: Permission denied
 > }}}


 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.

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



More information about the grass-dev mailing list