Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SEDONA-506] Lenient mode for RS_ZonalStats and RS_ZonalStatsAll #1257

Merged
merged 3 commits into from
Feb 28, 2024

Conversation

Kontinuation
Copy link
Member

@Kontinuation Kontinuation commented Feb 27, 2024

This PR depends on #1256

Did you read the Contributor Guide?

Is this PR related to a JIRA ticket?

What changes were proposed in this PR?

Add an optional lenient parameter to RS_ZonalStats and RS_ZonalStatsAll. The default value is true. When lenient is set to true, zonal stats functions won't raise exceptions when the ROI does not intersect with the raster, and return null in such cases.

How was this patch tested?

Add tests for lenient mode.

Did this PR include necessary documentation updates?

  • Yes, I have updated the documentation update.

@jiayuasu
Copy link
Member

@Kontinuation can we set lenient mode to true by default?

@Kontinuation
Copy link
Member Author

@Kontinuation can we set lenient mode to true by default?

Updated the default value of lenient to true.

@jiayuasu jiayuasu merged commit 57854e5 into apache:master Feb 28, 2024
49 checks passed
@jiayuasu jiayuasu added this to the sedona-1.6.0 milestone Feb 28, 2024
jiayuasu pushed a commit that referenced this pull request Apr 28, 2024
* Fix handling of geometries with SRID=0 in some raster functions

* Add a lenient mode for RS_ZonalStats and RS_ZonalStatsAll

* Change the default value of lenient to true for RS_ZonalStats and RS_ZonalStatsAll
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants