Skip to content

Commit

Permalink
edit reproject
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Feb 8, 2024
1 parent b1a5899 commit 9286ee6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions geovita_processing_plugin/utilities/methodslib.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,12 +303,12 @@ def reproject_layers(keep_interm_layer: bool,
reprojected_raster_path = temp_folder / f"reprojected_{raster_layer.name()}.tif"
if logger:
logger.info(f"@reproject_layers@ - Raster to reproject 'INPUT': {raster_layer.source()}")
logger.info(f"@reproject_layers@ - Raster to reproject 'SOURCE_CRS': {raster_layer.crs().authid()}")
logger.info(f"@reproject_layers@ - Raster to reproject 'TARGET_CRS': {output_crs.authid()}")
logger.info(f"@reproject_layers@ - Raster to reproject 'SOURCE_CRS': {raster_layer.crs()}")
logger.info(f"@reproject_layers@ - Raster to reproject 'TARGET_CRS': {output_crs}")
processing.run("gdal:warpreproject", {
'INPUT': raster_layer.source(),
'SOURCE_CRS': raster_layer.crs().authid(),
'TARGET_CRS': output_crs.authid(),
'SOURCE_CRS': raster_layer.crs(),
'TARGET_CRS': output_crs,
'OUTPUT': str(reprojected_raster_path)
}, context=context, feedback=feedback)
if logger:
Expand Down

0 comments on commit 9286ee6

Please sign in to comment.