[GRASS-dev] [GRASS GIS] #3215: The eval of g.proj -g fails due to white space in projection name string

GRASS GIS trac at osgeo.org
Sun Dec 4 06:10:13 PST 2016


#3215: The eval of g.proj -g fails due to white space in projection name string
-------------------------+---------------------------------
 Reporter:  neteler      |      Owner:  grass-dev@…
     Type:  defect       |     Status:  new
 Priority:  normal       |  Milestone:  7.2.0
Component:  LibGIS       |    Version:  svn-releasebranch70
 Keywords:  g.proj       |        CPU:  Unspecified
 Platform:  Unspecified  |
-------------------------+---------------------------------
 Shell parsing of g.proj -g output fails:

 {{{
 # test case:
 GRASS 7.2.0svn (nc_spm_08_grass7):~ > g.proj -g
 name=Lambert Conformal Conic
 proj=lcc
 datum=nad83
 a=6378137.0
 es=0.006694380022900787
 lat_1=36.16666666666666
 lat_2=34.33333333333334
 lat_0=33.75
 lon_0=-79
 x_0=609601.22
 y_0=0
 no_defs=defined
 epsg=3358
 unit=Meter
 units=Meters
 meters=1


 eval `g.proj -g`
 bash: Conformal: command not found
 }}}

 Quoting of the "name" key of the proj4 struct is needed in
 general/g.proj/output.c but I don't know how to implement that properly.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3215>
GRASS GIS <https://grass.osgeo.org>



More information about the grass-dev mailing list