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

Improve @transform macro to handle arbitrary expressions #506

Open
juliohm opened this issue Jan 24, 2025 · 0 comments
Open

Improve @transform macro to handle arbitrary expressions #506

juliohm opened this issue Jan 24, 2025 · 0 comments

Comments

@juliohm
Copy link
Member

juliohm commented Jan 24, 2025

Currently, the following code doesn't work:

@transform(geotable, :column = coords(:geometry).x < 100km)

The workaround consists of defining the function outside the macro:

fun(point) = coords(point).x < 100km

@transform(geotable, :column = fun(:geometry))

We need to review the macro to handle arbitrary expressions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant