[GRASS-SVN] r73780 - grass/branches/releasebranch_7_4/scripts/r.in.wms
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Dec 8 05:59:35 PST 2018
Author: neteler
Date: 2018-12-08 05:59:35 -0800 (Sat, 08 Dec 2018)
New Revision: 73780
Modified:
grass/branches/releasebranch_7_4/scripts/r.in.wms/wms_base.py
Log:
r.in.wms: added missing .tif extension needed by gdalwarp (GDAL 2.3+), fixes trac #3702 (trunk, r73778)
Modified: grass/branches/releasebranch_7_4/scripts/r.in.wms/wms_base.py
===================================================================
--- grass/branches/releasebranch_7_4/scripts/r.in.wms/wms_base.py 2018-12-08 13:59:30 UTC (rev 73779)
+++ grass/branches/releasebranch_7_4/scripts/r.in.wms/wms_base.py 2018-12-08 13:59:35 UTC (rev 73780)
@@ -380,7 +380,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 = file(os.devnull, 'w+')
@@ -511,7 +511,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