Skip to content

Add ST_Relate implementation using GEOS#691

Open
Mehak3010 wants to merge 6 commits intoapache:mainfrom
Mehak3010:feat/st-relate-text
Open

Add ST_Relate implementation using GEOS#691
Mehak3010 wants to merge 6 commits intoapache:mainfrom
Mehak3010:feat/st-relate-text

Conversation

@Mehak3010
Copy link
Contributor

This PR implements the ST_Relate function using the GEOS relate operation 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 in sedona-geos, creating the corresponding scalar UDF wrapper in sedona-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.

Copy link
Contributor

@petern48 petern48 left a comment

Choose a reason for hiding this comment

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

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.

Copy link
Contributor

Choose a reason for hiding this comment

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

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()))
}
}
Copy link
Contributor

Choose a reason for hiding this comment

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

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.

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