-
Notifications
You must be signed in to change notification settings - Fork 27
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
Pagination with item_collection function #165
Comments
@agrosu1978 which version of pgstac are you using? |
Hello Vincent. pypgstac 0.8.6 |
@agrosu1978 do you have the without this, we don't get a
that is weird 😬 we only test pagination with limit = 1 😬 stac-fastapi-pgstac/tests/resources/test_item.py Lines 934 to 973 in ee19252
|
Thank you @vincentsarago for your response.
|
I'm having the same issue with my stac-fastapi-pgstac deployment. I don't get a |
Hello
I may be doing something wrong, but I cannot make the pagination work. I do have a collection with 14 items, and when I try to use item_collection with the default limit of 10, I don't receive a rel = next link in the links list. When I manually call the pgstac with the limit set to 1, the
"rel": "next"
link is there. What I want to say is that for the following code:(where self.client is a CoreCrudClient object) I get the following answer:
The response has one item (feature) with the correct information (I replaced this info with "rest_of_the_fields": "OK")
But as you can see, in the links list, there is no "rel": "next" link so I can use with the token for the next call.
A manual call to pgstac returns me this:
where <next_feature_id> is indeed the good one.
I searched all over for an example with this pagination, but I wasn't able to find any. That's why I reached out to post the issue here.
(I used the limit = 1 just to see how to make the pagination work, in the real code it is set to 50)
Thank you for reading this
The text was updated successfully, but these errors were encountered: