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.51k stars 2.99k forks source link

'Close without Saving' unintentionally deletes the VRT header info #50689

Open ryodohemmi opened 1 year ago

ryodohemmi commented 1 year ago

What is the bug or the crash?

Everytime 'Close without Saving' the QGIS window, the header info (e.g., nodata) of the loaded VRT file is automatically overwritten. Is there any solution to this issue?

Steps to reproduce the issue

  1. Open QGIS and load VRT with header info (e.g., nodata and/or overviews), which is created by running gdalbuildvrt -vrtnodata -3.4028234663852886e+38 and/or gdaladdo --config VRT_VIRTUAL_OVERVIEWS YES
  2. Push the close button and select 'Close without Saving' QGIS, which automatically deletes the VRT's header info, such as the VRT's own nodata and/or overviewlist info.

Versions

QGIS version 3.16.3-Hannover QGIS code revision 94ac9f21b8 Compiled against Qt 5.9.5 Running against Qt 5.9.5 Compiled against GDAL/OGR 2.2.3 Running against GDAL/OGR 2.2.3 Compiled against GEOS 3.6.2-CAPI-1.10.2 Running against GEOS 3.6.2-CAPI-1.10.2 4d2925d6 Compiled against SQLite 3.22.0 Running against SQLite 3.22.0 PostgreSQL Client Version 10.15 (Ubuntu 10.15-0ubuntu0.18.04.1) SpatiaLite Version 4.3.0a QWT Version 6.1.3 QScintilla2 Version 2.10.2 PROJ.4 Version 493 OS Version Ubuntu 18.04.6 LTS Active python plugins processing_saga_nextgen; qgiscloud; profiletool; circle-craters; DEMto3D; MetaSearch; processing; db_manager

Supported QGIS version

New profile

Additional context

No response

nicogodet commented 1 year ago

3.16 is EOL. Please retry with 3.22.12 or 3.28.0.

ryodohemmi commented 1 year ago

The same issue still remains even after updating the QGIS version.

QGIS version 3.22.12-Białowieża QGIS code revision b8534cb115 Qt version 5.15.3 Python version 3.10.6 GDAL/OGR version 3.4.1 PROJ version 8.2.1 EPSG Registry database version v10.041 (2021-12-03) GEOS version 3.10.2-CAPI-1.16.0 SQLite version 3.37.2 PDAL version 2.3.0 PostgreSQL client version 14.5 (Ubuntu 14.5-0ubuntu0.22.04.1) SpatiaLite version 5.0.1 QWT version 6.1.4 QScintilla2 version 2.11.6 OS version Ubuntu 22.04.1 LTS

Active Python plugins processing_saga_nextgen 0.0.7 profiletool 4.2.2 circle-craters 0.2 MetaSearch 0.3.5 processing 2.12.99 grassprovider 2.12.99 db_manager 0.1.20 sagaprovider 2.12.99

ryodohemmi commented 1 year ago

The same issue is confirmed in QGIS 3.28.0 as well.

QGIS version 3.28.0-Firenze QGIS code revision ed3ad0430f Qt version 5.15.3 Python version 3.10.6 GDAL/OGR version 3.4.1 PROJ version 8.2.1 EPSG Registry database version v10.041 (2021-12-03) GEOS version 3.10.2-CAPI-1.16.0 SQLite version 3.37.2 PDAL version 2.3.0 PostgreSQL client version unknown SpatiaLite version 5.0.1 QWT version 6.1.4 QScintilla2 version 2.11.6 OS version Ubuntu 22.04.1 LTS

Active Python plugins processing_saga_nextgen 0.0.7 profiletool 4.2.2 circle-craters 0.2 MetaSearch 0.3.6 processing 2.12.99 grassprovider 2.12.99 db_manager 0.1.20 sagaprovider 2.12.99