Skip to content

Integration with pystac_client #42

@robbibt

Description

@robbibt

Hi all, this looks really fantastic! I'd love to try this out, but I'm unfortunately being blocked by rustac issues:

     14 # Search a STAC API and cache results to a local stac-geoparquet file.
---> 15 await rustac.search_to(
     16     "items.parquet",
     17     "https://explorer.dea.ga.gov.au/stac",
     18     collections=["ga_s2ls_intertidal_cyear_3"],

RustacError: builder error

Is it possible to run lazycogs directly on the list of items returned by pystac_client instead? For example, the output of something like this:

client = pystac_client.Client.open("https://explorer.dea.ga.gov.au/stac")

search = client.search(
    collections=["ga_ls8c_ard_3"],
    bbox=[150.15, -35.75, 150.25, -35.65], 
    datetime="2023-01-01/2023-01-31",
)

# Retrieve all matched items as a pystac.ItemCollection
items = search.item_collection()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions