[MapProxy] Two GetFeatureInfo issues

Anne Blankert anne.blankert at geodan.nl
Fri Oct 1 12:53:31 EDT 2010


 Hello List,

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.

However, I am currently running into some problems using this feature:

1. For some reason MapProxy wants the WMS GetFeatureInfo client to
provide some extra WMT parameters?
When sending a GetFeatureInfo request like:
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

The response is:|
<WMTException version="1.0.0">missing parameters|| ['wmtver', 'styles',
'format']</WMTException>

If I am correct these parameters are not normally required for WMS
GetFeatureInfo requests?

If I send the above request directly to the original WMS server:
http://|webservice.nieuwekaart.nl/cgi-bin/nkn|?&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

I am getting the feature information as expected.

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.

Anne


|
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapproxy/attachments/20101001/41d1f55f/attachment.html


More information about the MapProxy mailing list