[gdal-dev] gdal_merge

Andrew C Aitchison andrew at aitchison.me.uk
Mon Dec 5 06:20:36 PST 2022


On Mon, 5 Dec 2022, Clive Swan wrote:

> The raster file details are:
> Extent: -180.0000000000000000,-90.0000000000000000 :
> 180.0000000000000000,90.0000000000000000
> Width:  7200
> Height: 3600
> Pixel Size = (0.000800000000000,-0.000800000000000)
> Data type: Float32 - Thirty two bit floating point
> Compression: LZW
>
>   - Still getting an error for -ps 3600 7200

Maybe I misunderstand, but don't you want -ps 0.0008 0.0008 ?

>   - I did not see gdalwarp option to merge two images

        <dstfile>
               The destination file name.
   Mosaicing into an existing output file is supported if the
   output file already exists.  The spatial extent of the existing file
   will not be modified to accommodate new data, so you may have to
   remove it in that case, or use the -overwrite option.

So I would copy the world file then do something based on:
      gdalwarp uk.tif world_copy.tif


-- 
Andrew C. Aitchison                      Kendal, UK
                    andrew at aitchison.me.uk


More information about the gdal-dev mailing list