Opened 8 years ago
Last modified 6 years ago
#3215 new defect
The eval of g.proj -g fails due to white space in projection name string
Reported by: | neteler | Owned by: | |
---|---|---|---|
Priority: | normal | Milestone: | 7.6.2 |
Component: | LibGIS | Version: | svn-releasebranch70 |
Keywords: | g.proj | Cc: | |
CPU: | Unspecified | Platform: | Unspecified |
Description
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.
Attachments (1)
Change History (10)
by , 8 years ago
Attachment: | g-proj-quote.diff added |
---|
comment:1 by , 8 years ago
comment:2 by , 8 years ago
Works, thanks for the NRT patch :)
According to lib/gis/units.c there might be some units like FOOT US and more.
comment:5 by , 8 years ago
Milestone: | 7.2.1 → 7.2.2 |
---|
comment:8 by , 7 years ago
Milestone: | → 7.2.4 |
---|
Note:
See TracTickets
for help on using tickets.
Please try out attachment:g-proj-quote.diff, are there any other items which could contain spaces?