Add ST_Relate implementation using GEOS#691
Open
Mehak3010 wants to merge 6 commits intoapache:mainfrom
Open
Conversation
petern48
reviewed
Mar 10, 2026
Contributor
petern48
left a comment
There was a problem hiding this comment.
I know you're still working on this, but I figured I'd leave a bit of hints to help guide you along the way.
Contributor
There was a problem hiding this comment.
It looks like you've deleted many files in the submodules, presumably accidentally. This is causing CI failures. Could you revert these deletions?
Don't be afraid to ask if you need help with figuring out how to undo this.
|
|
||
| executor.finish(Arc::new(builder.finish())) | ||
| } | ||
| } |
Contributor
There was a problem hiding this comment.
In addition to the actual rust implementation. We're going to need to add Rust tests in this file as well as python integration tests. You can take a look at this example PR (#288) to guide you if you'd like.
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.
This PR implements the
ST_Relatefunction using the GEOSrelateoperation to compute the DE-9IM (Dimensionally Extended 9-Intersection Model) relationship between two geometries. The implementation integrates with the existing GEOS execution framework in Sedona and returns the resulting DE-9IM intersection matrix as a UTF-8 text string. The changes include adding the GEOS kernel implementation insedona-geos,creating the corresponding scalar UDF wrapper insedona-functions,and registering the function so it can be used through the SQL interface. This enables users to evaluate spatial relationships between geometries and obtain the DE-9IM matrix representation directly. This work addresses issue #539 and is part of the broader implementation tracked in #174.