Bug report #17197

can't create pyramid if the geotiff file name has 2-byte characters

Added by Hiroyuki Kobayashi almost 3 years ago. Updated over 1 year ago.

Status:Closed
Priority:Normal
Assignee:-
Category:Processing/GDAL
Affected QGIS version:2.18.13 Regression?:No
Operating System:Windows10 Japanese version Easy fix?:No
Pull Request or Patch supplied:No Resolution:no timely feedback
Crashes QGIS or corrupts data:No Copied to github as #:25096

Description

I usually use Japanese file names (2-byte characters) with my image files.
When I try to create a pyramid for a big geotiff image, it fails both from "Property" menu and "Raster" menu.

When I rename the file from 2-byte to 1-byte characters, it fails from "Property" menu but it succeeds from "Raster" menu.

It happens both v2.14.19 and v2.18.13.

I attach a small geotiff files with 1-byte file name and 2-byte file name.

Tateyama_1977_100m.tif - 1-byte file name (160 KB) Hiroyuki Kobayashi, 2017-09-26 02:19 AM

立山_1977_100m.tif - 2-byte file name (160 KB) Hiroyuki Kobayashi, 2017-09-26 02:19 AM

History

#1 Updated by Giovanni Manghi almost 3 years ago

  • Category changed from Rasters to Processing/GDAL

FYI, no issues under Linux (and possibly also macOS). The size of the raster doesn't really matter. The right place where to fix this is in Processing as anyway the "old" gdaltools are going to disappear in qgis3.

2017-09-26T10:09:23 2 Uncaught error while executing algorithm
Traceback (most recent call last):
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\core\GeoAlgorithm.py", line 203, in execute
self.processAlgorithm(progress)
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\gdal\GdalAlgorithm.py", line 68, in processAlgorithm
GdalUtils.runGdal(commands, progress)
File "C:/OSGEO4~1/apps/qgis/./python/plugins\processing\algs\gdal\GdalUtils.py", line 93, in runGdal
universal_newlines=True,
File "C:\OSGEO4~1\apps\Python27\lib\subprocess.py", line 711, in init
errread, errwrite)
File "C:\OSGEO4~1\apps\Python27\lib\subprocess.py", line 922, in _execute_child
args = '{} /c "{}"'.format (comspec, args)
UnicodeEncodeError: 'ascii' codec can't encode characters in position 31-32: ordinal not in range(128)

#2 Updated by Jürgen Fischer over 1 year ago

  • Status changed from Open to Feedback

Please test with QGIS 3.4 - QGIS 2.18 reached it's end of life.

#3 Updated by Alexander Bruy over 1 year ago

  • Resolution set to no timely feedback
  • Status changed from Feedback to Closed

Also available in: Atom PDF