Posts Tagged ‘ gdal_translate ’

Watch your projections when using QGIS’s raster clipper

I needed to clip a county-wide Mr. Sid file down to just the area of interest for a project.  QGIS‘s raster clipper tool, a front end for gdal_translate, made that easy.  You can either clip by a selected extent, or by a masking polygon from a vector layer.  I did run into one problem, the project’s CRS was the local State Plane projection and the source raster was in UTM.  Gdal_translate returned the following error:

Computed -srcwin falls outside raster size of 28249x42326

Resetting QGIS’s project CRS to match the raster’s projection fixed the error.