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

How to download a ms-building id stac? #39

Open
aborruso opened this issue Jul 20, 2023 · 2 comments
Open

How to download a ms-building id stac? #39

aborruso opened this issue Jul 20, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@aborruso
Copy link

Hi,
first of all thank you for this project.

As I have writter here, I would like to download a ms-building id stack.
And I have tried to do it running:

stac-client search https://planetarycomputer.microsoft.com/api/stac/v1 -c ms-buildings --bbox 46.40 24.52 47.110 25.165 --max-items 1 | stac-asset download

But I have this error:

stac_asset.errors.DownloadError: error when downloading asset 'data' with href 'abfs://footprints/delta/2023-04-25/ml-buildings.parquet/RegionName=KingdomofSaudiArabia/quadkey=123022211': cannot read a file with the filesystem client if it has a url scheme: abfs://footprints/delta/2023-04-25/ml-buildings.parquet/RegionName=KingdomofSaudiArabia/quadkey=123022211

Is there a way to download it?

@bmcandr
Copy link

bmcandr commented Jul 26, 2023

It looks like the abfs:// scheme is not supported yet. As shown here, the PlanetaryComputerClient is a subclass of HttpClient and can therefore only download assets with http-based HREFs.


Correction: stac-asset tries to use the FilesystemClient because it is the default choice if the href does not match the options listed here. What I said above is still true for the PlanetaryComputerClient, but it's not actually getting used here.

@gadomski gadomski added bug Something isn't working enhancement New feature or request labels Aug 4, 2023
@gadomski gadomski added this to the v0.0.4 milestone Aug 4, 2023
@gadomski
Copy link
Member

gadomski commented Aug 4, 2023

Yup, thanks for the report. There's (at least) two things going on here:

@gadomski gadomski modified the milestones: v0.0.4, v0.2.0 Aug 4, 2023
This was referenced Aug 7, 2023
@gadomski gadomski removed this from the v0.2.0 milestone Aug 8, 2023
@gadomski gadomski self-assigned this Aug 14, 2023
@gadomski gadomski removed the bug Something isn't working label Mar 15, 2024
@gadomski gadomski removed their assignment Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants