Skip to content

Comments

Warper: Guard against some invalid values of INIT_DEST#11978

Merged
rouault merged 2 commits intoOSGeo:masterfrom
dbaston:warp-init-dest-harden
Mar 18, 2025
Merged

Warper: Guard against some invalid values of INIT_DEST#11978
rouault merged 2 commits intoOSGeo:masterfrom
dbaston:warp-init-dest-harden

Conversation

@dbaston
Copy link
Member

@dbaston dbaston commented Mar 18, 2025

What does this PR do?

First commit raises an error if warp option INIT_DEST is set to something other than a number or "NO_DATA". (The number can still be invalid.) Also raises an error with INIT_DEST=NO_DATA if there is no NoData value.

This caused a test failure in an existing test. After fixing that test, I simplified it in the second commit.

What are related issues/pull requests?

Tasklist

  • Review
  • Adjust for comments
  • All CI builds and checks have passed

@rouault rouault added this to the 3.11.0 milestone Mar 18, 2025
@rouault rouault merged commit 757df93 into OSGeo:master Mar 18, 2025
37 checks passed
@coveralls
Copy link
Collaborator

Coverage Status

coverage: 70.458% (+0.003%) from 70.455%
when pulling b58b45a on dbaston:warp-init-dest-harden
into a599c26 on OSGeo:master.

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.

3 participants