Bug report #1903

Wrong query to WMS (WMS.GetFeatureInfo)

Added by Alexander Bruy about 11 years ago. Updated about 11 years ago.

Status:Closed
Priority:Low
Assignee:Marco Hugentobler
Category:Web Services clients/WMS
Affected QGIS version: Regression?:No
Operating System:All Easy fix?:No
Pull Request or Patch supplied: Resolution:fixed
Crashes QGIS or corrupts data: Copied to github as #:11963

Description

Seems that QGIS send wrong query to WMS when used Identify tool. Error message

Результат WMS-определения для 258, 213
---------------
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE [[ServiceExceptionReport]] SYSTEM "http://schemas.opengis.net/wms/1.1.1
/WMS_exception_1_1_1.dtd"> <ServiceExceptionReport version="1.1.1" >   <ServiceException>
      java.lang.NullPointerException
null
</ServiceException></ServiceExceptionReport>

When we look at query:
http://gis.gis-lab.info:8080/geoserver/wms
    ?SERVICE=WMS&SERVICE=WMS
    &VERSION=1.1.1&REQUEST=GetFeatureInfo
    &BBOX=77.305313,49.465485,89.865570,55.358971
    &SRS=EPSG:4326&WIDTH=500&HEIGHT=235
    &LAYERS=geosample%3Aoopt&STYLES=
    &FORMAT=image/gif&TRANSPARENT=TRUE
    &QUERY_LAYERS=geosample174Aoopt
    &INFO_FORMAT=text/plain&X=458&Y=174

In line QUERY_LAYERS instead of 174A must be semicolon (:*). Also there is duplicated *SERVICE=WMS

Discussion is Russian on GIS-Lab: http://gis-lab.info/forum/viewtopic.php?f=14&t=3838 (several last posts)

Tested on QGIS 1.2 (svn 11481M) and QGIS 1.3 (svn 11496, 11518M)

Associated revisions

Revision 11119f36
Added by Jürgen Fischer about 11 years ago

- fix #1903
- handle feature info results as utf-8
- fix crash with open identify results, when layer is removed

git-svn-id: http://svn.osgeo.org/qgis/trunk/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

Revision 4702b90a
Added by Jürgen Fischer about 11 years ago

- fix #1903
- handle feature info results as utf-8
- fix crash with open identify results, when layer is removed

git-svn-id: http://svn.osgeo.org/qgis/[email protected] c8812cc2-4d05-0410-92ff-de0c093fc19c

History

#1 Updated by Jürgen Fischer about 11 years ago

  • Resolution set to fixed
  • Status changed from Open to Closed

Replying to alexbruy:

In line QUERY_LAYERS instead of 174A must be semicolon (:*). Also there is duplicated *SERVICE=WMS

Fixed in 4702b90a (SVN r11523)

<pre>

- the WMS provider now also treats the WMS response a UTF-8.  That should be harmless when it's plain ascii and helps in your case.  I now get:

<pre>
WMS identify result for 375, 289:
---------------
Results for [[FeatureType]] 'veg':
--------------------------------------------
the_geom = [GEOMETRY (MultiPolygon) with 6832 points]
TYPE = ЛУГОВЫЕ СТЕПИ И ОСТЕПНЕННЫЕ ЛУГА
SUBTYPE = Разнотравно-злаковые и злаиово-разнотравные мезофитное и ксеромезофитное разнотр
--------------------------------------------
</pre>

Whatever that means ;)

Also available in: Atom PDF