From 9427b02d5cc959ce4d872d9018632e2cf02428a2 Mon Sep 17 00:00:00 2001 From: Kelly W Date: Tue, 8 Oct 2024 10:30:08 -0700 Subject: [PATCH] Mirror properties/metadata when automatically creating hillshade #470 --- src/view/frm_basemap.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/view/frm_basemap.py b/src/view/frm_basemap.py index 132492aa..a4c4f024 100644 --- a/src/view/frm_basemap.py +++ b/src/view/frm_basemap.py @@ -216,6 +216,7 @@ def on_raster_copy_complete(self, result: bool): self.project.rasters[self.raster.id] = self.raster if self.chkHillshade.isChecked() is True: hillshade_metadata = {'system': {'parent_raster': self.raster.name, 'parent_raster_id': self.raster.id}} + hillshade_metadata.update(metadata) self.hillshade = insert_raster(self.project.project_file, self.hillshade_raster_name, self.hillshade_project_path, 6, self.txtDescription.toPlainText(), self.is_context, metadata=hillshade_metadata) self.project.rasters[self.hillshade.id] = self.hillshade if 'system' not in metadata: