Skip to content

Conversation

lossyrob
Copy link
Member

@lossyrob lossyrob commented Jul 9, 2021

Related Issue(s): # stac-utils/pystac#546

Description:
This PR passes in the client Catalog as the root of Items in an ItemCollection for ItemSearchs produced by that client Catalog.

This allows PySTAC logic that depends on reading the root of an object to perform significantly faster.

This makes the assumption that the root of the Items produced by a STAC API search should always be pointed back to the STAC API, which I think is a fair assumption.

This PR relies on changes in PySTAC contained in stac-utils/pystac#549. Making this PR as a draft until upstream changes are available.

PR Checklist:

  • Code is formatted
  • Tests pass
  • Changes are added to the CHANGELOG

@lossyrob lossyrob changed the title Fix/rde/item root Set client Catalog as Item root in ItemSearch Jul 9, 2021
@matthewhanson
Copy link
Member

I merged this change into #74

@matthewhanson matthewhanson deleted the fix/rde/item-root branch July 22, 2021 06:28
gjoseph92 added a commit to gjoseph92/planetary-computer-sdk-for-python that referenced this pull request Oct 28, 2021
Losing the root collection was causing `to_dict()` on signed `ItemCollections` to be extremely slow, like stac-utils/pystac#546. By preserving the root catalog stac-utils/pystac-client#72, it's much faster.
TomAugspurger pushed a commit to microsoft/planetary-computer-sdk-for-python that referenced this pull request Oct 29, 2021
Losing the root collection was causing `to_dict()` on signed `ItemCollections` to be extremely slow, like stac-utils/pystac#546. By preserving the root catalog stac-utils/pystac-client#72, it's much faster.
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