[GRASS-dev] Re: [GRASS GIS] #528: wxGUI cmd: r.mapcalc fails

GRASS GIS trac at osgeo.org
Sun Mar 15 07:22:50 EDT 2009


#528: wxGUI cmd: r.mapcalc fails
-----------------------+----------------------------------------------------
  Reporter:  neteler   |       Owner:  grass-dev at lists.osgeo.org
      Type:  defect    |      Status:  new                      
  Priority:  critical  |   Milestone:  6.4.0                    
 Component:  wxGUI     |     Version:  svn-develbranch6         
Resolution:            |    Keywords:                           
  Platform:  All       |         Cpu:  All                      
-----------------------+----------------------------------------------------
Comment (by hellik):

 Replying to [comment:11 glynn]:
 > Replying to [comment:10 cmbarton]:
 >
 >
 > The original report suggests otherwise. That is the real problem here.
 The fact that the 6.x r.mapcalc provides a workaround doesn't help in
 general.
 >
 > > but I would need to test this on a particular set of cases. I
 currently can't think of an appropriate test, but I'm sure there are such
 cases.
 >
 > Choose any command which accepts a filename argument, and pass a
 filename which contains spaces.

 maybe related?

 platform grass64-rc3-3 (osgeo4w) win vista with wx-gui

 command taken from the short tutorial in
 http://www.grassbook.org/examples3rd_chapter6.php

 copied from the website to the wx-gui command-line:
 v.extract stopsall out=stops1 where="ROUTES LIKE '%1%' AND ROUTES NOT LIKE
 '%11%'"

 following error-message:

 v.extract stopsall out=stops1 where="ROUTES LIKE '%1%' AND ROUTES NOT LIKE
 '%11%'"
 Sorry <LIKE> is not a valid option
 Sorry <'%1%'> is not a valid option
 Sorry <AND> is not a valid option
 Sorry <ROUTES> is not a valid option
 Sorry <NOT> is not a valid option
 Sorry <LIKE> is not a valid option
 Sorry <'%11%'"> is not a valid option
 Description:
  Selects vector objects from an existing vector map and
 creates a new map containing only the selected objects.
 Keywords:
  vector, extract
 Usage:
  v.extract [-dtr] input=name output=name [...]

 the working command in the v.extract-gui looks like:

 v.extract input=stopsall at wolfline_lrs output=stops1 type=point
 where=ROUTES LIKE '%1%' AND ROUTES NOT LIKE '%11%'

    25 categories loaded from table <stopsall>
    Extracting features...
    Building topology for vector map <stops1>...
    Registering primitives...
    25 primitives registered [...]

 but if i copy the working command of the v.extract-gui to the wx-gui-cmd,
 the i get again the first error message with

 v.extract input=stopsall at wolfline_lrs output=stops1 type=point
 where=ROUTES LIKE '%1%' AND ROUTES NOT LIKE '%11%'
 Sorry <LIKE> is not a valid option [...]

 Helmut

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


More information about the grass-dev mailing list