[GRASS-dev] [GRASS GIS] #2139: g.parser does not allow newline character in option value for Python scripts

GRASS GIS trac at osgeo.org
Tue Dec 3 10:44:29 PST 2013


#2139: g.parser does not allow newline character in option value for Python
scripts
-------------------------+--------------------------------------------------
  Reporter:  wenzeslaus  |       Owner:  grass-dev@…                           
      Type:  defect      |      Status:  closed                                
  Priority:  normal      |   Milestone:  7.0.0                                 
 Component:  Parser      |     Version:  svn-trunk                             
Resolution:  fixed       |    Keywords:  g.parser, scripts, newline, line break
  Platform:  All         |         Cpu:  Unspecified                           
-------------------------+--------------------------------------------------
Changes (by wenzeslaus):

  * status:  new => closed
  * resolution:  => fixed


Comment:

 I just tried one MS Windows computer with test command above and it worked
 (command fails in wrong way, see #2140, but the parameters are passed).

 Thanks for the fix. Closing the ticket, reopen when it will be failing on
 other MS Windows machines.

 To test this in correct way generate test file:

 {{{
 echo "100 200" > test.txt
 }}}

 Run test:

 {{{
 m.proj input=test.txt proj_out="+proj=lcc +lat_1=36.16666666666666
 +lat_2=34.33333333333334 +lat_0=33.75 +lon_0=-79 +x_0=609601.22 +y_0=0
 +no_defs +a=6378137 +rf=298.257222101 +towgs84=0.000,0.000,0.000
 +to_meter=1" proj_in="+proj=merc +lat_ts=0.0 +lon_0=0.0 +x_0=0.0 +y_0=0
 +k=1.0 +no_defs +a=6378137 +rf=298.257223563 +towgs84=0.000,0.000,0.000
 +to_meter=1
 "
 }}}

 Check output:

 {{{
 10024493.03|-20933.49|0.00
 }}}

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



More information about the grass-dev mailing list