Description
the support added in #9368 (and #9585) could be improved, because from what i understand as of now (and i think this is undocumented ?), to successfully load a 3dtiles dataset from a CSW search, one needs:
- a single entry with
<dc:format>3D Tiles</dc:format>
- a single
<dc:URI> pointing at the JSON dataset url
any other case doesn't work. We have MDs in our geonetwork catalog with several <dc:format> and several<dc:URI>, and only some of them are pointing to 3dtiles. They are properly labeled with protocol="OGC:3DTILES" (which was added in GN upstream in geonetwork/core-geonetwork#6950, which is used in #9021) so i would have expected those URIs to be selected. Afaict with the current code, only the first/only dc:URI is used/tried ?
I've tried fixing our MDs in geonetwork to add the format tag, but i cant remove the other links. So my idea to fix that, avoiding breaking other existing setups:
- if there's several
<dc:format>, select the MD only if 3D Tiles is present in the list
- if there's only one
<dc:URI> use it regardless of the protocol (present or not, whatever the value)
- if there's several
<dc:URI>, filter only the ones with protocol="OGC:3DTILES" (there might be several, i have to look at how the CSW search results allow to select within several OGC MD links)
sample datasets, for example:
What kind of improvement you want to add?
Description
the support added in #9368 (and #9585) could be improved, because from what i understand as of now (and i think this is undocumented ?), to successfully load a 3dtiles dataset from a CSW search, one needs:
<dc:format>3D Tiles</dc:format><dc:URI>pointing at the JSON dataset urlany other case doesn't work. We have MDs in our geonetwork catalog with several
<dc:format>and several<dc:URI>, and only some of them are pointing to 3dtiles. They are properly labeled withprotocol="OGC:3DTILES"(which was added in GN upstream in geonetwork/core-geonetwork#6950, which is used in #9021) so i would have expected those URIs to be selected. Afaict with the current code, only the first/onlydc:URIis used/tried ?I've tried fixing our MDs in geonetwork to add the format tag, but i cant remove the other links. So my idea to fix that, avoiding breaking other existing setups:
<dc:format>, select the MD only if3D Tilesis present in the list<dc:URI>use it regardless of theprotocol(present or not, whatever the value)<dc:URI>, filter only the ones withprotocol="OGC:3DTILES"(there might be several, i have to look at how the CSW search results allow to select within several OGC MD links)sample datasets, for example:
What kind of improvement you want to add?