[GRASS-dev] [GRASS GIS] #3702: r.in.wms: examples return errors

#3702: r.in.wms: examples return errors
-------------------------+-------------------------
Reporter: lucadelu | Owner: grass-dev@…
     Type: defect | Status: new
Priority: normal | Milestone: 7.6.0
Component: Raster | Version: unspecified
Keywords: r.in.wms | CPU: Unspecified
Platform: Unspecified |
-------------------------+-------------------------
Hi, I'm testing r.in.wms examples from the manual page but most of them
return errors

{{{
r.in.wms url="https://tiles.maps.eox.at/wms?" layers=s2cloudless
output=sentinel2 format=png
ERROR 1: KEA was compiled against GDAL 2.2, but the current library
version is 2.3
Downloading data from WMS server...
Reprojecting raster...
ERROR 1: KEA was compiled against GDAL 2.2, but the current library
version is 2.3
ERROR 1: Cannot guess driver for
/home/lucadelu/grassdata/nc_spm_08/test/.tmp/geowork/14177.0
ERROR: gdalwarp failed
}}}

{{{
r.in.wms url="http://ows.mundialis.de/services/service?" layer=TOPO-WMS
output=topo format=png
ERROR 1: KEA was compiled against GDAL 2.2, but the current library
version is 2.3
Downloading data from WMS server...
RuntimeError: module compiled against API version 0xc but this version of
numpy is 0xa
Traceback (most recent call last):
   File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-
gnu/scripts/r.in.wms", line 241, in <module>
     sys.exit(main())
   File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-
gnu/scripts/r.in.wms", line 227, in main
     fetched_map = wms.GetMap(options, flags)
   File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-
gnu/etc/r.in.wms/wms_base.py", line 215, in GetMap
     self.temp_map = self._download()
   File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-
gnu/etc/r.in.wms/wms_drv.py", line 194, in _download
     tile_dataset = self._pct2rgb(temp_tile, temp_tile_pct2rgb)
   File "/home/lucadelu/compilati/grass_trunk/dist.x86_64-pc-linux-
gnu/etc/r.in.wms/wms_drv.py", line 285, in _pct2rgb
     src_data = src_band.ReadAsArray(0, iY, src_ds.RasterXSize, 1)
   File "/usr/lib/python2.7/dist-packages/osgeo/gdal.py", line 2598, in
ReadAsArray
     import gdalnumeric
   File "/usr/lib/python2.7/dist-packages/osgeo/gdalnumeric.py", line 1, in
<module>
     from osgeo.gdal_array import *
   File "/usr/lib/python2.7/dist-packages/osgeo/gdal_array.py", line 17, in
<module>
     _gdal_array = swig_import_helper()
   File "/usr/lib/python2.7/dist-packages/osgeo/gdal_array.py", line 16, in
swig_import_helper
     return importlib.import_module('_gdal_array')
   File "/usr/lib/python2.7/importlib/__init__.py", line 37, in
import_module
     __import__(name)
ImportError: No module named _gdal_array
}}}

{{{
r.in.wms url="http://watzmann-geog.urz.uni-heidelberg.de/cached/osm&quot;
layers=osm_auto:all output=osm format=png
ERROR 1: KEA was compiled against GDAL 2.2, but the current library
version is 2.3
Downloading data from WMS server...
ERROR: Unable to fetch capabilities from
        <http://watzmann-geog.urz.uni-heidelberg.de/cached/osm?&gt;\. Reason:
        Proxy Error
}}}

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3702&gt;
GRASS GIS <https://grass.osgeo.org>

#3702: r.in.wms: examples return errors
--------------------------+---------------------------------
  Reporter: lucadelu | Owner: grass-dev@…
      Type: defect | Status: closed
  Priority: normal | Milestone: 7.4.3
Component: Raster | Version: svn-releasebranch76
Resolution: fixed | Keywords: r.in.wms
       CPU: Unspecified | Platform: Unspecified
--------------------------+---------------------------------
Changes (by neteler):

* status: new => closed
* version: unspecified => svn-releasebranch76
* resolution: => fixed
* milestone: 7.6.0 => 7.4.3

Comment:

I have added a (now) missing .tif extension as needed by gdalwarp (GDAL
2.3+):
trunk r73778, relbranch76 r73779, relbranch74 r73780

Closing.

--
Ticket URL: <https://trac.osgeo.org/grass/ticket/3702#comment:1&gt;
GRASS GIS <https://grass.osgeo.org>