-
Notifications
You must be signed in to change notification settings - Fork 87
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
Support of WFS attributes aliases #3191
Conversation
d93b471 adds attributes aliases to the query results. Problem: original attributes are not removed: How could we remove the original attributes? By creating new features instead of editing the existing one? Another approach: directly filtering when passing the features to the querywindow partial: ngeo/contribs/gmf/src/directives/displayquerywindow.js Lines 450 to 455 in 9da48f8
like in ngeo/src/services/featurehelper.js Lines 612 to 618 in 7076508
Problem: the list of alias is stored in the dataSource objects and not sure it is available here.
|
Thanks to @llienher I have been able to fix the issue reported at #3191 (comment) => aliases are now correctly handled when performing a WFS GetFeature request on a layer available in the application's themes. I am now investigating the case of external layers added through the "import layer" tool (available in the "desktop_alt" app). As for now I have figured out that:
|
After more investigations about supporting aliases in external layers, I see several problems:
Perhaps we could give up the support of aliases for external layers? At least in a first version of the tool. |
Some WFS backends such as QGIS Server may provide
alias
attributes for results of WFS requests. They are made available through a WFS DescribeFeatureType request. For instance:This PR aims to display those aliases if any in the query results window. See https://jira.camptocamp.com/browse/GEORD-21
Still to do:
support layers added using the WMS browsergmf.WFSAliases
service really deserves a distinct service or if it can be moved for instance togmf.datasource.DataSourcesManager
make sure WMS GFI are supported