Opened 6 years ago

Closed 6 years ago

#4059 closed enhancement (fixed)

gdal_merge.py stacking does not work for multi band inputs.

Reported by: warmerdam Owned by: warmerdam
Priority: normal Milestone:
Component: Utilities Version: unspecified
Severity: normal Keywords: gdal_merge
Cc:

Description

Dear Frank,

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!

Regards,

Anssi

Attachments (1)

gdal_merge_multiband.py (16.0 KB) - added by warmerdam 6 years ago.

Download all attachments as: .zip

Change History (2)

Changed 6 years ago by warmerdam

Attachment: gdal_merge_multiband.py added

comment:1 Changed 6 years ago by warmerdam

Resolution: fixed
Status: newclosed

Changes applied in trunk (r22291).

Note: See TracTickets for help on using tickets.