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

GetFeatureInfo "Layer not found" error #25297

Closed
qgib opened this issue Nov 6, 2017 · 2 comments
Closed

GetFeatureInfo "Layer not found" error #25297

qgib opened this issue Nov 6, 2017 · 2 comments
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Server Related to QGIS server

Comments

@qgib
Copy link
Contributor

qgib commented Nov 6, 2017

Author Name: Éric Lemoine (@elemoine)
Original Redmine Issue: 17400
Affected QGIS version: master
Redmine category:qgis_server
Assignee: Paul Blottiere


QGIS Server returns "Layer not found" errors on GetFeatureInfo queries with out-of-scale layers.

This is the query:

http://197.157.195.138/qgis/cid?service=WMS&version=1.1.1&request=GetFeatureInfo&srs=EPSG:3857&info_format=text%2Fxml&x=51&y=51&exceptions=application%2Fjson&id=1509025731902&layers=Communes&query_layers=Communes&height=101&width=101&bbox=3282411.2320540333,-398477.5109080996,3310804.3310123663,-370084.4119497662&feature_count=10&FI_POINT_TOLERANCE=16&FI_LINE_TOLERANCE=8&FI_POLYGON_TOLERANCE=4

It has ```query_layers=Communes


The corresponding GetMap query works as expected:

http://197.157.195.138/qgis/cid?service=WMS&version=1.1.1&request=GetMap&srs=EPSG:3857&exceptions=application%2Fjson&id=1509025731902&layers=Communes&height=101&width=101&bbox=3282411.2320540333,-398477.5109080996,3310804.3310123663,-370084.4119497662


I've figured that the issue is related to the visibility of the layer. If the layer is scale-dependant and not visible at the current scale then QGIS Server returns a "Layer not found" error.

That behaviour is not correct. An empty response should be received instead of an error. It is a major bug!

@qgib
Copy link
Contributor Author

qgib commented Nov 7, 2017

Author Name: Paul Blottiere (Paul Blottiere)


  • assigned_to_id was configured as Paul Blottiere

@qgib
Copy link
Contributor Author

qgib commented Nov 10, 2017

Author Name: Paul Blottiere (Paul Blottiere)


Applied in changeset 39bce94.


  • done_ratio was changed from 0 to 100
  • status_id was changed from Open to Closed

@qgib qgib closed this as completed Nov 10, 2017
@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! High Priority Server Related to QGIS server labels May 25, 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! High Priority Server Related to QGIS server
Projects
None yet
Development

No branches or pull requests

1 participant