You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am working with QGIS 3.32.0-Lima on Windows 11. I am trying to port an R script to QGIS by creating an R script.
However, when I run it, I get an encoding error that I can't understand:
Traceback (most recent call last): File "C:\Users/giano/AppData/Roaming/QGIS/QGIS3\profiles\SGI/python/plugins\processing_r\processing\algorithm.py", line 396, in processAlgorithm output = RUtils.execute_r_algorithm(self, parameters, context, feedback) File "C:\Users/giano/AppData/Roaming/QGIS/QGIS3\profiles\SGI/python/plugins\processing_r\processing\utils.py", line 281, in execute_r_algorithm for line in iter(proc.stdout.readline, ''): File "C:\OSGeo4W\apps\Python39\lib\codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position 21: invalid continuation byte Execution failed after 37.93 seconds
The code I am using is as follows, and I have two input rasters, one with Integer values and the other is float.
In fact, the objective is to perform zonal statistics between rasters by calculating the median of the values of raster A for each class of raster B (which the "Raster Layer Zonal statistics" tool does not do) and then reclassify the values of raster A based on the calculated value.
I am working with QGIS 3.32.0-Lima on Windows 11. I am trying to port an R script to QGIS by creating an R script.
However, when I run it, I get an encoding error that I can't understand:
Traceback (most recent call last): File "C:\Users/giano/AppData/Roaming/QGIS/QGIS3\profiles\SGI/python/plugins\processing_r\processing\algorithm.py", line 396, in processAlgorithm output = RUtils.execute_r_algorithm(self, parameters, context, feedback) File "C:\Users/giano/AppData/Roaming/QGIS/QGIS3\profiles\SGI/python/plugins\processing_r\processing\utils.py", line 281, in execute_r_algorithm for line in iter(proc.stdout.readline, ''): File "C:\OSGeo4W\apps\Python39\lib\codecs.py", line 322, in decode (result, consumed) = self._buffer_decode(data, self.errors, final) UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe8 in position 21: invalid continuation byte Execution failed after 37.93 seconds
The code I am using is as follows, and I have two input rasters, one with Integer values and the other is float.
In fact, the objective is to perform zonal statistics between rasters by calculating the median of the values of raster A for each class of raster B (which the "Raster Layer Zonal statistics" tool does not do) and then reclassify the values of raster A based on the calculated value.
Is this a an error on the code or a bug?
The text was updated successfully, but these errors were encountered: