Allows direct construction of interval values from years/months/weeks/
days/hours/minutes/second values, without having to construct
a string representation of the interval first
These functions allow for direct creation of date/time values. Previously
this was only possible by going through the to_datetime/to_date/to_time
functions, which are string based and accordingly frustrating/inefficient
to use when you have numeric date/time component values.
* add expressions for min and max M and Z - including tests
* add my info to contributors.json
* Apply suggestions from code review
suggestions to help for expressions from Nyall
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
* Apply suggestions from code review
add suggestions to qgsexpressionfunction.cpp from Nyall
Co-Authored-By: Nyall Dawson <nyall.dawson@gmail.com>
* [feature][expressions] - fix expressions Z/M min and max
* [feature][expressions] - fix styling Z/M min and max expressions
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
To complete the existing function layer_property(...), this change add a new argument 'distance_units' for return a string with the layer distance units (see QgsUnitTypes::DistanceUnit)
This function can be used for display units for labels, in layouts or for access to more layer properties in the expression builder for algorithms.
By default, those expression use the application's locale. The addition of an optional
language parameter allows handling of dates that wouldn't match that default
locale (say for e.g. an English system running QGIS trying to transform a
French-formatted string into a date object).
Adds geom_from_wkb and geom_to_wkb, which mirror the existing
geom_from_wkt/geom_to_wkt functions but for WKB representations
of geometries.
Since QGIS 3.6 we've had good support for binary blob values in
expressions and field values, so adding these functions allows
users to work with binary blob fields containing WKB representations
of geometries (e.g. with a geometry generator showing the encoded
geometries)