2

1 raster layer - global map ; 2 raster layer - berlin

I cropped out 1 layer using extent of 2 layer and then overlapped these two layers however I see that 1 layer still has areas apart from berlin(1 layer). What would be the best way to remove those areas and only get the area exact as that of 2 layer?

Also, I tried using Clipper too but somehow it is not working.

overlapping of two raster layers

5
  • Have you tried using the Clipper tool in Raster > Extraction > Clipper?
    – Joseph
    Commented Jan 7, 2015 at 10:39
  • Sorry, I deleted my previous question. I did try using Clipper tool but it is not working. @Joseph Commented Jan 7, 2015 at 10:56
  • Strange, perhaps try Raster > Projections > Warp and include the second layer as the mask layer?
    – Joseph
    Commented Jan 7, 2015 at 11:00
  • I'm not sure why but it takes way too long and ends up with not responding. Thank you tho! @Joseph Commented Jan 7, 2015 at 11:13
  • Your welcome @CynicalRealism and apologies, hope you get the results you need!
    – Joseph
    Commented Jan 7, 2015 at 11:17

1 Answer 1

1

There is a working Python script solution for this kind of problem. It is available in the Processing toolbox after you downloaded it and placed in the correct folder in your .qgis2 profile directory. It works by extending the boundaries of the input raster using their nodata values.
http://ssrebelious.wordpress.com
Unifying extent and resolution

As resulting output you will get two matching raster files.

1
  • I'm not sure if i know how to do it since it's only been a while that I started using QGIS, will let you know if it works. Thank you! :) @Curlew Commented Jan 7, 2015 at 11:26

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.