Ticket #1949 (closed defect: fixed)
gdalwarp ignoring nodata values on source dataset
| Reported by: | warmerdam | Owned by: | warmerdam |
|---|---|---|---|
| Priority: | normal | Milestone: | 1.5.0 |
| Component: | Utilities | Version: | unspecified |
| Severity: | normal | Keywords: | warper nodata |
| Cc: |
Description
It appears gdalwarp and the underlying warper ignore nodata values set on the source dataset, and require the user to specify the value using -srcnodata. A similar issue may exist for -dstnodata.
Do:
gdalwarp -tr 500 500 in.tif -rb out1.tif gdalwarp -tr 500 500 in.tif -rb out2.tif -srcnodata -32768
Note that out1.tif has interpolated values around the fringe of the valid data even though -32768 is marked as the nodata value.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

