I have several thousands of small rasters, kb size, tens or hundreds of pixels most of them. Batch command of gdal_merge.py
can't take all the files at once, so I am doing partial merges of chunks of 500 images, and that's relatively fast.
But when I try to merge the partial merges it takes way too much. In one even gdal_merge.py
gave up and returned Killed
.
Has anyone experienced something similar, and found an optimization?
Alternatives to gdal_merge.py
are welcome
gdalbuildvrt
andgdal_translate -of GTiff
on that VRT. I had faster results comparted togdal_merge
with huge files.vrt
file derived fromgdal_merge.py -of VRT
is fine too as input.