TerriaJS / terriajs

A library for building rich, web-based geospatial data platforms.
https://terria.io
Apache License 2.0
1.16k stars 361 forks source link

CSW does not support single item request [Missing feature] #4158

Open ccancellieri opened 4 years ago

ccancellieri commented 4 years ago

Hi, I'd like to point to a specific metadata into my GeoNetwork using the ID and it looks like there's no way to configure CSW as single item (only group).

This is important to me because I need to add GeoNetwork metadata as single Items, not as group.

We know the id so why do we have to search using a filter?

I was testing the CSW item with something like this but it doesn't work: { ... getRecordsTemplate: "<?xml version=\"1.0\" encoding=\"UTF-8\"?><csw:GetRecordById xmlns:csw=\"http:\/\/www.opengis.net\/cat\/csw\/2.0.2\" version=\"2.0.2\" service=\"CSW\">UUID</csw:Id>full</csw:ElementSetName></csw:GetRecordById>" ... }

It expects the response of a getRecords and then (on click) performs a getRecordById for each record...

What do you think about that?

rowanwins commented 4 years ago

Hi @ccancellieri

Yeah you are correct that our CSW integration is designed to create groups, rather than support single items.

With our CKAN support, we support both a group, but we have also added support for a ckan-resource catalog item https://docs.terria.io/guide/connecting-to-data/catalog-type-details/ckan-resource/

We're currently working on a major refactor of parts of our library so when it comes time to implement CSW support we could look at adding this enhancement

Thanks, Rowan