I have a Raster, which covers only the southern part of the country, like this:

enter image description here

I wish to have a Raster, which covers the entire country (including the North part)? The northern part should have the nodata values.

How do I do this using GDAL or QGIS?

( I do not have ArcGIS, so I can't use the answer given here: Increasing raster extent by filling extent with no data using ArcGIS Desktop without Spatial Analyst?)

I tried using gdalwarp's -te parameter; It was successful in reducing the extent, but did not extend the extent to the Northern part.


4 Answers 4


For future readers

As user30184 mentioned in the comments, gdalwarp is also working and easier than the accepted answer. Run the following command with your specific arguments to change (increase is also working) your raster extent:

gdalwarp.exe -te xmin ymin xmax ymax old_extent.tif new_extent.tif

Ensure that your outputfile (in this case new_extent.tif) doesn't exist before running the command!


My suggested workflow:

  1. Create a polygon of the extent you want to cover

  2. rasterize the polygon

  3. fill it with a nodata value using gdalcalc

  4. add the existing raster with gdalwarp without the -overwrite option.


A very simple process. Just right-click on the raster for which has to be changed and click Save As. Further, put the extent manually and click OK.

enter image description here

  • This is the best way to do it!
    – user2821
    Oct 14, 2020 at 11:18

GDAL didn't work for me, but I found this super easy workaround in QGIS:

Open Raster Calculater

Input the raster layer you want to expand

In the Result box - select a layer which has the area you want your raster to cover and click 'Current Layer Extent' or define the X,Y,etc values yourself.

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.