Opened 4 years ago

Closed 4 years ago

#3702 closed defect (fixed)

r.in.wms: examples return errors

Reported by: lucadelu Owned by: grass-dev@…
Priority: normal Milestone: 7.4.3
Component: Raster Version: svn-releasebranch76
Keywords: r.in.wms Cc:
CPU: Unspecified Platform: Unspecified

Description

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" 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?>. Reason:
       Proxy Error

Change History (1)

comment:1 by neteler, 4 years ago

Milestone: 7.6.07.4.3
Resolution: fixed
Status: newclosed
Version: unspecifiedsvn-releasebranch76

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

Closing.

Note: See TracTickets for help on using tickets.