Opened 7 years ago

Closed 7 years 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 7 years ago.
update nodata band loop and add in scale and offset options
gdal_edit_dox_ScaleOffset.patch (1.5 KB ) - added by thare 7 years ago.
added in description of scale and offset. Not sure if very clearly worded though.

Download all attachments as: .zip

Change History (3)

by thare, 7 years ago

update nodata band loop and add in scale and offset options

by thare, 7 years ago

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

comment:1 by Even Rouault, 7 years ago

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.