qgis / QGIS

QGIS is a free, open source, cross platform (lin/win/mac) geographical information system (GIS)
https://qgis.org
GNU General Public License v2.0
10.49k stars 2.99k forks source link

The raster calculator produces non-compliant outputs #57820

Closed alexCCI closed 3 months ago

alexCCI commented 3 months ago

What is the bug or the crash?

The raster calculator produces non-compliant outputs. Initial raster splits into two. The interface is no longer adaptable. 3 2 1

Steps to reproduce the issue

  1. Choose a multi-band raster
  2. Perform a calculation using multiple bands
  3. It is important to save it as a TIFF (the on-the-fly version works correctly)!!!

Versions

Version de QGIS 3.34.7-Prizren Révision du code 6f7d735c Version de Qt 5.15.13 Version de Python 3.12.4 Version de GDAL/OGR 3.9.0 Version de Proj 9.4.0 Version de la base de données du registre EPSG v11.004 (2024-02-24) Version de GEOS 3.12.2-CAPI-1.18.2 Version de SQLite 3.45.1 Version de PDAL 2.6.3 Version du client PostgreSQL unknown Version de SpatiaLite 5.1.0 Version de QWT 6.2.0 Version de QScintilla2 2.14.1 Version de l'OS Windows 10 Version 2009

Extensions Python actives db-style-manager 0.8 pcraster_tools 0.3.0 pluginbuilder3 3.2.1 plugin_reloader 0.9.4 processing_saga_nextgen 1.0.0 QuickOSM 2.2.3 quick_map_services 0.19.34 raster_tracer 0.3.3 slyr 7.4.1 SRTM-Downloader 3.2.2 StreetView 3.2 Topo 1.3.8 wbt_for_qgis 1.0.9 db_manager 0.1.20 grassprovider 2.12.99 MetaSearch 0.3.6 otbprovider 2.12.99 processing 2.12.99

Supported QGIS version

New profile

Additional context

No response

agiudiceandrea commented 3 months ago

@alexCCI, thanks for reporting. It would be useful if you provided a minimal set of layers and all the parameter used in order to replicate the issue.

alexCCI commented 3 months ago

@alexCCI, thanks for reporting. It would be useful if you provided a minimal set o layers and all the parameter used in order to replicate the issue.

I made a clip to reduce the raster size https://we.tl/t-w42is3nOYw You can try any formula with some bands, for example "clip@1" + "clip@2" + "clip@3" It is important to save it as a TIFF (the on-the-fly version works correctly)

agiudiceandrea commented 3 months ago

@alexCCI, I cannot replicate the issue using QGIS 3.34.7 on Windows 10 and the provided layer clip.zip and expression in the Raster Calculator.

https://github.com/qgis/QGIS/assets/16253859/da5b2e31-b774-4279-bf92-a3c5dda9d44d

Does the issue actually occur using a new QGIS user profile? If it does, please provide more detailed steps to replicate the issue.

alexCCI commented 3 months ago

@alexCCI, I cannot replicate the issue using QGIS 3.34.7 on Windows 10 and the provided layer clip.zip and expression in the Raster Calculator.

Video_2024-06-22_123123.mp4 Does the issue actually occur using a new QGIS user profile? If it does, please provide more detailed steps to replicate the issue.

Thank you for your response! I thought I had taken a test under a new profile, but after another attempt, I received the result without error. My apologies for the inconvenience. Do you have any idea how I could fix the problem with my current profile?

agiudiceandrea commented 3 months ago

Do you have any idea how I could fix the problem with my current profile?

You can try to uninstall or disable the third-party external plugins one by one to check if one of them is the cause of the issue.