Project: QGIS

Version: 3.10 LTR

Feature: New expression functions

  • attributes(): returns a map containing all attributes from a feature, with field names as map keys. We've got flexible, robust support for working with map values in expressions now, so this allows rapid conversion of all feature attributes to a map to use with these handy functions!
  • New optional "format" parameters were added to the to_date, to_datetime, and to_time functions
  • collect_geometries: this new function collects a set of geometries into a multi-part geometry object. Geometry parts can either be specified as separate arguments to the function or (more flexibly), as an array of geometry parts. This function allows geometries to be generated using iterator based approaches, such as transforming an array generated using generate_series, e.g: collect_geometries( array_foreach( generate_series( 0, 330, 30), project($geometry, .2, radians(@element)) ) ) Gives a nice radial effect of points surrounding the central feature point when used as a MultiPoint geometry generator

  • A new make_line expression function variant which accepts an array of points. This allows creation of lines from variable numbers of points, and from sequences from aggregates/dynamically generated sequences.