I'm not sure this is the right repository, please move it if there's a better place.
The URL to resources (e.g. groups) that are inside a ZARR should be clarified.
Usually we have something like:
https://example.stac/path/something.zarr/my/group
How to parse the group from the URL, for example for use in OpenLayers?
I'm asking because I need to figure out how to extract that group reliably and I couldn't find any information on whether I can e.g. rely on the .zarr being in the path only once (in theory a .zarr could be somewhere in other folder names or the group names itself, ... or not?).
I think it might have been easier to append an additional path as fragment, e.g.
https://example.stac/path/something.zarr#/my/group
Then you can simply extract the fragment with usual URL parsing libraries instead of shipping your own logic to extract it from the path.
I'm not sure this is the right repository, please move it if there's a better place.
The URL to resources (e.g. groups) that are inside a ZARR should be clarified.
Usually we have something like:
https://example.stac/path/something.zarr/my/group
How to parse the group from the URL, for example for use in OpenLayers?
I'm asking because I need to figure out how to extract that group reliably and I couldn't find any information on whether I can e.g. rely on the .zarr being in the path only once (in theory a .zarr could be somewhere in other folder names or the group names itself, ... or not?).
I think it might have been easier to append an additional path as fragment, e.g.
https://example.stac/path/something.zarr#/my/group
Then you can simply extract the fragment with usual URL parsing libraries instead of shipping your own logic to extract it from the path.