Re: [gdal-dev] gdal_merge

2022-12-05 Thread Andrew C Aitchison
On Mon, 5 Dec 2022, Clive Swan wrote: The raster file details are: Extent: -180.,-90. : 180.,90. Width: 7200 Height: 3600 Pixel Size = (0.0008000,-0.0008000) Data type: Float32 - Thirty two bit floating point Compre

Re: [gdal-dev] gdal_merge

2022-12-05 Thread Clive Swan
The raster file details are: Extent: -180.,-90. : 180.,90. Width: 7200 Height: 3600 Pixel Size = (0.0008000,-0.0008000) Data type: Float32 - Thirty two bit floating point Compression: LZW - Still getting an error f

Re: [gdal-dev] gdal_merge

2022-12-05 Thread David Strip
On 12/5/2022 6:31 AM, Clive Swan wrote: Greetings,  I tried -ps 3600 7200   -ps 3600,7200 -ps x=3600  y=7200   Just get errors, I don't see any option to select LZW or any compression?

Re: [gdal-dev] gdal_merge

2022-12-05 Thread Rahkonen Jukka
Hi, I asked a few questions and hoped we could solve your problem with one mail if you answered them all but probably we need more. Here is an example about the info I would like to see. You can obtain it with gdalinfo gdalinfo test.tif ... Size is 12000, 12000 ... Pixel Size = (0.50

Re: [gdal-dev] gdal_merge

2022-12-05 Thread Clive Swan
Greetings, I tried -ps 3600 7200 -ps 3600,7200 -ps x=3600 y=7200 Just get errors, I don't see any option to select LZW or any compression?? Extent -180.,-90. : > 180.,90. > Width 7200 > Height 3600 > Data type Float32 - Thirty tw

Re: [gdal-dev] gdal_merge

2022-12-05 Thread Even Rouault
You may need to specify the pixel size with the -ps argument to be the one with the less resolution. Or try using gdalwarp instead (you may also need to use the -tr argument to specify the resolution). gdal_merge cannot deal with rasters larger than memory. Le 05/12/2022 à 12:46, Clive Swan

Re: [gdal-dev] gdal_merge

2022-12-05 Thread Rahkonen Jukka
Hi, Let's try to get all missing information with one mail. * You have two images: 3_data_ready_for_spectra/coastal-undefended-rcp26-2020.tif and 5_UK_prod_rasters/coastal-undefended-rcp26-2020.tif. Is that right? And the first one covers the world but the second one only UK, right? *

Re: [gdal-dev] gdal_merge

2022-12-05 Thread Clive Swan
Hi, The raster one is the world, the second is the UK. The UK fits within the first raster... We want to update UK data in raster one. Regards, Clive Get Outlook for Android From: Rahkonen Jukka Sent: Monday, December 5, 2022 11:34:53 A

Re: [gdal-dev] gdal_merge

2022-12-05 Thread Rahkonen Jukka
Hi, Maybe your rasters are far apart. Gdal_merge creates a raster with so large extent that all the source images fit within it. Even empty pixels take space. -Jukka Rahkonen- Lähettäjä: gdal-dev Puolesta Clive Swan Lähetetty: maanantai 5. joulukuuta 2022 12.24 Vastaanottaja: gdal-dev@lists.o

[gdal-dev] gdal_merge

2022-12-05 Thread Clive Swan
Hi Even, Thanks the –configuration sorted out that issue. CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE is a configuration option / environment variable, so you have to pass it with --config CPL_VSIL_USE_TEMP_FILE_FOR_RANDOM_WRITE YES Now I am getting a memory issue?? << The input files are 6.9