Bug report #7135

QGIS on getFeatureInfo wrong GML request

Added by aperi2007 - over 11 years ago. Updated over 11 years ago.

Category:Web Services clients/WMS
Affected QGIS version:master Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:invalid
Crashes QGIS or corrupts data:No Copied to github as #:16202



qgis-dev is doing a wrong GML request on GetFeatureInfo.

I see the request is doing qgis is this:


But it is wrong because it is doing the request in EPSG:4326 instead of the actual EPSG used in the canvas.
This cause the return of a GML in a wrong reference system (4326). Wrong because it is not in the right wanted reference system.

Also another error is that the request is do setting:


instead it should write:

changing from

will return a working GML response.

But of course in the wrong epsg reference system.
Because qgis will request only in epsg:4326.


#1 Updated by aperi2007 - over 11 years ago

I check the GetCapabilities.

It report this availables formats.


The right format for a compatible GML response is "text/gml"
Instead actually qgis-dev is using the "ogr/gml".

Is better thaat qgis will use the text/gml to have a response compatible with that of others server GML.

#2 Updated by aperi2007 - over 11 years ago

  • Category set to Web Services clients/WMS

Also the request should do on the same reference system of the canvas not always in the epsg:4326.

#3 Updated by aperi2007 - over 11 years ago

  • Resolution set to invalid

I remove the "ogr/gml" format from the server settings.

Now the GetCapabilities will give this options:


So I retry the identify with QGIS-dev.

It still do nothing.

The log will report that the qgis-dev has send this request:


If I try the same request on a firefox browser I can see that the wms server response is a correct GML style.

I don't know why the qgis-dev is still not understanding the GML response, but otherwise now the wms server is responding correctly.

So I close this ticket.

#4 Updated by Jürgen Fischer over 11 years ago

  • Status changed from Open to Closed

Also available in: Atom PDF