Opened 8 months ago

Closed 8 months ago

#6833 closed defect (fixed)

updates to support scale, offset and fix nodata band loop in gdal_edit.py

Reported by: thare Owned by: warmerdam
Priority: normal Milestone: 2.2.0
Component: default Version: svn-trunk
Severity: minor Keywords: gdal_edit scale, offset, nodata
Cc:

Description

While adding scale and offset options to gdal_edit.py, Even also notice a band issue for setting nodata across all bands. This patch address both of these.

Attachments (2)

gdal_edit_py_ScaleOffset.patch (1.9 KB) - added by thare 8 months ago.
update nodata band loop and add in scale and offset options
gdal_edit_dox_ScaleOffset.patch (1.5 KB) - added by thare 8 months ago.
added in description of scale and offset. Not sure if very clearly worded though.

Download all attachments as: .zip

Change History (3)

Changed 8 months ago by thare

update nodata band loop and add in scale and offset options

Changed 8 months ago by thare

added in description of scale and offset. Not sure if very clearly worded though.

comment:1 Changed 8 months ago by Even Rouault

Resolution: fixed
Status: newclosed

In 37709:

gdal_edit.py: add -scale and -offset switches (patch by Trent Hare + fixes and tests by myself, fixes #6833)

Note: See TracTickets for help on using tickets.