0

I created a polygon to use to clip a DTM raster (DEMTiff), but the Clip by Mask tool gives an error:

GDAL command:

gdalwarp -overwrite -of GTiff -cutline temp.shp -cl temp -crop_to_cutline "D:\\Nadar-Working\\Saxon Vista Circle\\SaxonVistaCanyon_1_DTM_final.tif" C:/Users/jeffc/AppData/Local/Temp/processing_VIkBPI/f414aad4007c4625bff642291be5ac6c/OUTPUT.tif

GDAL command output:

ERROR 1: Did not get any cutline features.

Process returned error code 1

2
  • Have you tried providing the full path to temp.shp?
    – Bera
    Apr 12, 2023 at 5:04
  • Does ogrinfo list at least one polygon with ogrinfo temp.shp -al?
    – user30184
    Apr 12, 2023 at 5:32

1 Answer 1

0

Make sure that the coordinate reference system (CRS) is the same for both the vector data and the raster data. Here is a link on warping your raster data to comply with your vector data. You can use gdalinfo yourfilehere or similarly ogrinfo yourfilehere to display and confirm the CRS of these data.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.