[gdal-dev] gdal_merge

Rahkonen Jukka jukka.rahkonen at maanmittauslaitos.fi
Mon Dec 5 03:34:53 PST 2022


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 <gdal-dev-bounces at lists.osgeo.org> Puolesta Clive Swan
Lähetetty: maanantai 5. joulukuuta 2022 12.24
Vastaanottaja: gdal-dev at lists.osgeo.org
Aihe: [gdal-dev] gdal_merge

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 GB + 672 MB
The output should be 7.xx GB


6.9 GB + 672MB

numpy.core._exceptions._ArrayMemoryError: Unable to allocate 377. GiB for an array with shape (225000, 450000) and data type float32

Any suggestions appreciated
Kind regards,
Clive


--

 Regards,



Clive Swan

--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20221205/35ea3235/attachment.htm>


More information about the gdal-dev mailing list