I'm reprojecting a tif from Lambert Azimuthal Equal Area to EPSG:3857 using gdalwarp. How can I remove the background that is added by the reprojection, outside of the extents of my data ? In the image below, the data of interest is within the white rectangle.

enter image description here

1 Answer 1


Since you haven't included your code it's a bit ambiguous. You can set the extents of your destination_raster to the original by using -te amongst your gdalwarp variables. Please refer to this question.

The other thing that I'm suspected of is to use gdalwarp nodata -srcnodata and dstnodata as it helps the visualizer to make the background invisible.

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.