[GRASS-dev] Re: [GRASS GIS] #1163: wx wms import tool error

GRASS GIS trac at osgeo.org
Sun Sep 19 16:19:27 EDT 2010


#1163: wx wms import tool error
---------------------------+------------------------------------------------
 Reporter:  hamish         |       Owner:  grass-dev@…              
     Type:  defect         |      Status:  new                      
 Priority:  normal         |   Milestone:  6.4.1                    
Component:  wxGUI          |     Version:  svn-develbranch6         
 Keywords:  wms, r.in.wms  |    Platform:  MSWindows XP             
      Cpu:  x86-64         |  
---------------------------+------------------------------------------------

Comment(by hellik):

 Replying to [comment:12 hamish]:
 > Replying to [comment:7 hellik]:
 > > (2) copied the content from C:\OSGeo4W\share\gdal
 > > to C:\Program Files\GRASS-65-SVN\share\gdal
 >
 > what files are in that dir?
 >
 >
 > Hamish

 Replying to [comment:11 hamish]:
 > So this was added to C:\Program Files\GRASS-65-SVN\bin\grass65svn[.sh]:
 >
 > {{{
 >  # Set the GRASS_PROJSHARE variable
 >  GRASS_PROJSHARE="C:\Program Files\GRASS-65-SVN\proj"
 >  export GRASS_PROJSHARE
 > +GDAL_DATA="C:\Program Files\GRASS-65-SVN\share\gdal"
 > +export GDAL_DATA
 > }}}
 >
 > by way of editing mswindows/GRASS-Installer.nsi?
 >
 > how about osgeo4w/ini.bat.tmpl?
 >
 > how about `FileWrite $0 'set GRASS_PROJSHARE=%GRASSDIR%\proj$\r$\n'` for
 grass_command.bat? (GRASS-Installer.nsi)
 >
 >
 > please forget about r.in.wms for 6.4, that code has other problems and
 will be replaced soon by what is in 6.5. So 6.5svn needs to be the focus
 of testing.
 >
 > curl is already present so wget should not be needed at all.
 >
 > (fwiw this bug report was supposed to be for the wx
 etc\wxpython\gui_modules\ogc_services.py component, the main r.in.wms-
 fails-on-WinGrass bug report is #820)
 >
 >
 > thanks!
 > Hamish

 Hi Hamish,

 ok, I remember #820, but for completness see r43520, r.in.wms in
 WinGrass65 should work now. the GDAL_DATA variable was missing that
 gdalwarp can't work.

 I've compared share/gdal with C:\Program Files\GRASS-64\etc\ogr_csv, so
 these files are needed for the gdal-utilities. in r43520 I've used that
 versions living in GRASS-64\etc\ogr_csv, because these are the ones beeing
 used by grass64 for creating locations and are in sync with the source.

  this fix can also be applied to Grass64. the only thing - after applying
 the fix of WinGrass65 - in WinGrass64 is, that the helper-scripts in
 C:\Program Files\GRASS-64\etc\r.in.wms aren't found (in the path?). if you
 copy these files in C:\Program Files\GRASS-64\scripts, also r.in.wms in
 WinGrass64 is working with all the examples in the man-page. :o) so IMHO
 the only issue for WinGrass64, which should be fixed, is that the helper-
 scripts are recognized.

 AFAIK in the background of the wx-WMS import tool of WinGrass65, there is
 r.in.wms working, which is not so much different if Grass64-r.in.wms.

 I'll add the information also to #820.

 best regards
 Helmut

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



More information about the grass-dev mailing list