Bug report #8727

GetProjectSettings returns field name instead of alias for display field

Added by Bernhard Ströbl about 11 years ago. Updated almost 11 years ago.

Status:Closed
Priority:Normal
Assignee:Marco Hugentobler
Category:QGIS Server
Affected QGIS version:2.0.1 Regression?:No
Operating System: Easy fix?:No
Pull Request or Patch supplied:No Resolution:
Crashes QGIS or corrupts data:No Copied to github as #:17443

Description

this would not be a problem but GetFeatureInfo returns the display field, thus QWC cannot display any hover information
except from GetProjectSettings:
<Layer displayField="adresse" queryable="1" visible="1">
<Name>Adressen</Name>
...
</Layer>

a GetFeatureInfo response on this layer shows:
<GetFeatureInfoResponse>
<Layer name="Adressen">
<Feature id="8052">
<Attribute value="Vor dem Neutor 7" name="Anschrift"/>

...
Anschrift has been defined as alias for the field adresse so GetFeatureInfo works as it should.

Associated revisions

Also available in: Atom PDF