[GRASS-dev] Re: [GRASS GIS] #1165: wingrass: cs2cs fails from the msys command line

GRASS GIS trac at osgeo.org
Mon Sep 20 16:46:46 EDT 2010


#1165: wingrass: cs2cs fails from the msys command line
--------------------------------+-------------------------------------------
 Reporter:  hamish              |       Owner:  grass-dev@…              
     Type:  defect              |      Status:  new                      
 Priority:  normal              |   Milestone:  6.4.1                    
Component:  Projections/Datums  |     Version:  svn-develbranch6         
 Keywords:  cs2cs, wingrass     |    Platform:  MSWindows XP             
      Cpu:  x86-64              |  
--------------------------------+-------------------------------------------

Comment(by hellik):

 Replying to [comment:4 hellik]:
 > Replying to [comment:2 hamish]:
 > > Even after applying Helmut's GDAL_DATA path fix (r43520) to the
 destination files by hand, this still fails for me in 6.5svn on XP in the
 same way, both Msys (etc/Init.sh) and DOS-box (grass65svn.bat).
 > >
 > > I don't think it will help here, but should that "set GDAL_DATA=" also
 be added to mswindows/osgeo4w/ini.bat.tmpl as well?
 > >
 > >
 > > thanks,
 > > Hamish
 >
 > try r43542 in the next nightly WinGrass65-build.
 >
 > best regards
 > Helmut

 AFAICT this fix above should help.

 but there seems a very interesting issue with osgeo-msys-commandline.

 I've tried following in the osgeo4w-stack and examples from
 http://trac.osgeo.org/proj/wiki/GenParms, but not in the modified
 WinGrass65-install.

 (1) open OSGeo4W Shell (which is a windows-command-line with all osgeo4w-
 utilities):

 {{{
 C:\>echo %PROJ_LIB%
 C:\OSGeo4W\share\proj
 }}}

 {{{
 C:\>cs2cs +proj=latlong +datum=WGS84 +to +proj=latlong +datum=WGS84
 +pm=madrid
 0 0
 3d41'16.58"E    0dN 0.000
 {{{

 all works fine, but

 (2) open osgeo4w-msys-shell

 }}}
 syringia at NADA ~
 $ echo $PROJ_LIB
 C:\OSGeo4W\share\proj
 }}}


 {{{
 syringia at NADA ~
 $ cs2cs +proj=latlong +datum=WGS84 +to +proj=latlong +datum=WGS84
 +pm=madrid
 0 0

 }}}

 nothing happens, no computations of the new coordinates, a blank line is
 waiting (I've waited about 10 minutes, but nothing happend)

 so maybe there are underlying problems of proj4/cs2cs in an (osgeo4w-
 inherited) msys-environment?

 best regards
 Helmut

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



More information about the grass-dev mailing list