[GRASS-SVN] r73779 - grass/branches/releasebranch_7_6/scripts/r.in.wms

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Dec 8 05:59:30 PST 2018


Author: neteler
Date: 2018-12-08 05:59:30 -0800 (Sat, 08 Dec 2018)
New Revision: 73779

Modified:
   grass/branches/releasebranch_7_6/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_6/scripts/r.in.wms/wms_base.py
===================================================================
--- grass/branches/releasebranch_7_6/scripts/r.in.wms/wms_base.py	2018-12-08 13:58:43 UTC (rev 73778)
+++ grass/branches/releasebranch_7_6/scripts/r.in.wms/wms_base.py	2018-12-08 13:59:30 UTC (rev 73779)
@@ -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