[GRASS-SVN] r73778 - grass/trunk/scripts/r.in.wms
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Dec 8 05:58:44 PST 2018
Author: neteler
Date: 2018-12-08 05:58:43 -0800 (Sat, 08 Dec 2018)
New Revision: 73778
Modified:
grass/trunk/scripts/r.in.wms/wms_base.py
Log:
r.in.wms: added missing .tif extension needed by gdalwarp (GDAL 2.3+), fixes trac #3702
Modified: grass/trunk/scripts/r.in.wms/wms_base.py
===================================================================
--- grass/trunk/scripts/r.in.wms/wms_base.py 2018-12-08 13:05:17 UTC (rev 73777)
+++ grass/trunk/scripts/r.in.wms/wms_base.py 2018-12-08 13:58:43 UTC (rev 73778)
@@ -381,7 +381,7 @@
# reprojection of raster
if self.proj_srs != self.proj_location: # TODO: do it better
grass.message(_("Reprojecting raster..."))
- self.temp_warpmap = grass.tempfile()
+ self.temp_warpmap = grass.tempfile() + '.tif'
if int(os.getenv('GRASS_VERBOSE', '2')) <= 2:
nuldev = open(os.devnull, 'w+')
@@ -512,7 +512,8 @@
"""
# importing temp_map into GRASS
try:
- grass.run_command('r.in.gdal',
+ # -o flag needed to overcome different ellipsoid representations
+ grass.run_command('r.in.gdal', flags='o',
quiet=True, overwrite=True,
input=raster, output=self.opt_output)
except CalledModuleError:
More information about the grass-commit
mailing list