<div dir="ltr"><div>Robert,</div><div><br></div><div>I know that MapProxy will cache the legend graphic somewhere on your server, I'm sorry I can't remember where. It may be that it has cached a blank image, I would try finding and deleting it. <br></div><div><br></div><div>Regards<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 28 Jan 2021 at 06:54, Kulawik, Robert <<a href="mailto:KulawikR@eba.bund.de">KulawikR@eba.bund.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="DE">
<div class="gmail-m_-6200783029243457872WordSection1">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Dear List,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I have a issue between Mapproxy 1.12.0 and Mapserver 7.4.3 with restful requests<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">When I use the WMS(?) KVP Capabilities from Mapproxy (<a href="http://localhost/mapproxy/service?REQUEST=GetCapabilities" target="_blank">http://localhost/mapproxy/service?REQUEST=GetCapabilities</a>) in e.g. QGIS, everything works fine. The legend and the GetFeatureInfo (GFI) are avaiable and working for the WMTS Layer.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The GFI request is similar as in Mapserver WMS,<u></u><u></u></p>
<p class="MsoNormal"><a href="http://localhost/mapproxy/service?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=359590.9848198993713595,5668915.14138658251613379,361421.80612308223498985,5670043.28831636067479849&CRS=EPSG:25832&WIDTH=568&HEIGHT=350&LAYERS=verkehrsweg_wmts&STYLES=&FORMAT=image/png&QUERY_LAYERS=verkehrsweg_wmts&INFO_FORMAT=text/html&I=268&J=176&FEATURE_COUNT=10" target="_blank">http://localhost/mapproxy/service?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=359590.9848198993713595,5668915.14138658251613379,361421.80612308223498985,5670043.28831636067479849&CRS=EPSG:25832&WIDTH=568&HEIGHT=350&LAYERS=verkehrsweg_wmts&STYLES=&FORMAT=image/png&QUERY_LAYERS=verkehrsweg_wmts&INFO_FORMAT=text/html&I=268&J=176&FEATURE_COUNT=10</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><a href="http://localhost/cgi-bin/mapserv64/mapserv.fcgi?map=c:/srv/mapfiles/verkehrswege.map&language=ger&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=359590.9848198993713595,5668915.14138658251613379,361421.80612308223498985,5670043.28831636067479849&SRS=EPSG:25832&WIDTH=568&HEIGHT=350&LAYERS=Verkehrsweg&STYLES=&FORMAT=image/png&QUERY_LAYERS=Verkehrsweg&INFO_FORMAT=text/html&X=266&Y=176&FEATURE_COUNT=10" target="_blank">http://localhost/cgi-bin/mapserv64/mapserv.fcgi?map=c:/srv/mapfiles/verkehrswege.map&language=ger&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=359590.9848198993713595,5668915.14138658251613379,361421.80612308223498985,5670043.28831636067479849&SRS=EPSG:25832&WIDTH=568&HEIGHT=350&LAYERS=Verkehrsweg&STYLES=&FORMAT=image/png&QUERY_LAYERS=Verkehrsweg&INFO_FORMAT=text/html&X=266&Y=176&FEATURE_COUNT=10</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">But,<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">When I use the restful Mapproxy Service (<a href="http://localhost/mapproxy/wmts/1.0.0/WMTSCapabilities.xml" target="_blank">http://localhost/mapproxy/wmts/1.0.0/WMTSCapabilities.xml</a>), no Legend and GFI works<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">The LegendURL is not exist in the Capabilities, when I copy the WMTSCapabilities.xml to local an add the LegendURL manually, it works from the local file.<u></u><u></u></p>
<p class="MsoNormal"> <Style><u></u><u></u></p>
<p class="MsoNormal"> <ows:Title>Style für Verkehrsweg</ows:Title><u></u><u></u></p>
<p class="MsoNormal"> <ows:Identifier>default</ows:Identifier><u></u><u></u></p>
<p class="MsoNormal"> <LegendURL format="image/png" xmlns:xlink="<a href="http://www.w3.org/1999/xlink" target="_blank">http://www.w3.org/1999/xlink</a>" xlink:type="simple" xlink:href="<a href="http://localhost/mapproxy/service?styles=&layer=verkehrsweg&service=WMS&format=image/png&sld_version=1.1.0&request=GetLegendGraphic&version=1.1.1" target="_blank">http://localhost/mapproxy/service?styles=&layer=verkehrsweg&service=WMS&format=image/png&sld_version=1.1.0&request=GetLegendGraphic&version=1.1.1</a>
"/><u></u><u></u></p>
<p class="MsoNormal"> </Style><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">But my biggest problem is:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">When I request the restful service, the restful tile request works<u></u><u></u></p>
<p class="MsoNormal"><a href="http://localhost/mapproxy/wmts/verkehrsweg_wmts/wmtsgrid/09/146/324.png" target="_blank">http://localhost/mapproxy/wmts/verkehrsweg_wmts/wmtsgrid/09/146/324.png</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">but the GFI request on the same tile not<u></u><u></u></p>
<p class="MsoNormal"><a href="http://localhost/mapproxy/wmts/verkehrsweg_wmts/wmtsgrid/09/146/324/38/142.html" target="_blank">http://localhost/mapproxy/wmts/verkehrsweg_wmts/wmtsgrid/09/146/324/38/142.html</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Mapserver says:<u></u><u></u></p>
<p class="MsoNormal">msQueryByPoint(): Search returned no results. No matching record(s) found.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Unfortunally I can´t see the request from Mapproxy to Mapserver in my logs or the HTTP Debugger.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Using <a href="http://localhost/mapproxy/service?REQUEST=GetCapabilities&SERVICE=WMTS" target="_blank">http://localhost/mapproxy/service?REQUEST=GetCapabilities&SERVICE=WMTS</a> in QGIS, the legend and GFI are also not available<u></u><u></u></p>
<p class="MsoNormal">the answer for GFI is:<u></u><u></u></p>
<p class="MsoNormal">GetFeatureInfo-Fehler Error transferring <a href="http://localhost/mapproxy/service?SERVICE=WMTS&REQUEST=GetFeatureInfo&VERSION=1.0.0&LAYER=verkehrsweg_wmts&STYLE=default&INFOFORMAT=text/html&TILEMATRIXSET=wmtsgrid&TILEMATRIX=10&TILEROW=511&TILECOL=171&I=168&J=214" target="_blank">http://localhost/mapproxy/service?SERVICE=WMTS&REQUEST=GetFeatureInfo&VERSION=1.0.0&LAYER=verkehrsweg_wmts&STYLE=default&INFOFORMAT=text/html&TILEMATRIXSET=wmtsgrid&TILEMATRIX=10&TILEROW=511&TILECOL=171&I=168&J=214</a>
- server replied: Internal Server Error<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">-<ows:ExceptionReport xml:lang="en" xsi:schemaLocation="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a> <a href="http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd" target="_blank">http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd</a>" version="1.0.0" xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance" target="_blank">http://www.w3.org/2001/XMLSchema-instance</a>" xmlns:ows="<a href="http://www.opengis.net/ows/1.1" target="_blank">http://www.opengis.net/ows/1.1</a>"><u></u><u></u></p>
<p class="MsoNormal">-<ows:Exception exceptionCode="NoApplicableCode"><u></u><u></u></p>
<p class="MsoNormal"><ows:ExceptionText>missing parameters ['format']</ows:ExceptionText><u></u><u></u></p>
<p class="MsoNormal"></ows:Exception><u></u><u></u></p>
<p class="MsoNormal"></ows:ExceptionReport><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">adding the FORMAT Parameter to the URL manually, Mapserver says again<u></u><u></u></p>
<p class="MsoNormal">msQueryByPoint(): Search returned no results. No matching record(s) found<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I don´t know if this ist a Mapproxy or Mapserver problem, maybe has someone a solution for this issue.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">My Mapproxy yaml configuration:<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">services:<u></u><u></u></p>
<p class="MsoNormal"> wmts:<u></u><u></u></p>
<p class="MsoNormal"> restful: true<u></u><u></u></p>
<p class="MsoNormal"> # with or without both templates the same behavior<u></u><u></u></p>
<p class="MsoNormal"> restful_template: '/{Layer}/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.{Format}'<u></u><u></u></p>
<p class="MsoNormal"> restful_fi_template: '/{Layer}/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}/{I}/{J}.{Format}'<u></u><u></u></p>
<p class="MsoNormal"> featureinfo_formats:<u></u><u></u></p>
<p class="MsoNormal"> - mimetype: application/gml+xml; version=3.1<u></u><u></u></p>
<p class="MsoNormal"> suffix: gml<u></u><u></u></p>
<p class="MsoNormal"> - mimetype: text/html<u></u><u></u></p>
<p class="MsoNormal"> suffix: html<u></u><u></u></p>
<p class="MsoNormal"> kvp: true<u></u><u></u></p>
<p class="MsoNormal"> md:<u></u><u></u></p>
<p class="MsoNormal"> title: mytitle<u></u><u></u></p>
<p class="MsoNormal"> access_constraints: "GeoNutzV"<u></u><u></u></p>
<p class="MsoNormal"> fees: keine<u></u><u></u></p>
<p class="MsoNormal"> contact:<u></u><u></u></p>
<p class="MsoNormal"> organization: myorg<u></u><u></u></p>
<p class="MsoNormal"> position: owner<u></u><u></u></p>
<p class="MsoNormal"> wms:<u></u><u></u></p>
<p class="MsoNormal"> srs: ['EPSG:4258','EPSG:4326','EPSG:31466','EPSG:31467','EPSG:31468','EPSG:31469','EPSG:25831','EPSG:25832','EPSG:25833']<u></u><u></u></p>
<p class="MsoNormal"> image_formats: ['image/png', 'image/jpeg']<u></u><u></u></p>
<p class="MsoNormal"> max_output_pixels: [5000, 5000]<u></u><u></u></p>
<p class="MsoNormal"> md:<u></u><u></u></p>
<p class="MsoNormal"> title: mytitle<u></u><u></u></p>
<p class="MsoNormal"> fees: keine<u></u><u></u></p>
<p class="MsoNormal"> contact:<u></u><u></u></p>
<p class="MsoNormal"> organization: myorg<u></u><u></u></p>
<p class="MsoNormal"> position: owner<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">sources:<u></u><u></u></p>
<p class="MsoNormal"> verkehrsweg_source:<u></u><u></u></p>
<p class="MsoNormal"> type: wms<u></u><u></u></p>
<p class="MsoNormal"> wms_opts:<u></u><u></u></p>
<p class="MsoNormal"> featureinfo: true<u></u><u></u></p>
<p class="MsoNormal"> version: 1.1.1<u></u><u></u></p>
<p class="MsoNormal"> legendgraphic: true<u></u><u></u></p>
<p class="MsoNormal"> legendurl: '<a href="http://localhost/cgi-bin/mapserv64/mapserv.fcgi?map=c:/srv/mapfiles/verkehrswege.map&language=ger&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Verkehrsweg&format=image/png&STYLE=default" target="_blank">http://localhost/cgi-bin/mapserv64/mapserv.fcgi?map=c:/srv/mapfiles/verkehrswege.map&language=ger&version=1.1.1&service=WMS&request=GetLegendGraphic&layer=Verkehrsweg&format=image/png&STYLE=default</a>'<u></u><u></u></p>
<p class="MsoNormal"> supported_srs: ['EPSG:25832']<u></u><u></u></p>
<p class="MsoNormal"> concurrent_requests: 4<u></u><u></u></p>
<p class="MsoNormal"> ##seed_only: true<u></u><u></u></p>
<p class="MsoNormal"> coverage:<u></u><u></u></p>
<p class="MsoNormal"> bbox: [204485, 5204122, 1008600, 6134557]<u></u><u></u></p>
<p class="MsoNormal"> srs: 'EPSG:25832'<u></u><u></u></p>
<p class="MsoNormal"> req:<u></u><u></u></p>
<p class="MsoNormal"> url: <a href="http://localhost/cgi-bin/mapserv64/mapserv.fcgi?map=c:/srv/mapfiles/verkehrswege.map" target="_blank">http://localhost/cgi-bin/mapserv64/mapserv.fcgi?map=c:/srv/mapfiles/verkehrswege.map</a><u></u><u></u></p>
<p class="MsoNormal"> layers: Verkehrsweg<u></u><u></u></p>
<p class="MsoNormal"> format: image/png<u></u><u></u></p>
<p class="MsoNormal"> <u></u><u></u></p>
<p class="MsoNormal">in Mapproxy generated Capabilities (localhost/mapproxy/wmts/1.0.0/WMTSCapabilities.xml):<u></u><u></u></p>
<p class="MsoNormal"><Layer><u></u><u></u></p>
<p class="MsoNormal"><ows:Title>Verkehrsweg WMTS</ows:Title><u></u><u></u></p>
<p class="MsoNormal"><ows:Abstract/><u></u><u></u></p>
<p class="MsoNormal"><ows:WGS84BoundingBox><u></u><u></u></p>
<p class="MsoNormal"><ows:LowerCorner>4.347385126700914 46.79613836774577</ows:LowerCorner><u></u><u></u></p>
<p class="MsoNormal"><ows:UpperCorner>16.97871437496392 55.348256807378</ows:UpperCorner><u></u><u></u></p>
<p class="MsoNormal"></ows:WGS84BoundingBox><u></u><u></u></p>
<p class="MsoNormal"><ows:Identifier>verkehrsweg_wmts</ows:Identifier><u></u><u></u></p>
<p class="MsoNormal"><Style><u></u><u></u></p>
<p class="MsoNormal"><ows:Identifier>default</ows:Identifier><u></u><u></u></p>
<p class="MsoNormal"></Style><u></u><u></u></p>
<p class="MsoNormal"><Format>image/png</Format><u></u><u></u></p>
<p class="MsoNormal"><InfoFormat>text/html</InfoFormat><u></u><u></u></p>
<p class="MsoNormal"><TileMatrixSetLink><u></u><u></u></p>
<p class="MsoNormal"><TileMatrixSet>wmtsgrid</TileMatrixSet><u></u><u></u></p>
<p class="MsoNormal"></TileMatrixSetLink><u></u><u></u></p>
<p class="MsoNormal"><ResourceURL format="image/png" resourceType="tile" template="<a href="http://localhost/mapproxy/wmts/verkehrsweg_wmts/%7BTileMatrixSet%7D/%7BTileMatrix%7D/%7BTileCol%7D/%7BTileRow%7D.png" target="_blank">http://localhost/mapproxy/wmts/verkehrsweg_wmts/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png</a>"/><u></u><u></u></p>
<p class="MsoNormal"><ResourceURL format="text/html" resourceType="FeatureInfo" template="<a href="http://localhost/mapproxy/wmts/verkehrsweg_wmts/%7BTileMatrixSet%7D/%7BTileMatrix%7D/%7BTileCol%7D/%7BTileRow%7D/%7BI%7D/%7BJ%7D.html" target="_blank">http://localhost/mapproxy/wmts/verkehrsweg_wmts/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}/{I}/{J}.html</a>"/><u></u><u></u></p>
<p class="MsoNormal"></Layer><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">in the <a href="http://localhost/mapproxy/service?REQUEST=GetCapabilities&SERVICE=WMTS" target="_blank">http://localhost/mapproxy/service?REQUEST=GetCapabilities&SERVICE=WMTS</a>
<u></u><u></u></p>
<p class="MsoNormal">are no LegendURL or ResourceURL are generated<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Thanks in advance,<u></u><u></u></p>
<p class="MsoNormal">Robert<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
_______________________________________________<br>
MapProxy mailing list<br>
<a href="mailto:MapProxy@lists.osgeo.org" target="_blank">MapProxy@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/mapproxy" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/mapproxy</a><br>
</blockquote></div>