How can I rotate a raster layer (global land-mass) to make the 180 deg longitude the center of the map (using QGIS)? 'rotate' function in R is simple but not accurate. Raster has 'longlat' projection and WGS84.


Based on How to reproject raster from 0 360 to -180 180 with cutting 180 meridian, a possible solution using GDAL is:

gdalwarp -t_srs WGS84 bluemarble.tif 180.tif  -wo SOURCE_EXTRA=1000 --config CENTER_LONG 180

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.