-
-
Notifications
You must be signed in to change notification settings - Fork 104
Fixed empty GFI response on a FeatureType with multiple geometry columns #1913
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
Conversation
|
The fix was successfully tested on a local environment! |
|
@julianzz98 How does the GFI request/response changes when the tunable |
|
We discussed this PR in yesterday's TMC meeting, and from the currently supplied information in this PR, the following questions arose:
To go into detail about the security implications here, as discussed in the TMC meeting, it is unclear if the additional filter will widen or narrow the feature requested from the feature store (are more features returned, or are only the same features returned and correctly selected for rendering)?. With the current supplied information, this question could not be answered. So in my understanding, a WMS GetFeatureInfo should request the same features as a WMS GetMap would do and then filter out the features requested by the GetFeatureInfo click position. So one way to better understand the implications of this PR would be to document the SQL before and after applying this PR to see if there are security implications. (Maybe also with and without the tunable of #1732, if this changes the behavior.) |
|
SQL of a GetMap request (no changes with this PR): SQL of a GetFeatureInfo request, before the fix: SQL of a GetFeatureInfo request, after the fix: The main difference is the geometry column used in the WHERE clause. Before it was the first in the SQLFeatureStore ( IMHO we can label this PR as a bug fix. Now the same geometry column is used for the GetFeatureInfo request as for the GetMap request. Before it could happen, that the GetFeatureInfo response contained features not shown in the click position of the map. As the geometry column is already selected before the SQL is created, the PR #1732 does not apply. This could be the case only if there is no style definition for the requested layer. We did not test this scenario with #1732. I propose to create a new ticket to test the tunable |
|
Thank you for your contribution. Your pull requests has been accepted by the TMC. Please find more information in the meeting chat available at https://github.com/deegree/deegree3/wiki/tmc-meeting-minutes-20260128. @tfr42 A note shall be added to the release notes. |
Currently a GetFetureInfo requests based on FeatureLayer uses the first geometry column, to match the requested click point. This geometry may differ from the geometry used to render the GetMap request or may be empty,
This PR fixes this by using the same geometry property for GetFeatureInfo requests from the style as the GetMap request.
Fixes #1640.