Open rsignell-usgs opened 7 years ago
Sorry to sit on this so long and then ask you this @rsignell-usgs , but... can you still reproduce this? I don't see the Woods Hole CSW at the link above anymore.
Hi all,
I'm investigating on some strange behaviour happening when using CSW and I'd like to clarify here what could happen and propose a quick solution:
Let me use an image:
Let me describe the problem:
As you might see we actually have many of those items duplicated in the terriajs catalog. Note also that, while the second link (green line) is working as expected showing a map, the first one (red line) is completely unuseful.
The problem is located here -> terriajs/lib/Models/CswCatalogGroup.js
the check against a generic filter WMS is probably too inclusive in these cases:
(uri.protocol || uri.scheme).match(catalogGroup[f[0]])
manches the 'protocol' twice (since we have 2 WMS items)
In addition to that I see that both the resources are called in the same way (using the resource title) this is done here
Why we are not using the layername or the description if present?
Possible solutions:
Modify metadata to contain only a single getmap url
Work over the CSW parser
WMS-1.?.0-http-get-map
Is it reasonable? Any thoughts?
Can we include a fix for this in the next release? I would help you to address this issue soon.
regards, C.
Important notes: The metadata is a ISO 19139 stored over GeoNetwork 3.10.2 vanilla and fetched using CSW group directly by TerriaJS (using an ogc filter by keyword).
I noted that the WMS filter can be changed in the configuration or in the query and it's also a very special case so I focused over the new functionnality: Make item name configurable through Mustache template
I'm wondering why certain CSW record titles are repeated, as in this screenshot:![2016-11-16_12-59-36](https://cloud.githubusercontent.com/assets/1872600/20360602/577477bc-ac02-11e6-9c39-a6c6148257fa.png)
You can explore this by visiting http://gamone.whoi.edu/terriajs/#https://raw.githubusercontent.com/USGS-CMG/terriajs-dive/master/examples/csw.json
I notice this only on WMS endpoints from THREDDS Data Servers.