[GRASS-dev] Re: [GRASS GIS] #820: r.in.wms doesn't work in WinGRASS installer distribution

GRASS GIS trac at osgeo.org
Sat Aug 21 06:59:20 EDT 2010


#820: r.in.wms doesn't work in WinGRASS installer distribution
---------------------------------------+------------------------------------
 Reporter:  ddalimonte                 |       Owner:  grass-dev@…              
     Type:  defect                     |      Status:  new                      
 Priority:  major                      |   Milestone:  6.4.0                    
Component:  Projections/Datums         |     Version:  svn-releasebranch64      
 Keywords:  r.in.wms, wingrass, cs2cs  |    Platform:  MSWindows XP             
      Cpu:  Unspecified                |  
---------------------------------------+------------------------------------
Changes (by hamish):

  * keywords:  r.in.wms, wingrass => r.in.wms, wingrass, cs2cs
  * priority:  normal => major
  * component:  Packaging => Projections/Datums


Comment:

 Replying to [comment:26 hamish]:
 > now we are struggling with getting quoting around +proj terms to be
 safe. Nothing
 > is backported to 6.4 yet, and as g.proj and m.proj have changed I wonder
 if we
 > should put off backporting to the stable branch for a while until those
 get a bit
 > of solid testing time.

 back to this one, the quoting "fix" for quoting +proj4 terms in 6.5svn
 doesn't work,
 e.g. in m.proj.

 in /bin/sh:
 {{{
  mkdir "/tmp/nad test"
  cp "$GISBASE"/etc/nad/nzgd2kgrid0005.gsb "/tmp/nad test/"

  IN_PROJ="'+proj=nzmg' '+lat_0=-41' '+lon_0=173' '+x_0=2510000'
 '+y_0=6023150' '+no_defs' '+a=6378388' '+rf=297' '+nadgrids=/tmp/nad
 test/etc/nad/nzgd2kgrid0005.gsb' '+to_meter=1'"

  OUT_PROJ="+proj=longlat +datum=WGS84"
 }}}

 feed a point to cs2cs:
 {{{
  echo "2006797  5490896" | cs2cs -w5 $IN_PROJ  +to $OUT_PROJ
 Using from definition:
 Rel. 4.6.0, 21 Dec 2007
 <cs2cs>:
 projection initialization failure
 cause: no arguments in initialization list
 program abnormally terminated
 }}}

 same thing, but expanded:
 {{{
  echo "2006797  5490896" | cs2cs -w5 '+proj=nzmg' '+lat_0=-41'
 '+lon_0=173' \
    '+x_0=2510000' '+y_0=6023150' '+no_defs' '+a=6378388' '+rf=297' \
    '+nadgrids=/tmp/nad test/nzgd2kgrid0005.gsb' '+to_meter=1' \
    +to +proj=longlat +datum=WGS84
 166d32'36.78939"E       45d36'42.47115"S 0.000


 I've tried a number of permutations of eval, `echo $IN_PROJ`, and
 different flavours of quoting styles, but I just can't seem to get the
 literal expansion to work.


 any ideas?

 thanks,
 Hamish

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



More information about the grass-dev mailing list