[GRASS-dev] [GRASS GIS] #2116: r.kappa: call to r.stats fails if spaces in path

GRASS GIS trac at osgeo.org
Tue Oct 22 16:24:36 PDT 2013


#2116: r.kappa: call to r.stats fails if spaces in path
-------------------------+--------------------------------------------------
 Reporter:  mlennert     |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  6.4.4                    
Component:  Default      |     Version:  svn-releasebranch64      
 Keywords:  kappa path   |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------

Comment(by hamish):

 Replying to [ticket:2116 mlennert]:
 > The attached patch solves the problem for me, but I imagine that
 > there is a more elegant solution.

 right, we should use G_vspawn_ex() instead of system(). It's already done
 for r.kappa in G7; just needs to be backported & tested. see r40146 and
 r44964.


 In addition, as a minor style tweak/simplification I'd suggest to consider
 using the r.stats output= file option instead of a shell redirect/dealing
 with the stdout pipe.


 regards,
 Hamish

-- 
Ticket URL: <https://trac.osgeo.org/grass/ticket/2116#comment:1>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list