[Oskari-user] Metadata handling in Oskari admin?

Mäkinen Sami (MML) sami.makinen at maanmittauslaitos.fi
Tue Oct 16 04:49:03 PDT 2018


Hi,

The metadata url is parsed from the capabilities. Currently we only save the id for the metadata and assume all layers have metadata in the same catalogue service (which is configured for example as the metadata search backend). Here’s the code that parses WMS-capabilities: https://github.com/oskariorg/oskari-server/blob/master/service-map/src/main/java/fi/nls/oskari/wms/GetGtWMSCapabilities.java I’m not sure if other services have similar metadata references or if we parse them, but it’s easy enough to check if needed.

Things to note: Oskari uses GeoTools to parse the capabilities document and WMSCapabilities.getService().getOnlineResource() is used as the metadata reference BUT if there WMSCapabilities.getLayer().getMetadataURL() returns something (not null) we take the first value on that list and use that instead of anything that we got from service.getOnlineResource().

           Sami

Lähettäjä: Oskari-user [mailto:oskari-user-bounces at lists.osgeo.org] Puolesta Sanna Jokela
Lähetetty: 15. lokakuuta 2018 15:41
Vastaanottaja: oskari-user at lists.osgeo.org
Kopio: Räikkönen Natalia <natalia.raikkonen at varsinais-suomi.fi>
Aihe: [Oskari-user] Metadata handling in Oskari admin?

Hi!

When adding new layers to Oskari and providing the admin the GetCapabilities link for the layer, should the admin also detect automatically what metadata link to use? Or do you always have to give the metadata url links separately?

I tested this with Natalia from Lounaistieto (they have updated Oskari to the newest version) and we did not get the metadata straight from the GetCapabilities url (might be due to GeoServer also), but adding the metadatalink separately by hand did produce the correct result.

So the question: should the detection of metadata be automatic?

And if it is automated, in case the layer would have two metadata links, which one Oskari chooses? I just noticed that GeoServer provides the possibility to add several metadata links for the layer. This could be the case if you would have INSPIRE metadata description in national search portals and own metadata description in local services.

Br,
--
Sanna Jokela
GIS specialist / Oskari communication coordinator
Gispo Ltd
+358 407664607
www.gispo.fi<http://www.gispo.fi/>
https://community.oskari.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/oskari-user/attachments/20181016/f9a60f3e/attachment.html>


More information about the Oskari-user mailing list