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 client : add the Feature_Count param in the GetFeatureInfo request #15405

Closed
qgib opened this issue Jul 12, 2012 · 2 comments
Closed

WMS client : add the Feature_Count param in the GetFeatureInfo request #15405

qgib opened this issue Jul 12, 2012 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers

Comments

@qgib
Copy link
Contributor

qgib commented Jul 12, 2012

Author Name: aperi2007 - (aperi2007 -)
Original Redmine Issue: 6030
Affected QGIS version: master
Redmine category:web_services_clients/wms


Hi, I notice the qgis when do an identify on a LayerWMS,
it will return always one only feature also when there is more than one feature on the point clicked.

I found the reason is on the miss of a parameter.
Infact the WMS specs extablish that the max number of feature the WMS will return from a GetFeatureInfo is given from the
FEATURE_COUNT parameter. If that parameter is missing in the request is assumed it is 1.
So the wms return always one feature.

I guess should be better that qgis will insert always a parameter FEATURE_COUNT=10
(I guess 10 feature overlapping are sufficient for all the situations).

An exmaple of request with feature_count is this:

[http://web.regione.toscana.it/wmsraster/com.rt.wms.RTmap/wms?map=wmscastore&language=ita&SERVICE=WMS&VERSION=1.3.0&REQUEST=GetFeatureInfo&BBOX=632180.3356719792354852,4796080.1425704099237919,632257.8389933158177882,4796138.3034105179831386&CRS=EPSG:25832&WIDTH=581&HEIGHT=437&LAYERS=r_toscan_cst_delimitazione_fogli&STYLES=&FORMAT=image/png&QUERY_LAYERS=r_toscan_cst_delimitazione_fogli&FEATURE_COUNT=10&INFO_FORMAT=text/html&I=240&J=200]

@qgib
Copy link
Contributor Author

qgib commented Jul 12, 2012

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


Already implemented in 7f3d79a. The number of features can be specified in the WMS dialog.


  • resolution was changed from to worksforme
  • status_id was changed from Open to Closed

@qgib
Copy link
Contributor Author

qgib commented Jul 12, 2012

Author Name: aperi2007 - (aperi2007 -)


Great !

But I guess should better set the
feature_limit to a number gret then zero.

Infact very often the user need to know all the feature in a point.
Very few time the user need to know only one.
Expecially because the WMS send the first it find not the top-most.
So the user could have a wrong perception of the dataset if it see only one feature.

Instead setting it to a value bigger then 0 for example 10 or 100 (why not?)
is better because if there is only one feature the response is the same otherwise the user will have all the feature available.
If the user like to have only one (randomic) feature of that availables it could reduce it the value from 100 to 1 or 0 (0 mean 1 for wms here).

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Data Provider Related to specific vector, raster or mesh data providers labels May 24, 2019
@qgib qgib closed this as completed May 24, 2019
JamesShaeffer pushed a commit to JamesShaeffer/QGIS that referenced this issue Nov 20, 2019
…fields when output driver doesn't support Integer64

Fix qgis#15405
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! Data Provider Related to specific vector, raster or mesh data providers
Projects
None yet
Development

No branches or pull requests

1 participant