[GIS] Cropping raster layer using QGIS

clipcontourqgisraster-calculator

How do I crop a raster layer in QGIS?

I want to make contours from a section of a layer, and including the whole layer will create far more data than I need and slow down the rendering.

I have found that I can do it by using the Raster calculator and specifying a new layer extent, but how do I know what values to enter for the rows and columns?

I also tried cropping the geotiff in Photoshop, but it seemed to lose the coordinate data.

Is there any way to create contours from part of a raster layer without having to crop it first?

Best Answer

The Raster|Extraction|Clipper tool will help you to do this.

You can open the tool and then click and drag in the raster image to select the area you want to export as a new raster (Clipping mode: Extent), and then refine the exact coordinates in the Extent fields (if necessary).

Probably no way to do contours on only a selection of a raster; clip it this way first!