Skip to content

Commit

Permalink
fix: NoData=Nan does not work as expected
Browse files Browse the repository at this point in the history
vincentvaroquauxads committed Feb 1, 2024
1 parent 0cc9783 commit 02f9a4c
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/about/release-notes.md
Original file line number Diff line number Diff line change
@@ -39,6 +39,7 @@
- reindex dataset crossing antemeridian
- Not empty image are returned as empty
- Consolidation: BuildOverviews fails if GDAL raises a warning
- Consolidation: NoData=Nan does not work as expected


### Others
2 changes: 2 additions & 0 deletions internal/image/image.go
Original file line number Diff line number Diff line change
@@ -277,6 +277,8 @@ func warpDatasetOptions(wktCRS string, transform *affine.Affine, width, height f

if commonDFormat.NoDataDefined() {
options = append(options, "-dstnodata", toS(commonDFormat.NoData))
} else {
options = append(options, "-dstnodata", "None")
}

if transform != nil {

0 comments on commit 02f9a4c

Please sign in to comment.