Skip to content

Commit

Permalink
Mirror properties/metadata when automatically creating hillshade #470
Browse files Browse the repository at this point in the history
  • Loading branch information
KellyMWhitehead authored and philipbaileynar committed Oct 8, 2024
1 parent ec12d8f commit 9427b02
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/view/frm_basemap.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 9427b02

Please sign in to comment.