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

GRASS GIS trac at osgeo.org
Sun Sep 19 08:37:01 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     |    Platform:  MSWindows XP             
      Cpu:  x86-64  |  
--------------------+-------------------------------------------------------

Comment(by hellik):

 Replying to [comment:6 hamish]:
 > > Replying to hellik:
 > > > AFAICT wget seems to be missing in the nightly WinGrass-build-
 environment.
 > >
 > > and the same seems to be with libxml2.dll
 >
 > that should be ok, you can ignore those. it automatically swaps over to
 curl if wget isn't there, and it automatically swaps over to our own
 parsing if xml2.exe isn't there. the only reason you see those messages is
 because "which" on Windows is more noisy than in Gnu/Linux.
 >
 > if you think the "which: {wget|xml2}: unknown command" messages are a
 big problem we can probably send them to /dev/null.
 >
 >
 > Hamish

 FYI what I have done to bring r.in.wms at least at msys-command-line of
 the latest WinGrass65-nightly build to run:

 (1) copied wget to C:\Program Files\GRASS-65-SVN\bin

 (2) copied the content from C:\OSGeo4W\share\gdal to C:\Program
 Files\GRASS-65-SVN\share\gdal

 (3) in C:\Program Files\GRASS-65-SVN\bin there lives grass65svn,
 dynamically created by the WinGrass-Installer and started by the icon
 WinGrass65+msys, and I've set there GDAL_DATA (see down there):

 {{{
 #! /bin/sh
 #########################################################################
 #
 # File dynamically created by NSIS installer script;
 # Written by Marco Pasetti;
 #
 #########################################################################
 #
 # MODULE:       GRASS Initialization
 # AUTHOR(S):    Justin Hickey - Thailand - jhickey at hpcc.nectec.or.th
 # PURPOSE:      The source file for this shell script is in
 #               lib/init/grass.src and is the grass startup script. It
 #               requires a source file because the definition of GISBASE
 #               is not known until compile time and is substituted from
 the
 #               Makefile. Any command line options are passed to Init.sh.
 # COPYRIGHT:    (C) 2000-2010 by the GRASS Development Team
 #
 #               This program is free software under the GNU General Public
 #               License (>=v2). Read the file COPYING that comes with
 GRASS
 #               for details.
 #
 #########################################################################
 #
 # Modified by Marco Pasetti
 # added the export PATH instruction to let GRASS work from
 # the MSYS environment in the dynamic NSIS installation
 #
 #########################################################################

 trap "echo 'User break!' ; exit" 2 3 9 15

 # Set the GISBASE variable
 GISBASE="/C/Program Files/GRASS-65-SVN"
 export GISBASE

 # Set the PATH variable
 PATH="$GISBASE/extrabin:$GISBASE/extralib:$PATH"
 PATH="$GISBASE/tcl-tk/bin:$GISBASE/sqlite/bin:$GISBASE/gpsbabel:$PATH"
 export PATH
 # Set the PYTHONPATH variable
 PYTHONPATH="$GISBASE/etc/python:$GISBASE/Python25:$PYTHONPATH"
 export PYTHONPATH
 PYTHONHOME="C:\Program Files\GRASS-65-SVN\Python25"
 export PYTHONHOME
 if [ -z "$GRASS_PYTHON" ] ; then
    GRASS_PYTHON=python
    export GRASS_PYTHON
 fi

 # 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

 exec "$GISBASE/etc/Init.sh" "$@"
 }}}

 (4)and at least the example from the manpage for ''LANDSAT from OnEarth
 server download'' is working in the WinGrass65-delivered msys-commandline
 is working:

 {{{
 GRASS 6.5> r.in.wms layers=global_mosaic
 mapserver=http://wms.jpl.nasa.gov/wms
 .cgi output=wms_global_mosaic
 Calculating tiles
 Requesting 1 tiles.
 Downloading tiles
 file: could not find any magic files!
 Downloading data
 SYSTEM_WGETRC = c:/progra~1/wget/etc/wgetrc
 syswgetrc = c:/progra~1/wget/etc/wgetrc
 2010-09-19 14:13:01 URL:http://wms.jpl.nasa.gov/wms.cgi [932783] ->
 "C:/gisdata
 /grassdata/wms_download/wms_global_mosaic__0.geotiff" [1]
 All tiles downloaded successfully
 file: could not find any magic files!
 Creating output file that is 507P x 459L.
 Processing input file
 C:\gisdata\grassdata/wms_download/wms_global_mosaic__0.ge
 otiff.
 0...10...20...30...40...50...60...70...80...90...100 - done.
 Rename raster <wms_global_mosaic_tile_0.alpha> to
 <wms_global_mosaic.alpha>
 Rename raster <wms_global_mosaic_tile_0.blue> to <wms_global_mosaic.blue>
 Rename raster <wms_global_mosaic_tile_0.green> to
 <wms_global_mosaic.green>
 Rename raster <wms_global_mosaic_tile_0.red> to <wms_global_mosaic.red>
 Building Color Image
 Erstelle Farbtabelle für Ausgabe-Rasterkarte...
  100%
 Schreibe Rasterkarte <wms_global_mosaic>...
  100%
 r.composite komplett. Rasterkarte <wms_global_mosaic> erzeugt.
 Written: wms_global_mosaic
 }}}

 so maybe share/gdal should also be included in the WinGrass-installer?

 Helmut

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



More information about the grass-dev mailing list