Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WMS GetFeatureInfo Filter: No results #17386

Closed
qgib opened this issue Sep 24, 2013 · 12 comments
Closed

WMS GetFeatureInfo Filter: No results #17386

qgib opened this issue Sep 24, 2013 · 12 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server

Comments

@qgib
Copy link
Contributor

qgib commented Sep 24, 2013

Author Name: Carl Defevere (Carl Defevere)
Original Redmine Issue: 8656
Affected QGIS version: master
Redmine category:qgis_server
Assignee: Alessandro Pasotti


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:
@


@


Related issue(s): #17551 (relates)
Redmine related issue(s): 8871


@qgib
Copy link
Contributor Author

qgib commented Sep 28, 2013

Author Name: Jukka Rahkonen (Jukka Rahkonen)


Where does the query come from? It is not a valid GetFeatureInfo query because it is missing BBOX, X and Y parameters.

-Jukka Rahkonen-

@qgib
Copy link
Contributor Author

qgib commented Sep 28, 2013

Author Name: Giovanni Manghi (@gioman)


  • status_id was changed from Open to Feedback

@qgib
Copy link
Contributor Author

qgib commented Sep 29, 2013

Author Name: Carl Defevere (Carl Defevere)


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'``

@qgib
Copy link
Contributor Author

qgib commented Sep 29, 2013

Author Name: Giovanni Manghi (@gioman)


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?

@qgib
Copy link
Contributor Author

qgib commented Sep 29, 2013

Author Name: Carl Defevere (Carl Defevere)


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 #16279

@qgib
Copy link
Contributor Author

qgib commented Oct 11, 2013

Author Name: Carl Defevere (Carl Defevere)


+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&amp;SERVICE=WFS&amp;VERSION=1.0.0&amp;REQUEST=DescribeFeatureType&amp;TYPENAME=Deelgemeenten&amp;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>

@qgib
Copy link
Contributor Author

qgib commented Apr 28, 2014

Author Name: mlennert - (mlennert -)


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

@qgib
Copy link
Contributor Author

qgib commented Jun 23, 2014

Author Name: Giovanni Manghi (@gioman)


  • version was changed from 2.0.1 to master
  • status_id was changed from Feedback to Open
  • fixed_version_id was configured as Version 2.4

@qgib
Copy link
Contributor Author

qgib commented Jun 28, 2014

Author Name: Jürgen Fischer (@jef-n)


  • fixed_version_id was changed from Version 2.4 to Future Release - High Priority

@qgib
Copy link
Contributor Author

qgib commented Aug 13, 2014

Author Name: Roberto Marzocchi (@rmarzocchi84)


perhaps correlated with bug report #16279?

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

@qgib
Copy link
Contributor Author

qgib commented May 19, 2016

Author Name: Alessandro Pasotti (@elpaso)


  • assigned_to_id was configured as Alessandro Pasotti

@qgib
Copy link
Contributor Author

qgib commented May 19, 2016

Author Name: Anónimo (Anónimo)


Fixed in changeset "b956874f02a9379b0a9503d6c25fe014dc41bd5a".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server labels May 24, 2019
@qgib qgib added this to the Future Release - High Priority milestone May 24, 2019
@qgib qgib closed this as completed May 24, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server
Projects
None yet
Development

No branches or pull requests

1 participant