[GRASS-dev] [GRASS GIS] #1791: gui modeler: cannot load file with r.mapcalc expression containing '&&' operator

GRASS GIS trac at osgeo.org
Fri Nov 9 06:46:29 PST 2012


#1791: gui modeler: cannot load file with r.mapcalc expression containing '&&'
operator
-------------------------+--------------------------------------------------
 Reporter:  mlennert     |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  6.4.3                    
Component:  wxGUI        |     Version:  unspecified              
 Keywords:  modeler      |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 I have a model in which I use r.mapcalculator with the '&&' operator:



 {{{
 <parameter name="formula">
     <value>if(A==0 && B> 4, 1, A)</value>
 </parameter>
 }}}



 After saving the model to a file, I cannot load it back into the modeler.
 Instead I get the following error:


 {{{
 self._parser.Parse(data, 0)
 xml.parsers.expat
 .
 ExpatError
 :
 not well-formed (invalid token): line 46, column 32
 }}}

 Moritz

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/1791>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list