You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In version 3.40, upon trying to clip a raster by layer mask using a GeoPackage Polygon layer with an accent in the name (e.g., "Frontera zona de interés", GDAL Warp routine fails giving the following error: ERROR 1: Failed to identify source layer from datasource. Process returned error code 1
Below the complete error log:
GDAL command:
gdalwarp -overwrite -of GTiff -tr 30.0 -30.0 -tap -cutline "/Users/ricardo/Documents/GIS/LaSiembra/Tutorial La Siembra.gpkg" -cl "Frontera zona de interés" -crop_to_cutline "/Users/ricardo/Documents/GIS/LaSiembra/DEM Reproyectado.tif" "/Users/ricardo/Documents/GIS/LaSiembra/DEM Reproyectado-cortado2.tif"
GDAL command output:
ERROR 1: Failed to identify source layer from datasource.
Process returned error code 1
Execution completed in 0.34 seconds
Results:
OUTPUT: /Users/ricardo/Documents/GIS/LaSiembra/DEM Reproyectado-cortado2.tif
Loading resulting layers
The following layers were not correctly generated.
• /Users/ricardo/Documents/GIS/LaSiembra/DEM Reproyectado-cortado2.tif
You can check the 'Log Messages Panel' in QGIS main window to find more information about the execution of the algorithm.
The process works in the following cases:
When using a Shapefile
When using a GeoPackage Polygon with no spaces or diacritics (accents) in the layer name
When using a GeoPackage Polygon with spaces but no diacritics (accents) in the layer name.
Steps to reproduce the issue
The error can be reproduced as follows:
Load a raster layer in a projected CRS. In my case it's an SRTM tile in EPSG:32619.
Create a GeoPackage Layer of Polygon Geometry type. Name the Table something with accents. In my case, I named it "Área de Interés". Set the CRS as that of the project.
Digitize a polygon over the raster image. Save it.
Go to Raster -> Extraction -> Clip Raster by Mask Layer...
@hernanrr, thanks for reporting. I cannot replicate the issue running QGIS on Windows. I guess the issue may be due to the 3 years old version of the GDAL/OGR library used by QGIS installed via the official dmg installer. You can check it verifying if the issue occurs also running the same gdalwarp command in the macOS terminal inside the QGIS installation bin folder.
Some alternative QGIS installation methods for macOS, shipping up-to-date version of the GDAL/OGR library, are:
What is the bug or the crash?
In version 3.40, upon trying to clip a raster by layer mask using a GeoPackage Polygon layer with an accent in the name (e.g., "Frontera zona de interés", GDAL Warp routine fails giving the following error:
ERROR 1: Failed to identify source layer from datasource. Process returned error code 1
Below the complete error log:
The process works in the following cases:
Steps to reproduce the issue
The error can be reproduced as follows:
Keep resolution of input raster
boxClipped (mask)
to a GeoTiff.Here's a screencast of the error in my machine:
Bug.Report.GDAL.Warp.fail.accents.mp4
Versions
Supported QGIS version
New profile
Additional context
This is running in macOS 15.1.1 (24B91) Sequoia
The text was updated successfully, but these errors were encountered: