gdal_merge.py stacking does not work for multi band inputs.
|Reported by:||warmerdam||Owned by:||warmerdam|
I just realized (again) that gdal_merge.py -separate does not stack multi-band images. Is there a specific reason for that? If not, it would be create to have that feature inserted in the script.
For the task at hand, I hacked the code a bit and now the script seems to do the job. Pleases see the attachment for the changes I made.
I have no whatsoever background in python. Therefore, maybe better to check that I didn't do anything stupid and rewrite the changes parts in a more elegant way.
Thanks for all the great work you've done with the GDAL/OGR!