We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
self
import pystac item = pystac.read_file("https://planetarycomputer.microsoft.com/api/stac/v1/collections/sentinel-2-l2a/items/S2A_MSIL2A_20150704T101006_R022_T35XQA_20210411T133707") links = item.get_links(rel="self") print(len(links)) for link in links: print(link)
That will output
2 <Link rel=self target=https://planetarycomputer.microsoft.com/api/stac/v1/collections/sentinel-2-l2a/items/S2A_MSIL2A_20150704T101006_R022_T35XQA_20210411T133707> <Link rel=self target=https://planetarycomputer.microsoft.com/api/stac/v1/collections/sentinel-2-l2a/items/S2A_MSIL2A_20150704T101006_R022_T35XQA_20210411T133707>
for pystac>=1.7.0. On 1.6.1 it outputs just the single self link. None of the other links are duplicated, just self.
The text was updated successfully, but these errors were encountered:
Closed by #1103
Sorry, something went wrong.
gadomski
Successfully merging a pull request may close this issue.
That will output
for pystac>=1.7.0. On 1.6.1 it outputs just the single
self
link. None of the other links are duplicated, justself
.The text was updated successfully, but these errors were encountered: