[GRASS-dev] Re: [GRASS GIS] #820: r.in.wms doesn't work in WinGRASS
installer distribution
GRASS GIS
trac at osgeo.org
Sun Sep 26 11:16:48 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 |
---------------------------------------+------------------------------------
Comment(by hellik):
Replying to [comment:37 msieczka]:
> Replying to [comment:36 hellik]:
> > Replying to [comment:35 msieczka]:
> > > Replying to [comment:34 hamish]:
>
> > > > there is also r.tileset, cs2cs, and gdalwarp issues to consider.
> > > >
> > > > it is getting better, but please just leave the backporting alone
for now..
>
> > > Maybe drop r.in.wms in Win GRASS 6.4.1? Bugs are known, not going to
be fixed, so no point in frustrating the user?
>
> > with the recent fixes for GDAL_DATA and PROJ_LIB variables needed in
windows and some backports from Grass65 to Grass64svn, r.in.wms should now
working also in WinGrass6.4.1 (tested with the examples in the manpages in
WinGrass6.4.1 in the nc-location: all are working)
>
> I have Installed
http://josef.fsv.cvut.cz/wingrass/grass64/WinGRASS-6.4.SVN-r43540-1-Setup.exe
and overwritten respective files in C:\Program Files\GRASS-64-SVN\scripts
with most recent stuff from
https://svn.osgeo.org/grass/grass/branches/releasebranch_6_4/scripts/r.in.wms/.
>
> In spearfish60 an error crops out:
>
> {{{
> GRASS 6.4> g.region rast=elevation.dem -ag
> n=4928000
> s=4914020
> w=590010
> e=609000
> nsres=30
> ewres=30
> rows=466
> cols=633
> cells=294978
> GRASS 6.4> r.in.wms layers=global_mosaic
mapserver=http://wms.jpl.nasa.gov/wms.
> cgi output=wms_global_mosaic --o
> which: wget: unknown command
> which: wget: unknown command
> Calculating tiles
> Rel. 4.7.1, 23 September 2009
> <cs2cs.exe>:
> projection initialization failure
> cause: Unknown error
> program abnormally terminated
> ERROR: Problem running cs2cs. <Using to definition: init=epsg:4326 >
> ERROR: r.tileset failure
> ERROR: wms.request failure
> }}}
you need also:
r43520
r43542
that means add GDAL_DATA and PROJ_LIB variable in following files
C:\Program Files\GRASS-64-SVN\grass64svn.bat
C:\Program Files\GRASS-64-SVN\bin\grass64svn
in grass64svn.bat
{{{
rem Set GDAL_DATA
set GDAL_DATA=%GRASSDIR%\etc\ogr_csv
rem Set PROJ_LIB
set PROJ_LIB=%GRASSDIR%\proj
}}}
and in grass64svn
{{{
# Set the GDAL_DATA variable
GDAL_DATA="C:\Program Files\GRASS-64-SVN\etc\ogr_csv"
export GDAL_DATA
# Set the PROJ_LIB variable
PROJ_LIB="C:\Program Files\GRASS-64-SVN\proj"
export PROJ_LIB
}}}
if you want I can you give WinGRASS-6.4.SVN-r43468-1-Setup.exe (self
compiled from yesterday) for testing?
Helmut
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/820#comment:38>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list