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

[server][wms] Add displayName to GFI JSON response #60343

Merged

Conversation

elpaso
Copy link
Contributor

@elpaso elpaso commented Jan 29, 2025

In the gray zone between a feature and a bugfix...

Fixes #59353

In the gray zone between a feature and a bugfix...

Fixes qgis#59353
@elpaso elpaso added Bug Either a bug report, or a bug fix. Let's hope for the latter! Server Related to QGIS server labels Jan 29, 2025
@github-actions github-actions bot added this to the 3.42.0 milestone Jan 29, 2025
Copy link

github-actions bot commented Jan 29, 2025

🪟 Windows builds

Download Windows builds of this PR for testing.
Debug symbols for this build are available here.
(Built from commit c4c27c6)

🪟 Windows Qt6 builds

Download Windows Qt6 builds of this PR for testing.
(Built from commit c4c27c6)

break;
}
}
fidDisplayNameMap.insert( feature.id(), displayName );
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible that for a given feature displayName wouldn't be set ? If so, would we report an empty string, or nothing ? Not sure what is the desired behavior, and if that matters...

Besides that, LGTM

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's possible even if probably rare, the display name comes from the evaluation of an user-defined expression.

@rouault rouault merged commit de18045 into qgis:master Jan 29, 2025
43 checks passed
@elpaso elpaso deleted the bugfix-gh59353-server-gfy-display_name-for-json branch January 30, 2025 09:57
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

Successfully merging this pull request may close these issues.

QGIS Server OGC: Display name is not provided in GetFeatureInfo json/gml response
2 participants