Geographic Information Systems Asked on September 29, 2020
I am trying to harvest a WMS v1.3 layer from GeoServer v2.17
using GeoNetwork v3.4 & v3.10.
I’d like the GeoNetwork to read the URL from ‘metaDataUrl’ in WMS GetCapabilities response
i.e. I have ticked ‘Import record for each layer using MetadataURL attributes’ in the ‘OGC Web Services’ harvester
The geoserver does output ‘metadataUrl’ in its WMS 1.3 GetCapabilities response,
but the geonetwork does not recognise it:
<Layer queryable="1" opaque="0">
...
<MetadataURL type="19139">
<Format>text/xml</Format>
<OnlineResource xlink:type="simple" xlink:href="https://geonetwork.blah.org/geonetwork/srv/api/records/12345_435454_234343_343_23/formatters/xml"/>
</MetadataURL>
The logs say:
No metadataUrl attribute found for layer ‘blah’
Failed to load metadata document for layer ‘blah’. Error is: ‘null’
What kind of ‘metadataurl’ XML does the GeoNetwork expect in GetCapabilities ?
Is there an example I can get hold of?
I got it working by setting the 'metadataUrl' type to 'TC211' in geoserver
e.g. GetCapabilities response looks like this:
<Layer queryable="1" opaque="0">
...
<MetadataURL type="TC211">
<Format>text/xml</Format>
<OnlineResource xlink:type="simple" xlink:href="https://geonetwork.blah.org/geonetwork/srv/api/records/57628_453_9406_3211_5/formatters/xml"/>
</MetadataURL>
Answered by Vincent on September 29, 2020
1 Asked on October 10, 2020 by lilian-guimares
0 Asked on October 9, 2020 by mohit-verma
1 Asked on October 9, 2020 by stonebe
0 Asked on October 9, 2020 by zeniya-talpur
0 Asked on October 9, 2020 by interwebjill
0 Asked on October 8, 2020 by am-r
1 Asked on October 8, 2020
0 Asked on October 7, 2020 by kuki
1 Asked on October 6, 2020 by sonic
2 Asked on October 6, 2020 by reda-drissi
0 Asked on October 6, 2020
1 Asked on October 6, 2020 by soph
0 Asked on October 6, 2020 by candice
1 Asked on October 5, 2020 by benjimin
1 Asked on October 5, 2020 by nicolas-falconi
Get help from others!
Recent Answers
© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir