Ticket #3981 (closed enhancement: fixed)
gdal_merge.py : add support for output of nodata value
| Reported by: | etiennesky | Owned by: | hobu |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.9.0 |
| Component: | Utilities | Version: | svn-trunk |
| Severity: | normal | Keywords: | |
| Cc: |
Description
The gdal_merge.py does not set the nodata value in the bands of the output file.
I have added a -a_nodata option (as in the other tools gdalwarp and gdal_translate), which adds the specified nodata value to the output file (regardless of the -a value).
+ if a_nodata is not None: + t_band.SetNoDataValue?(a_nodata)
Tested on GTIFF files only. I'd be glad to test other files types if necessary.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

