feat(sedona-raster-functions): add RS_ConvexHull and item-level CRS to RS_Envelope#597
Merged
Kontinuation merged 3 commits intoapache:mainfrom Feb 13, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR enhances raster geometry functions by propagating CRS metadata and adds a new convex hull function. The changes ensure that geometry outputs preserve the coordinate reference system from input rasters rather than returning plain WKB geometries.
Changes:
- Modified RS_Envelope to propagate item-level CRS from rasters to output geometries
- Added RS_ConvexHull function that returns the actual raster footprint (preserving skew/rotation) instead of axis-aligned bounding box
- Both functions now return geometries with attached CRS metadata using the item_crs pattern
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| rust/sedona-raster-functions/src/rs_envelope.rs | Updated to propagate CRS metadata from raster to output WKB geometry |
| rust/sedona-raster-functions/src/rs_convexhull.rs | New function that computes convex hull polygon from raster corner coordinates with CRS propagation |
| rust/sedona-raster-functions/src/register.rs | Registered the new rs_convexhull function |
| rust/sedona-raster-functions/src/lib.rs | Added module declaration for rs_convexhull |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
9e2793d to
96e77f3
Compare
…o RS_Envelope Add RS_ConvexHull function that returns the convex hull polygon of a raster from its four corner coordinates. Update RS_Envelope to produce geometry output with item-level CRS propagated from the raster's CRS.
96e77f3 to
aeb70f0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Wkb(Planar, None)