From KulawikR at eba.bund.de Thu Jan 28 03:47:37 2021 From: KulawikR at eba.bund.de (Kulawik, Robert) Date: Thu, 28 Jan 2021 11:47:37 +0000 Subject: [MapProxy] Mapproxy 1.12 issue restful requests (GFI) Message-ID: <43a1f06453b9465eb673b414e43711b7@eba.bund.de> 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. 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 - - missing parameters ['format'] 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): Verkehrsweg WMTS 4.347385126700914 46.79613836774577 16.97871437496392 55.348256807378 verkehrsweg_wmts image/png text/html wmtsgrid in the http://localhost/mapproxy/service?REQUEST=GetCapabilities&SERVICE=WMTS are no LegendURL or ResourceURL are generated Thanks in advance, Robert -------------- next part -------------- An HTML attachment was scrubbed... URL: From traviskirstine at gmail.com Sat Jan 30 07:42:09 2021 From: traviskirstine at gmail.com (Travis Kirstine) Date: Sat, 30 Jan 2021 10:42:09 -0500 Subject: [MapProxy] Mapproxy 1.12 issue restful requests (GFI) In-Reply-To: <43a1f06453b9465eb673b414e43711b7@eba.bund.de> References: <43a1f06453b9465eb673b414e43711b7@eba.bund.de> Message-ID: 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 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. > > > > > > 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 > > > > - version="1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:ows="http://www.opengis.net/ows/1.1"> > > - > > missing parameters ['format'] > > > > > > > > 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): > > > > Verkehrsweg WMTS > > > > > > 4.347385126700914 46.79613836774577 > > 16.97871437496392 55.348256807378 > > > > verkehrsweg_wmts > > > > image/png > > text/html > > > > wmtsgrid > > > > > > > > > > > > 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: