Hi!
I am setting up a new 4.2.2 Geonetwork server on an Ubuntu 20 server. I
have been running a 4.0 instance on a Windows server for a couple of years.
Being a new version, and a new platform, I have some questions. I will make
a separate thread for each. I have installed the latest geonetwork.war
under Tomcat 9, and done no customizing of the UI.
Adding a WMTS service as Background map
This is done by manual editing of the config-viewer.xml file.
A provided sample for WMTS goes like this
<ows-context:Layer queryable="false"
name="{type=wmts,name=web_mercator_etopo1_hillshade}"
hidden="true" opacity="1" group="Background layers">
<ows:Title xmlns:ows="http://www.opengis.net/ows">Etopo1</ows:Title>
<ows-context:Server service="urn:ogc:serviceType:WMS">
<ows-context:OnlineResource xmlns:xlink="
http://www.w3.org/1999/xlink"
xlink:href="
http://maps.ngdc.noaa.gov/arcgis/rest/services/web_mercator/etopo1_hillshade/MapServer/WMTS/1.0.0/WMTSCapabilities.xml
"/>
</ows-context:Server>
<ows-context:StyleList/>
</ows-context:Layer>
I have tried to put in my service link on xlink, but get nothing but a hung
spinner where the clickable link should be in the map UI. This goes for all
other attempts, and yes, I have secured that the altered file is read into
the application.
There are a number of strange items in the sample, making me doubt its
validity
It is for an ArcGIS REST service, not an OGC WMTS service. So the href
cannot be a file.
serviceType:WMS should be WMTS, I think but changing does not help.
<ows-context:StyleList/> ought to be where the style should be put, but
that is seldom needed. On the other hand, a tag for Layer Name in the WMTS
service would be useful.
I think I have tried all permutations here, but to no avail.
If someone with a working WMTS background map could provide a little code
snippet it would be most welcome. And perhaps even find its way into the
config file in the repo.
Best regards, Mats.E
--
*GisKraft*, Geodatakonsult
Mats Elfström, Marsvinsholms stationsväg 80, 271 93 Ystad, Sweden
tel: +46 70 595 39 35 / www.giskraft.se