Bug report #8656
WMS GetFeatureInfo Filter: No results
Status: | Closed | ||
---|---|---|---|
Priority: | Normal | ||
Assignee: | Alessandro Pasotti | ||
Category: | QGIS Server | ||
Affected QGIS version: | master | Regression?: | No |
Operating System: | Easy fix?: | No | |
Pull Request or Patch supplied: | No | Resolution: | |
Crashes QGIS or corrupts data: | No | Copied to github as #: | 17386 |
Description
My WMS GetFeatureInfo Filter (QGis Server 2.0.1) returns no results while there should be.
(The Identify GetFeatureInfo and the GetMap Filter works fine.)
URL: http://localhost/wms/consultatie?&_dc=1379946073184&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=Layername&QUERY_LAYERS=Layername&FEATURE_COUNT=10&INFO_FORMAT=text%2Fxml&SRS=EPSG%3A31370&FILTER=Layername%3A%22ID%22%20%3D%20%271%27
Response:<GetFeatureInfoResponse>
<BoundingBox CRS="EPSG:31370" maxx="0" minx="0" maxy="0" miny="0"/>
<Layer name="Layername"/>
</GetFeatureInfoResponse>
Related issues
Associated revisions
[server][bugfix] FILTER GetFeatureInfo working again
Fixes #8656
[server][bugfix] FILTER GetFeatureInfo working again
Fixes #8656
History
#1 Updated by Jukka Rahkonen about 11 years ago
Where does the query come from? It is not a valid GetFeatureInfo query because it is missing BBOX, X and Y parameters.
Jukka Rahkonen
#2 Updated by Giovanni Manghi about 11 years ago
- Status changed from Open to Feedback
#3 Updated by Carl Defevere about 11 years ago
The query is generated by pressing the 'Search'-button in the QGIS Web Client.
It used to work in the 1.8 version.
And the query seems correct according to https://github.com/qgis/qgis-web-client :
Request URL: When performing a search query using the above configuration, the following get request will be made. ``http://localhost/wms/helloworld?SERVICE=WMS&VERSION=1.1.1& REQUEST=GetFeatureInfo&LAYERS=Country&QUERY_LAYERS=Country& FEATURE_COUNT=10&INFO_FORMAT=text/xml&SRS=EPSG:4326& FILTER=Country:"name"+=+'africa'``
#4 Updated by Giovanni Manghi about 11 years ago
Carl Defevere wrote:
The query is generated by pressing the 'Search'-button in the QGIS Web Client.
It used to work in the 1.8 version.
And the query seems correct according to https://github.com/qgis/qgis-web-client :
[...]
So maybe something changed in qgis server and qgis web client wasn't updated accordingly?
#5 Updated by Carl Defevere about 11 years ago
I don't think it's a QGis Web Client problem. Browsing the wms-url without using the web client doesn't return results either.
Maybe it's similar with #7258
#6 Updated by Carl Defevere about 11 years ago
WMS GetFeatureInfo, using Identify-tool
Request URL:
http://localhost/wms/publiek/raadpleging?SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&BBOX=53917.490672%2C202904.710821%2C73594.356343%2C208748.460821&FEATURE_COUNT=10&HEIGHT=335&WIDTH=1128&FORMAT=image%2Fjpeg&INFO_FORMAT=text%2Fxml&SRS=EPSG%3A31370&X=345&Y=297&QUERY_LAYERS=Deelgemeenten
Response (Works fine):
<GetFeatureInfoResponse> <Layer name="Deelgemeenten"> <Feature id="0"> <Attribute value="31001" name="CADIKEY"/> <Attribute value="21801.1026993" name="Shape_Leng"/> <Attribute value="21696901.0521" name="Shape_Area"/> <Attribute value="31040" name="ADMUKEY"/> <Attribute value="ZEDELGEM 4 AFD/AARTRIJKE/" name="CADINA"/> <Attribute value="POLYGON((60530.17100000000209548...))" type="derived" name="geometry"/> </Feature> </Layer> <Layer name="Adresposities"/> </GetFeatureInfoResponse>
WFS GetFeature
Request URL:
http://localhost/wms/publiek/raadpleging?SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&TYPENAME=Deelgemeenten&SRSNAME=EPSG:31370&FILTER=%3CFilter%3E%3CPropertyIsEqualTo%3E%3CPropertyName%3ECADIKEY%3C/PropertyName%3E%3CLiteral%3E31040%3C/Literal%3E%3C/PropertyIsEqualTo%3E%3C/Filter%3E
Response (Works fine):
<wfs:FeatureCollection xmlns:wfs="http://www.opengis.net/wfs" xmlns:ogc="http://www.opengis.net/ogc" xmlns:gml="http://www.opengis.net/gml" xmlns:ows="http://www.opengis.net/ows" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:qgs="http://www.qgis.org/gml" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.opengis.net/wfs http://schemas.opengis.net/wfs/1.0.0/wfs.xsd http://www.qgis.org/gml http://localhost/wms/publiek/raadpleging?SRSNAME=EPSG:31370&SERVICE=WFS&VERSION=1.0.0&REQUEST=DescribeFeatureType&TYPENAME=Deelgemeenten&OUTPUTFORMAT=XMLSCHEMA"><gml:boundedBy> <gml:Box srsName="EPSG:31370"> ... ... <qgs:CADIKEY>31040</qgs:CADIKEY> <qgs:Shape_Leng>18611.272083</qgs:Shape_Leng> <qgs:Shape_Area>15332522.7121</qgs:Shape_Area> <qgs:ADMUKEY>31040</qgs:ADMUKEY> <qgs:CADINA>ZEDELGEM 1 AFD/ZEDELGEM/</qgs:CADINA> </qgs:Deelgemeenten> </gml:featureMember> </wfs:FeatureCollection>
WMS GetFeatureInfo, using FILTER
Request URL:
http://localhost/wms/publiek/raadpleging?&_dc=1379946073184&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetFeatureInfo&LAYERS=Deelgemeenten&QUERY_LAYERS=Deelgemeenten&FEATURE_COUNT=10&INFO_FORMAT=text%2Fxml&SRS=EPSG%3A31370&FILTER=Deelgemeenten:"CADIKEY" = '31040'
Response (Doesn't work):
<GetFeatureInfoResponse> <BoundingBox CRS="EPSG:31370" maxx="0" minx="0" maxy="0" miny="0"/> <Layer name="Deelgemeenten"/> </GetFeatureInfoResponse>
#7 Updated by mlennert - over 10 years ago
I can confirm Carl's experience:
Using Debian package qgis-mapserver 2.2.0-1, I get a response for a getfeatureinfo request on a wms layer when using specific coordinates (x,y), but I get no result when I launch a getfeatureinfo request with the filter parameter.
Moritz
#8 Updated by Giovanni Manghi over 10 years ago
- Affected QGIS version changed from 2.0.1 to master
- Status changed from Feedback to Open
- Target version set to Version 2.4
#9 Updated by Jürgen Fischer over 10 years ago
- Target version changed from Version 2.4 to Future Release - High Priority
#10 Updated by Roberto Marzocchi about 10 years ago
perhaps correlated with bug report #7258?
mlennert - wrote:
I can confirm Carl's experience:
Using Debian package qgis-mapserver 2.2.0-1, I get a response for a getfeatureinfo request on a wms layer when using specific coordinates (x,y), but I get no result when I launch a getfeatureinfo request with the filter parameter.
Moritz
#11 Updated by Alessandro Pasotti over 8 years ago
- Assignee set to Alessandro Pasotti
#12 Updated by Anonymous over 8 years ago
- Status changed from Open to Closed
Fixed in changeset b956874f02a9379b0a9503d6c25fe014dc41bd5a.