-
Notifications
You must be signed in to change notification settings - Fork 12
Description
Describe the bug
"Reproject raster" fails if the input raster is already reprojected to target CRS.
"Snap raster" fails if input raster is already aligned with base raster.
In these cases the process isn't necessary but a message for the user would be helpful.
How to reproduce the bug
Run "Reproject raster" with input CRS = target CRS /
Run "Snap raster" with an input raster, which is aligned with the base raster (e.g. input raster = base raster)
Expected behavior
Process fails with the following log:
Progress: 10%
Progress: 25%
+--------------------- Traceback (most recent call last) ---------------------+
| C:\Users\baer\Praktikum_Beak\python_environments\EIS_env_py3913\lib\site-pa |
| ckages\eis_toolkit\cli.py:1552 in snap_raster_cli |
| |
| 1549 |
| 1550 with rasterio.open(input_raster) as src, rasterio.open(snap_rast |
Progress: 25%
| > 1552 out_image, out_meta = snap_with_raster(src, snap_src) |
Progress: 75%
| 1554 |
| 1555 with rasterio.open(output_raster, "w", **out_meta) as dst: |
| |
| +-------------------------------- locals ---------------------------------+ |
EIS Toolkit algorithm execution failed with error: None
Execution completed in 1.76 seconds
Results:
{'output_raster': 'C:\Users\baer\AppData\Local\Temp\processing_jylMBp\9b4c20c4f5bd4699806a15e21b3aa786\output_raster.tif'}
Loading resulting layers
The following layers were not correctly generated.
• C:/Users/baer/AppData/Local/Temp/processing_jylMBp/9b4c20c4f5bd4699806a15e21b3aa786/output_raster.tif
You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.
Environment details
- OS: Windows
- Python version: 3.9.13
- QGIS version: 3.34.12
- EIS Toolkit version: 1.1.3
- EIS QGIS Plugin version: 1.0.3
- GDAL version: 3.8.4