[MapProxy] Mapproxy 1.12 issue restful requests (GFI)

Travis Kirstine traviskirstine at gmail.com
Sat Jan 30 07:42:09 PST 2021


Robert,

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.

Regards

On Thu, 28 Jan 2021 at 06:54, Kulawik, Robert <KulawikR at eba.bund.de> wrote:

>
>
> Dear List,
>
>
>
> I have a issue between Mapproxy 1.12.0 and Mapserver 7.4.3 with restful
> requests
>
>
>
> When I use the WMS(?) KVP Capabilities from Mapproxy (
> http://localhost/mapproxy/service?REQUEST=GetCapabilities) in e.g. QGIS,
> everything works fine. The legend and the GetFeatureInfo (GFI) are avaiable
> and working for the WMTS Layer.
>
>
>
> The GFI request is similar as in Mapserver WMS,
>
>
> 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
>
>
>
>
> 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
>
>
>
> But,
>
>
>
> When I use the restful Mapproxy Service (
> http://localhost/mapproxy/wmts/1.0.0/WMTSCapabilities.xml), no Legend and
> GFI works
>
>
>
> 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.
>
>       <Style>
>
>         <ows:Title>Style für Verkehrsweg</ows:Title>
>
>                               <ows:Identifier>default</ows:Identifier>
>
>         <LegendURL format="image/png" xmlns:xlink="
> http://www.w3.org/1999/xlink" xlink:type="simple" xlink:href="
> http://localhost/mapproxy/service?styles=&layer=verkehrsweg&service=WMS&format=image/png&sld_version=1.1.0&request=GetLegendGraphic&version=1.1.1
> "/>
>
>       </Style>
>
>
>
> But my biggest problem is:
>
>
>
> When I request the restful service, the restful tile request works
>
> http://localhost/mapproxy/wmts/verkehrsweg_wmts/wmtsgrid/09/146/324.png
>
>
>
> but the GFI request on the same tile not
>
>
> http://localhost/mapproxy/wmts/verkehrsweg_wmts/wmtsgrid/09/146/324/38/142.html
>
>
>
> Mapserver says:
>
> msQueryByPoint(): Search returned no results. No matching record(s) found.
>
>
>
> Unfortunally I can´t see the request from Mapproxy to Mapserver in my logs
> or the HTTP Debugger.
>
>
>
> Using
> http://localhost/mapproxy/service?REQUEST=GetCapabilities&SERVICE=WMTS in
> QGIS, the legend and GFI are also not available
>
> the answer for GFI is:
>
> GetFeatureInfo-Fehler Error transferring
> 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
> - server replied: Internal Server Error
>
>
>
> -<ows:ExceptionReport xml:lang="en" xsi:schemaLocation="
> http://www.opengis.net/ows/1.1
> http://schemas.opengis.net/ows/1.1.0/owsExceptionReport.xsd"
> version="1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:ows="http://www.opengis.net/ows/1.1">
>
> -<ows:Exception exceptionCode="NoApplicableCode">
>
> <ows:ExceptionText>missing parameters ['format']</ows:ExceptionText>
>
> </ows:Exception>
>
> </ows:ExceptionReport>
>
>
>
> adding the FORMAT Parameter to the URL manually, Mapserver says again
>
> msQueryByPoint(): Search returned no results. No matching record(s) found
>
>
>
>
>
> I don´t know if this ist a Mapproxy or Mapserver problem, maybe has
> someone a solution for this issue.
>
>
>
> My Mapproxy yaml configuration:
>
>
>
> services:
>
>   wmts:
>
>     restful: true
>
>                # with or without both templates the same behavior
>
>     restful_template:
> '/{Layer}/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.{Format}'
>
>     restful_fi_template:
> '/{Layer}/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}/{I}/{J}.{Format}'
>
>     featureinfo_formats:
>
>       - mimetype: application/gml+xml; version=3.1
>
>         suffix: gml
>
>       - mimetype: text/html
>
>         suffix: html
>
>     kvp: true
>
>     md:
>
>       title: mytitle
>
>       access_constraints: "GeoNutzV"
>
>       fees: keine
>
>       contact:
>
>         organization: myorg
>
>         position: owner
>
>   wms:
>
>     srs:
> ['EPSG:4258','EPSG:4326','EPSG:31466','EPSG:31467','EPSG:31468','EPSG:31469','EPSG:25831','EPSG:25832','EPSG:25833']
>
>     image_formats: ['image/png', 'image/jpeg']
>
>     max_output_pixels: [5000, 5000]
>
>     md:
>
>       title: mytitle
>
>       fees: keine
>
>       contact:
>
>         organization: myorg
>
>         position: owner
>
>
>
> sources:
>
>   verkehrsweg_source:
>
>     type: wms
>
>     wms_opts:
>
>       featureinfo: true
>
>       version: 1.1.1
>
>       legendgraphic: true
>
>       legendurl: '
> 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
> '
>
>     supported_srs: ['EPSG:25832']
>
>     concurrent_requests: 4
>
>     ##seed_only: true
>
>     coverage:
>
>       bbox: [204485, 5204122, 1008600, 6134557]
>
>       srs: 'EPSG:25832'
>
>     req:
>
>       url:
> http://localhost/cgi-bin/mapserv64/mapserv.fcgi?map=c:/srv/mapfiles/verkehrswege.map
>
>       layers: Verkehrsweg
>
>       format: image/png
>
>
>
> in  Mapproxy generated Capabilities
> (localhost/mapproxy/wmts/1.0.0/WMTSCapabilities.xml):
>
> <Layer>
>
> <ows:Title>Verkehrsweg WMTS</ows:Title>
>
> <ows:Abstract/>
>
> <ows:WGS84BoundingBox>
>
> <ows:LowerCorner>4.347385126700914 46.79613836774577</ows:LowerCorner>
>
> <ows:UpperCorner>16.97871437496392 55.348256807378</ows:UpperCorner>
>
> </ows:WGS84BoundingBox>
>
> <ows:Identifier>verkehrsweg_wmts</ows:Identifier>
>
> <Style>
>
> <ows:Identifier>default</ows:Identifier>
>
> </Style>
>
> <Format>image/png</Format>
>
> <InfoFormat>text/html</InfoFormat>
>
> <TileMatrixSetLink>
>
> <TileMatrixSet>wmtsgrid</TileMatrixSet>
>
> </TileMatrixSetLink>
>
> <ResourceURL format="image/png" resourceType="tile" template="
> http://localhost/mapproxy/wmts/verkehrsweg_wmts/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}.png
> "/>
>
> <ResourceURL format="text/html" resourceType="FeatureInfo" template="
> http://localhost/mapproxy/wmts/verkehrsweg_wmts/{TileMatrixSet}/{TileMatrix}/{TileCol}/{TileRow}/{I}/{J}.html
> "/>
>
> </Layer>
>
>
>
> in the
> http://localhost/mapproxy/service?REQUEST=GetCapabilities&SERVICE=WMTS
>
> are no LegendURL or ResourceURL are generated
>
>
>
> Thanks in advance,
>
> Robert
>
>
>
>
>
>
> _______________________________________________
> MapProxy mailing list
> MapProxy at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/mapproxy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapproxy/attachments/20210130/f4512e9c/attachment.html>


More information about the MapProxy mailing list