Project: QGIS

Version: 3.24

Feature: represent_attributes function

This new function returns a map with all attribute (field) names as the keys and the configured representation values as values. The representation value for the attributes depends on the configured widget type for each attribute.

The function can be used with zero, one, or more arguments:

  • If called with no parameters, the function will return the representation of the attributes of the current feature in the current layer.
  • If called with a 'feature' parameter only, the function will return the representation of the attributes of the specified feature from the current layer.
  • If called with a 'layer' and a 'feature' parameter, the function will return the representation of the attributes of the specified feature from the specified layer.

This feature was funded by Kanton Solothurn

This feature was developed by Alessandro Pasotti