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
After updating QGIS LTR from 3.34.9 to 3.34.10grass7:v.rast.stats does not calculate univariate statistics from a raster map based on vector polygons. Instead of uploading statistics to new attribute columns, grass7:v.rast.stats returns these new attributes with only NULL s as sole value. Further updating to QGIS LTR 3.34.11 hasn’t helped to overcome this issue. While running grass7:v.rast.stats with a parallel installed QGIS version 3.34.9 works fine.
Go within folder QGIS-Sample-Data-master to ~\qgis_sample_data\shapefiles\lakes.shp and ~\qgis_sample_data\raster\SR_50M_alaska_nad.tif. Drag and drop these two files / layers into the new QGIS project you just started
Open the Processing Toolbox and search for v.rast.stats
Open v.rast.stats set lakes as vector input and SR_50M_alaska_nad as raster input, specify column prefix, optionally select 1 or more methods and change percentile. Leave Advanced Parameters as they are.
When running grass7:v.rast.stats on QGIS 3.34.10 or QGIS 3.34.11 with different inputs I’ve seen varying error messages returned by the log. But the one thing that was consistent, was that returned statistics attributes only included NULL s.
The text was updated successfully, but these errors were encountered:
a-benini-2
added
the
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
label
Oct 3, 2024
@a-benini-2, thanks for reporting. The issue is not due to QGIS itself. As you can see in the log, the error is due to an issue which prevents the v.rast.stats GRASS-GIS module to correctly process the input raster data:
WARNING: LZ4 decompression error
ERROR: Error uncompressing null data for row 17 of <rast_66feda4aa04625>
The issue also occurs even directly using GRASS-GIS 8.4.0 installed by the OSGeo4W installer for QGIS 3.34.11 on Windows 10.
The issue didn't occur directly using GRASS-GIS 8.3.2 installed by the OSGeo4W installer for QGIS 3.34.9.
The issue is very likely due to a bug in GRASS-GIS (and should be reported to https://github.com/OSGeo/grass/issues) or in the way GRASS-GIS or some libraries it depends on are built by OSGeo4W (probably @jef-n knows how to check).
What is the bug or the crash?
After updating QGIS LTR from 3.34.9 to 3.34.10
grass7:v.rast.stats
does not calculate univariate statistics from a raster map based on vector polygons. Instead of uploading statistics to new attribute columns,grass7:v.rast.stats
returns these new attributes with only NULL s as sole value. Further updating to QGIS LTR 3.34.11 hasn’t helped to overcome this issue. While runninggrass7:v.rast.stats
with a parallel installed QGIS version 3.34.9 works fine.My operating system is Windows 10.
Steps to reproduce the issue
grass7:v.rast.stats
has finished. The log should reveal some error:log_file_v.rast.stats_QGIS_3.34.11.txt
grass7:v.rast.stats
' s output Rast stats . The new statistic-attributes only consist of NULL s:Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Aktive Python-Erweiterungen
db_manager
0.1.20
grassprovider
2.12.99
MetaSearch
0.3.6
processing
2.12.99
Supported QGIS version
New profile
Additional context
When running
grass7:v.rast.stats
on QGIS 3.34.10 or QGIS 3.34.11 with different inputs I’ve seen varying error messages returned by the log. But the one thing that was consistent, was that returned statistics attributes only included NULL s.The text was updated successfully, but these errors were encountered: