-
Notifications
You must be signed in to change notification settings - Fork 137
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Collection names are duplicated #103
Comments
Thanks for the report. Could you make the JSON available so that I can test against it? |
Please tell me which stac endpoint I should call to make a json you need? |
I guess from your report that it would be the JSON responses from both:
You can send it to the e-mail in my profile, if you don't want it to be publicly posted. |
Thanks. The issue here is that you list catalogs as childs in the root catalogs with the same name as the collections in the collection endpoint. They get merged and thus they are there shown twice. |
I use stac_fastapi-based stac catalog and can see in the code where it is happening. Do you think stac-browser should handle this case to filter out collections with same names? |
Hmm, I'm not sure. I could probably try to detect duplicates based on the URL, but that may not always work perfectly if URLs differ slightly or collections have no self link etc. |
@drnextgis This has been fixed, but may get another change once the issues above have been tackled in the API spec. |
Thanks! |
I'm running stac-browser v3 locally and pointing it at a private test stac catalog:
The catalog has 2 collections but stac-browser shows them two times:
As you can see names of collections are the same but its URLs a bit different:
The text was updated successfully, but these errors were encountered: