Skip to content

Commit

Permalink
try with reproject raster change input and source_crs
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel committed Feb 8, 2024
1 parent a29fb5b commit 4df7bfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions geovita_processing_plugin/utilities/methodslib.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def reproject_layers(output_crs: QgsCoordinateReferenceSystem,
try:
processing.run("native:reprojectlayer", {
'INPUT': vector_layer,
'TARGET_CRS': output_crs,
'TARGET_CRS': output_crs.authid(),
'OUTPUT': str(reprojected_vector_path)
}, is_child_algorithm=True, context=context, feedback=feedback)
except Exception as e:
Expand All @@ -302,7 +302,7 @@ def reproject_layers(output_crs: QgsCoordinateReferenceSystem,
logger.info(f"Attempting to reproject to: {reprojected_raster_path}") # Log the output path
try:
processing.run("gdal:warpreproject", {
'INPUT': raster_layer,
'INPUT': raster_layer.source(),
'SOURCE_CRS': raster_layer.crs(),
'TARGET_CRS': output_crs,
'OUTPUT': str(reprojected_raster_path)
Expand Down

0 comments on commit 4df7bfe

Please sign in to comment.