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

Support cubes with volume #2

Open
pjungwir opened this issue Mar 23, 2017 · 1 comment
Open

Support cubes with volume #2

pjungwir opened this issue Mar 23, 2017 · 1 comment

Comments

@pjungwir
Copy link

It looks like right now this gem only supports zero-volume values. Are you interested in a PR that accepts non-point values? With postgres you can give a min/max for each dimension with cube(ARRAY[the, min, values], ARRAY[the, max, values]). What do you think would be a good way to represent that in Ruby?

I'm not sure myself if that would be useful for model attributes, but it seems useful as a condition in a query, e.g. WHERE features && cube(ARRAY[1,1,1], ARRAY[3,7,10]).

@quadule
Copy link
Owner

quadule commented Sep 8, 2017

Sorry, I forgot to watch my own repo and missed this earlier. I haven't had time to work on this in a while but I'm definitely open to a PR for this functionality!

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

No branches or pull requests

2 participants