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

Allow intersects search to use GeometryCollection #548

Merged

Conversation

jpolchlo
Copy link
Contributor

@jpolchlo jpolchlo commented Mar 23, 2023

Related Issue(s):
Closes #187

Description:
An apparent oversight omitted GeometryCollection from the list of valid geometry types for intersection queries. This PR remedies this.

PR Checklist:

  • pre-commit hooks pass locally
  • Tests pass (run make test)
  • Documentation has been updated to reflect changes, if applicable, and docs build successfully (run make docs)
  • Changes are added to the CHANGELOG.

@gadomski gadomski self-requested a review March 24, 2023 12:05
@gadomski gadomski added this to the 2.5.0 milestone Mar 24, 2023
Copy link
Member

@gadomski gadomski left a comment

Choose a reason for hiding this comment

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

Should include a unit test for both backends and a CHANGELOG entry.

@jpolchlo jpolchlo force-pushed the fix/intersects-geometrycollection branch from 8231715 to 229bcd3 Compare March 24, 2023 16:54
… made with a GeometryCollection type to the 'intersects' query without raising a 400 error; has not been tested to show that the intersection is correct
@jpolchlo jpolchlo force-pushed the fix/intersects-geometrycollection branch from 229bcd3 to f97bc49 Compare April 17, 2023 21:44
@jpolchlo jpolchlo requested a review from gadomski April 17, 2023 22:15
Copy link
Member

@gadomski gadomski left a comment

Choose a reason for hiding this comment

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

This will need to be updated to have a no-backend test, if possible.

@jonhealy1
Copy link
Collaborator

Hi. @jpolchlo @gadomski Any thoughts on this pr and how we could test this now that the backends were removed? I'm not sure there's anything to really test here but it would be nice to have some.

@jpolchlo Do you have the time to remove the tests from this pr for now?

@gadomski
Copy link
Member

gadomski commented Apr 8, 2024

Any thoughts on this pr and how we could test this now that the backends were removed?

Not really — since it's just adding a type to a Union I guess no-test might be ok 🤷🏼 — each backend's tests could later be updated to prove that it can accept a GeometryCollection (because they might not).

@jpolchlo Do you have the time to remove the tests from this pr for now?

FYSA @jpolchlo isn't working the project that was using this repo anymore, so he may not have bandwidth to fix (in case he doesn't respond).

Copy link
Collaborator

@jonhealy1 jonhealy1 left a comment

Choose a reason for hiding this comment

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

Looks great

@vincentsarago vincentsarago merged commit 53711ec into stac-utils:main Apr 10, 2024
6 checks passed
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.

POST search with intersects containing GeometryCollection fails with 400
4 participants