question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[STAC] resolves relative asset path

See original GitHub issue

ref: https://github.com/developmentseed/titiler/issues/36#issue-639793489

from @fabricebrito

This feature would ease our setup as the STAC catalogues we use move from a location to another and this is why we use relative hrefs also for the asset paths. For instance pystac resolves the the full href with e.g.

item.assets['nbr'].get_absolute_href()

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
emmanuelmathotcommented, Dec 11, 2020

No problem, I modified the STACReader to use pystac. PR #313

0reactions
vincentsaragocommented, Dec 11, 2020

🎉 woot thanks for the PR @emmanuelmathot 🙏

Read more comments on GitHub >

github_iconTop Results From Across the Web

absolute/relative references #373 - radiantearth/stac-spec
A client just needs to resolve the relative links against the URL it requested, I guess. Of course, if links point to another...
Read more >
Concepts — pystac 0.3.4 documentation - Read the Docs
HREFs inside a STAC for either links or assets can be relative or absolute. ... should resolve to the absolute path /some/location/item-id/item-id.json ....
Read more >
vue.js - vite - Subpage with relative asset path
Is there a way to tell vite to relatively path its way to the asset folder, even for subpages? Ideally not using a...
Read more >
Get Absolute Path of File from Relative Path in Node.js
The built-in path module provides a method called resolve that takes a relative path and a base path and returns the absolute path...
Read more >
Conflict with assets folder and section URL
I have come up against an issue, and I want to check the best way to resolve this; here is a brief explanation....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found