Replies: 2 comments 1 reply
-
|
My preferred convention is:
Taken from the Whatever we decide, I do think it should be included in best practices. |
Beta Was this translation helpful? Give feedback.
-
|
Just found a good implementation that highlights why detecting the dot (or a "file extension") in a filename is not ideal. So all collection IDs there end with .catalog, but it's definitively not a file. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
How do other STAC clients solve the issue that e.g.
https://example.com/path/to/folder(as a base URL provided by the user or from root/self link) could be a file or folder?If I resolve a relative link
./item.jsonagainst the base URL it would result inhttps://example.com/path/to/item.jsonalthoughfolderis a folder in my case.On the other hand, if I resolve
./item.jsonagainst a base URLhttps://example.com/path/to/catalog.jsonit should of course resolve tohttps://example.com/path/to/item.json.I'm hesistant to check for the file extension as files don't necessarily need one, right? Folders could also have dots in them.
Currently, I enforce in the STAC Browser config that people need to add a slash at the end, i.e.
https://example.com/path/to/folder/, but it seems many implementations don't follow this. Some even give a 404 with a slash at the end.Thoughts? Ideas? Is this something we should descibe in the best pactices?
Beta Was this translation helpful? Give feedback.
All reactions