Skip to content

Comments

GDALWarp: Harden NoData value parsing#12198

Merged
rouault merged 8 commits intoOSGeo:masterfrom
dbaston:warp-harden-nodata-parsing
Apr 27, 2025
Merged

GDALWarp: Harden NoData value parsing#12198
rouault merged 8 commits intoOSGeo:masterfrom
dbaston:warp-harden-nodata-parsing

Conversation

@dbaston
Copy link
Member

@dbaston dbaston commented Apr 22, 2025

  • Issue error if -srcnodata and -dstnodata cannot be parsed
  • Issue error if numeric input to INIT_DEST cannot be parsed
  • Temporarily allow INIT_DEST=NO_DATA without a NoData value, to accommodate rasterio usage

@coveralls
Copy link
Collaborator

Coverage Status

coverage: 70.725% (+0.02%) from 70.707%
when pulling 464bbad on dbaston:warp-harden-nodata-parsing
into bfb3825 on OSGeo:master.

@rouault rouault force-pushed the warp-harden-nodata-parsing branch from 464bbad to 676a536 Compare April 27, 2025 15:16
@rouault rouault merged commit 397f125 into OSGeo:master Apr 27, 2025
34 of 35 checks passed
"INIT_DEST was set to NO_DATA, but a NoData value was "
"not defined. This warning will become a failure in a "
"future GDAL release.");
return CE_Failure;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this left-in return not still a failure instead of just a warning? At the least, it means it won't go through all the bands in the for loop it's in, nor those memset below.

wietzesuijker added a commit to wietzesuijker/gdal that referenced this pull request Feb 10, 2026
…ilure

Resolves OSGeo#12210

Per OSGeo#12198, we temporarily issued a warning when INIT_DEST=NO_DATA was set
without a destination nodata value, to accommodate rasterio usage. Rasterio
has since fixed this (now sets INIT_DEST=0 when no nodata is defined).

Change the warning to a failure and document in migration guide.
wietzesuijker added a commit to wietzesuijker/gdal that referenced this pull request Feb 17, 2026
…ilure

Resolves OSGeo#12210

Per OSGeo#12198, we temporarily issued a warning when INIT_DEST=NO_DATA was set
without a destination nodata value, to accommodate rasterio usage. Rasterio
has since fixed this (now sets INIT_DEST=0 when no nodata is defined).

Change the warning to a failure and document in migration guide.
wietzesuijker added a commit to wietzesuijker/gdal that referenced this pull request Feb 22, 2026
…ilure

Resolves OSGeo#12210

Per OSGeo#12198, we temporarily issued a warning when INIT_DEST=NO_DATA was set
without a destination nodata value, to accommodate rasterio usage. Rasterio
has since fixed this (now sets INIT_DEST=0 when no nodata is defined).

Change the warning to a failure and document in migration guide.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants