During rendering, new variables will be available:
@geometry_part_count
: The part count of the currently rendered geometry (interesting for multi-part features)@geometry_part_num
: 1-based index of the currently rendered geometry partThese are useful to apply different styles to different parts of multipart features:
@map_extent_width
: The width of the currently rendered map in map units@map_extent_height
: The height of the currently rendered map in map units@map_extent_center
: The center point of the currently rendered map in map unitsVariables relating to the operating system environment have also been added:
@qgis_os_name
: eg 'Linux','Windows' or 'OSX'@qgis_platform
: eg 'Desktop' or 'Server'@user_account_name
: current user's operating system account name@user_full_name
: current user's name from operating system account (if available)This feature was funded by Andreas Neumann (the OS and user related variables)
This feature was developed by Nyall Dawson, Matthias Kuhn