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

Geospatial queries in pgstac #348

Closed
jonhealy1 opened this issue Feb 17, 2022 · 4 comments
Closed

Geospatial queries in pgstac #348

jonhealy1 opened this issue Feb 17, 2022 · 4 comments

Comments

@jonhealy1
Copy link
Collaborator

jonhealy1 commented Feb 17, 2022

I'm testing different databases with stac-fasapi and I noticed that geospatial queries in pgstac seem to not be working. I have tested bbox and point intersect queries. No matter what location I use to query, I seem to get the same 10 default results back from the api. Also, if I add a collections parameter it will return the same results even if I spell the name wrong. I'm adding a screenshot where you can see that the result should not be returned based on my query:

Screen Shot 2022-02-17 at 4 10 00 AM

@jonhealy1
Copy link
Collaborator Author

Maybe this is fixed in a new pgstac version?

@jonhealy1
Copy link
Collaborator Author

This seems to be working now with pgstac:v0.4.5

Maybe a real issue is how this behaviour passed testing? We may need better tests I think. The tests are sort of designed to be successful I think with usually only loading one item and one collection.

@kylebarron
Copy link
Contributor

I think this might be the same as stac-utils/stac-fastapi-pgstac#29

@jonhealy1
Copy link
Collaborator Author

@kylebarron true thanks

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