I try to mask a raster with gdalwarp and I always get the answer: cannot compute bounding box of cutline. what is wrong with my cutline shapefile? or what requirements should it have to work?
Asked
Active
Viewed 321 times
1 Answers
3
Make sure that raster file and shapefile have the same CRS. The raster should be a tif, with georeference stored inside, and the shapefile must be a polygon. Make sure that the extent of the raster and shapefile fit together.
The CRS should be suitable, e.g. it should not include the poles when using a mercator projection, and no part should be on the back of the globe for transverse mercator or UTM.
LCC projection might have similar restrictions.
AndreJ
- 76,698
- 5
- 86
- 162