Opened 11 years ago

Closed 11 years ago

#5213 closed defect (fixed)

gdal_edit.py -a_nodata none

Reported by: peifer Owned by: warmerdam
Priority: normal Milestone:
Component: Docs Version: svn-trunk
Severity: normal Keywords:
Cc:

Description

http://www.gdal.org/gdal_edit.html states about -a_nodata

"Can be set to none to remove a nodata value if one exists for the dataset"

This however doesn't work as documented:

$ gdal_edit.py -a_nodata none my.tif
Traceback (most recent call last):
  File "/path/to/bin/gdal_edit.py", line 204, in <module>
    sys.exit(gdal_edit(sys.argv))
  File "/path/to/bin/gdal_edit.py", line 96, in gdal_edit
    nodata = float(argv[i+1])
ValueError: invalid literal for float(): none

Change History (1)

comment:1 by Even Rouault, 11 years ago

Component: UtilitiesDocs
Resolution: fixed
Status: newclosed

Doc fixed in r26361

Note: See TracTickets for help on using tickets.