#5138 closed enhancement (fixed)
[PATCH] GDALAutoCreateWarpedVRT() doesn't respect band counts/mapping
Reported by: | Kyle Shannon | Owned by: | warmerdam |
---|---|---|---|
Priority: | normal | Milestone: | 1.10.1 |
Component: | Algorithms | Version: | svn-trunk |
Severity: | minor | Keywords: | gdalwarper |
Cc: | antonio |
Description
This may be just a convenience, as the docs say:
@param psOptionsIn Additional warp options, normally NULL.
but most are preserved and passed through. The exceptions are the resampling algorithm, which is passed as a separate argument as well as the source dataset, which is passed too. The number of bands and band maps are always set to all bands, regardless of the warp options. The patch explicitly initializes nBandCount to 0 (probably not needed, but doesn't hurt and recognizes subsets of bands. If nBandCount is 0, then set all bands. Otherwise respect original values.
Attachments (1)
Change History (6)
by , 11 years ago
Attachment: | warped_vrt_band_map.diff added |
---|
comment:1 by , 11 years ago
Cc: | added |
---|
comment:2 by , 11 years ago
Summary: | GDALAutoCreateWarpedVRT() doesn't respect band counts/mapping → [PATCH] GDALAutoCreateWarpedVRT() doesn't respect band counts/mapping |
---|
comment:3 by , 11 years ago
comment:5 by , 10 years ago
Note:
See TracTickets
for help on using tickets.
The patch looks good to me. You can commit it