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.56k stars 3k forks source link

Raster layer temporal properties are not loaded from qml file with same name as tif file #42223

Open leendertvanwolfswinkel opened 3 years ago

leendertvanwolfswinkel commented 3 years ago

I have a .qml file to style a (.tif) raster layer that (also) contains temporal properties. If I load it manually (Right Click > Properties > Style > Load Style...), all properties are loaded from the qml, including the temporal properties.

But the temporal properties are not loaded if I give the qml file the same name as the tif file and add the tif file to my project (same behaviour when using drag and drop as through the data source manager). The styling from the qml is applied to the layer, except for the temporal properties.

Thank you for you help. I love the new temporal functionalities of QGIS btw!

Example data Tif file: https://drive.google.com/file/d/1D4IKv8u0yUGAdRGAUBmsW36fPbQyrt9p/view?usp=sharing Qml file: https://drive.google.com/file/d/1L372AvnXSIW67CZ7N2SjnR3gt-UAXSJI/view?usp=sharing

QGIS and OS versions QGIS version: 3.18.0 OS Version: Windows 10

QGIS-versie 3.18.0-Zürich QGIS code revisie acc0eb4125 Gecompileerd tegen Qt 5.11.2 Gebruikt nu Qt 5.11.2 Gecompileerd tegen GDAL/OGR 3.1.4 Gebruikt nu GDAL/OGR 3.3.0dev Gecompileerd tegen GEOS 3.8.1-CAPI-1.13.3 Gebruikt nu GEOS 3.8.1-CAPI-1.13.3 Gecompileerd tegen SQLite 3.29.0 Uitgevoerd met SQLite 3.29.0 PostgreSQL Client Versie 11.5 SpatiaLite-versie 4.3.0 QWT versie 6.1.3 QScintilla2 Versie 2.10.8 Gecompileerd tegen PROJ 8.1.0 Gebruikt nu PROJ Rel. 8.1.0, July 1st, 2021 Versie OS Windows 10 (10.0) Deze versie van QGIS schrijft debug-informatie. Actieve plug-ins van Python db_manager; MetaSearch; processing

Additional context

I am working on a python script that outputs a large number of rasters with associated qml files, each describing the temporal properties for the raster it belongs to. It would be great if the user can just drag and drop all tif files into qgis and work with it as temporal data immediately

bettellam commented 3 years ago

Same problem! I have GeoTiff files from Meteorological Radar that have a temporal value, but the prepared QML file is not completely read with automatic loading (same name as QML and GeoTiff file)