Geographic Information Systems Asked by mrgloom on July 27, 2020
I export bunch of DEM files (10000×5000) from Photoscan and I need to combine them with gdal_merge.py
but the problem is that it consumes all the memory availible and can’t finish processing.
What workaround can be applied to limit RAM usage?
gdal_merge allocates memory for whole raster at once so it runs quickly for datasets that fit into memory. If it is not you case, use gdalwarp tool which does tiling so you can control how much memory does it use:
gdalwarp --config GDAL_CACHEMAX 512 -wm 4096 merged.tif
where GDAL_CACHEMAX is memory for IO cache and -wm is memory limit which controls the tile size. Both are in MB.
Answered by o_7O on July 27, 2020
Get help from others!
Recent Questions
Recent Answers
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP