<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#ffffff" text="#000000">
Hello List,<br>
<br>
Another very nice feature of MapProxy is that it also proxies
GetFeatureInfo requests. This may come in very handy for
applications where you can only enter the URL of a WMS service. Now
if you type the URL of MapProxy, the application will ask the
capabilities from MapProxy and you can configure MapProxy to answer
that it also supports GetFeatureInfo requests.<br>
<br>
However, I am currently running into some problems using this
feature:<br>
<br>
1. For some reason MapProxy wants the WMS GetFeatureInfo client to
provide some extra WMT parameters?<br>
When sending a GetFeatureInfo request like:<br>
<a class="moz-txt-link-freetext" href="http://192.168.25.189:8080/service?&SERVICE=wms&VERSION=1.1.0&REQUEST=GetFeatureInfo&EXCEPTIONS=application/vnd.ogc.se_xml&SRS=EPSG:900913&BBOX=515852.005913,6855223.828258,563395.837497,6885492.891453&X=205&Y=223&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=dnk&LAYERS=dnk&WIDTH=622&HEIGHT=396">http://192.168.25.189:8080/service?&SERVICE=wms&VERSION=1.1.0&REQUEST=GetFeatureInfo&EXCEPTIONS=application/vnd.ogc.se_xml&SRS=EPSG:900913&BBOX=515852.005913,6855223.828258,563395.837497,6885492.891453&X=205&Y=223&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=dnk&LAYERS=dnk&WIDTH=622&HEIGHT=396</a><br>
<br>
The response is:<code class="wrappedText focusRow" role="listitem"><br>
<WMTException version="1.0.0">missing parameters</code><code
class="wrappedText focusRow" role="listitem"> ['wmtver', 'styles',
'format']</WMTException> <br>
<br>
If I am correct these parameters are not normally required for WMS
GetFeatureInfo requests?<br>
<br>
If I send the above request directly to the original WMS server:<br>
<a class="moz-txt-link-freetext" href="http://">http://</a></code>webservice.nieuwekaart.nl/cgi-bin/nkn<code
class="wrappedText focusRow" role="listitem">?&SERVICE=wms&VERSION=1.1.0&REQUEST=GetFeatureInfo&EXCEPTIONS=application/vnd.ogc.se_xml&SRS=EPSG:900913&BBOX=515852.005913,6855223.828258,563395.837497,6885492.891453&X=205&Y=223&INFO_FORMAT=application/vnd.ogc.gml&FEATURE_COUNT=1&QUERY_LAYERS=nieuwekaart&LAYERS=nieuwekaart&WIDTH=622&HEIGHT=396<br>
<br>
I am getting the feature information as expected.<br>
<br>
2. If the remote WMS webservice uses an other projection than the
MapProxy client, the MapProxy GetFeatureInfo request sends the
BBOX parameters of the client projection instead of the remote
projection to the remote server. The BBOX parameter probably
should be reprojected from client to remote projection. I am not
sure if the x, y, width and height parameters should be changed
because of the re-projection.<br>
<br>
Anne<br>
<br>
<br>
</code><br>
</body>
</html>