Skip to content
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

Add filter to CSW Catalog to request only layers #6813

Closed
1 task done
allyoucanmap opened this issue Apr 28, 2021 · 6 comments
Closed
1 task done

Add filter to CSW Catalog to request only layers #6813

allyoucanmap opened this issue Apr 28, 2021 · 6 comments

Comments

@allyoucanmap
Copy link
Contributor

allyoucanmap commented Apr 28, 2021

Description

The CSW requests include all the resources available so the Catalog cards will show an error when the record item is not a layer. An example is the geonode mapstore client that using the CSW catalog of GeoNode shows all other contents such as maps, documents, ... with an error

To avoid listing these additional resources inside the MapStore client catalog a filter must be always included:

<csw:Constraint version="1.1.0">
  <Filter xmlns="http://www.opengis.net/ogc">
	 <Or>
	 <PropertyIsEqualTo>
		 <PropertyName>dc:type</PropertyName>
		 <Literal>dataset</Literal>
	 </PropertyIsEqualTo>
	 <PropertyIsEqualTo>
		 <PropertyName>dc:type</PropertyName>
		 <Literal>http://purl.org/dc/dcmitype/Dataset</Literal>
	 </PropertyIsEqualTo>
	</Or>
  </Filter>
</csw:Constraint>

Below screenshot of the current Catalog showing resources different from layers.

image

The CSW catalog must continue working on:

Showing only datasets, not services.

What kind of improvement you want to add? (check one with "x", remove the others)

  • Minor changes to existing features

Other useful information

@offtherailz
Copy link
Member

One note: http://gn3-rndt.geo-solutions.it/geonetwork/srv/eng/csw doesn't seems to be compatible, so you can skip this test.

@ElenaGallo ElenaGallo self-assigned this May 17, 2021
@ElenaGallo ElenaGallo added this to the 2021.02.00 milestone May 17, 2021
@allyoucanmap
Copy link
Contributor Author

please @MuhweziDeo backport this fix to https://github.com/geosolutions-it/MapStore2/tree/geonode-mapstore-client-2.1.x

@offtherailz
Copy link
Member

can be related to georchestra/mapstore2-georchestra#257

@tdipisa
Copy link
Member

tdipisa commented May 19, 2021

@offtherailz is it possible to configure this filter?

@offtherailz
Copy link
Member

offtherailz commented May 19, 2021

No, it is not configurable. The only improvement is that the generated filter now is a little more specific, to get only dataset type contents (not other types), avoiding some results.

@tdipisa
Copy link
Member

tdipisa commented May 19, 2021

@offtherailz it should be configurable so that the filter can be set up depending on the use case and context where MS is used. By default we expected to have the catalog tool to browse all metadata available in a CSW catalog, with the possibility to add a layer to the map if WMS resources are connected to the metadata.

Can you please open a new dedicate issue for this enhancement? We should consider also the case of the application contexts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment