Skip to content

Conversation

@jampukka
Copy link
Collaborator

@jampukka jampukka commented Oct 28, 2025

New way to access "context" throughout ExpressionVisitor.
Provide more knowledge of filterSrid to ExpressionVisitor (ExpressionToHakunaFilter) via FilterContext.
Additionally, nested FunctionCalls are now supported (see ExpressionToHakunaFilterTest)

This is preliminary work for something @nls-jajuko needs and as such I'll open this as a Draft PR for now.

@jampukka jampukka requested a review from nls-jajuko October 28, 2025 20:58
@nls-jajuko nls-jajuko added this to the 1.7.0 milestone Oct 28, 2025
Copy link
Collaborator

Choose a reason for hiding this comment

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

should we add more fields to this or add some sort of custom FilterContext builder

Copy link
Collaborator

@nls-jajuko nls-jajuko Oct 29, 2025

Choose a reason for hiding this comment

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

Should we add more fields to FilterContext or add some sort of custom FilterContext builder
I have a use case for feature type's storageSrid and projection transform factory.

@jampukka
Copy link
Collaborator Author

Made FilterContext an interface, made ExpressionVisitor generic and set ExpressionToHakunaFilter generic type .
Not sure if it's better or worse 🤔

Added more functions to FilterContext to access the storageSrid and projection transformer to use.

@teezip teezip removed this from the 1.7.0 milestone Dec 3, 2025
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.

4 participants