8000 Add MOC vs. other geometries casts by msdemlei · Pull Request #2 · ivoa/pgsphere · GitHub
[go: up one dir, main page]

Skip to content

Add MOC vs. other geometries casts #2

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

Merged
merged 6 commits into from
May 25, 2023
Merged

Conversation

msdemlei
Copy link

This is a copy of postgrespro#6

This PR will enable search conditions such as scircle <@ moc. It is implemented as syntactic sugar, turning this, in effect, into smoc(max_order(moc), scircle) <@ moc.

While this has several drawbacks against a strict implementation of contains and overlap between spherical geometries and mocs – most notably, it will be a lot slower when comparing a constant geometry against moc-valued columns, because the conversion will be re-done in every row –, implementing these exact operations is at least hard.

For casual users, I argue, this will provide non-surprising behaviour.

This PR also bumps the version to 1.2.1. Piggyback on it rides a brief hacking guide I came up with while writing this.

in contains and intersects constraints.

I'm also adding a little file on how to hack pg_sphere; yes, that's
mainly repeating stuff from the pg docs, but I guess it'll help
a few folks; it would have helped me.
I hadn't done this before because the warnings spoiled the regression
expectation.  I'm now shutting those up for while I'm doing the dropping.
@gmantele gmantele merged commit 432b098 into ivoa:master May 25, 2023
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.

2 participants
0