330 Commits

Author SHA1 Message Date
nirvn
cbd3068443 [expression] Add optional language parameter to format_number() to control locale across different systems 2020-06-05 16:25:49 +07:00
Andrea Giudiceandrea
fd31c85f45 Fix order_by parameter in relation_aggregate function help 2020-06-01 10:05:19 +10:00
Etienne Trimaille
4587cc1484 review help about maptip and display_expression 2020-05-20 13:53:43 +10:00
Nyall Dawson
f49067cf27 Documentation improvements 2020-05-20 12:40:19 +10:00
Jan Caha
0b260248dc remove variableLenArguments from help 2020-05-20 12:40:19 +10:00
Jan Caha
988ac20647 [feature][expression] base64 to and from helps 2020-05-20 12:40:19 +10:00
Håvard Tveite
1ad63e931a
geom_to_wkb - update description 2020-05-18 07:52:59 +10:00
Nyall Dawson
da042bb61d [feature][expressions] New expression function "make_interval"
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
2020-05-09 20:22:52 +10:00
Nyall Dawson
c2715d7b44 [FEATURE][expressions] Add make_date, make_time and make_datetime functions
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.
2020-05-07 14:46:54 +10:00
Jan Caha
89fe6347ae
[feature] close_line expression function
Closes an open (multi)linestring geometry
2020-05-02 09:08:35 +10:00
Jan Caha
3656b101ee
Expressions for geometry Z and M minimum and maximum (#35928)
* 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>
2020-04-27 13:28:22 +02:00
Jan Caha
a2cbd9ceea add is_multipart expression 2020-04-22 05:26:54 +10:00
Jan Caha
d6829feffe
[FEATURE] ascii function for expressions
Returns the unicode code associated with the first character of a string
2020-04-20 09:28:57 +10:00
Julien Monticolo
df0f97524f
Expression builder : add layer_property(...,'distance_units')
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.
2020-04-07 09:20:38 +10:00
Matthias Kuhn
f08084b61b
Merge pull request #35415 from suricactus/expr_is_editable
FIX #33355  New Expression to check the edit mode of a layer
2020-03-29 08:42:06 +02:00
Ivan Ivanov
bcf0ef9b3d FIX #33355 New Expression to check the edit mode / state 2020-03-28 04:45:30 +02:00
Etienne Trimaille
e7556c4ea6 add maptip, expression display and eval_template expressions 2020-03-26 09:24:18 +10:00
Harrissou Sant-anna
375242cb18 Fix geom_from_gml example display 2020-03-09 07:30:55 +10:00
Alessandro Pasotti
3246a92db8
Merge pull request #34827 from elpaso/parent-form-current-value-2
[feature] Get current parent form values in child forms
2020-03-05 10:51:43 +01:00
Harrissou Sant-anna
ae45af58d6 Add details to project expression and fix example 2020-03-05 09:52:59 +10:00
Alessandro Pasotti
195efa42a1 Final touches to the parent form API 2020-03-04 08:52:52 +01:00
Raymond Nijssen
3f80823b34 fix for format_date() help text 2020-02-27 06:36:26 +10:00
lbartoletti
51ba7e8a89 Fix hash help
I realize that I didn't change it after our discussion on the PR https://github.com/qgis/QGIS/pull/31726.
2020-02-14 06:40:22 +10:00
Nyall Dawson
d8645f5285 Update rotate function help for optional center point 2020-01-02 14:45:06 +10:00
Raymond Nijssen
933f1cac72 [FEATURE] rotate() expression function
Allows rotation of geometries around a point
2020-01-02 14:45:06 +10:00
Alessandro Pasotti
b894cb7c2c User -> User expressions 2019-12-18 20:16:28 +01:00
Alessandro Pasotti
a8c0e4cbf6 User expressions followup
- renamed the group to "User"
- added help text for the group
- added QgsSettings Expressions namespace
- reworded tooltips for store/remove actions
2019-12-18 14:24:02 +01:00
signedav
4cbd9a1ee3
Merge pull request #33197 from signedav/searchtags_functions
Search tags on expression functions
2019-12-17 09:28:26 +00:00
Matthias Kuhn
98f8a89704
Merge pull request #33204 from olivierdalang/feature_random_seed_squashed
[FEATURE][expressions] allow to seed random functions
2019-12-17 07:31:26 +01:00
Matthias Kuhn
3b4437bcf8
Merge pull request #33333 from lbartoletti/expression-is_empty
Add expressions is_empty(geom)  is_empty_or_null(geom)
2019-12-16 08:06:58 +01:00
lbartoletti
c7fca820e5
Update resources/function_help/json/is_empty
Co-Authored-By: Matthias Kuhn <matthias@opengis.ch>
2019-12-16 06:32:23 +01:00
lbartoletti
c7bc3af96c add expression is_empty_or_null 2019-12-13 07:21:53 +01:00
lbartoletti
780d9e9fd7 fix and improve description 2019-12-13 07:21:33 +01:00
lbartoletti
6c49ada54e fix function_help 2 2019-12-12 16:16:42 +01:00
lbartoletti
2491284596 fix function_help 2019-12-11 13:54:23 +01:00
lbartoletti
23c9a61a99 Add expression is_empty(geom) 2019-12-11 12:07:07 +01:00
David Signer
5409bd4cb4 fix spelling 2019-12-04 16:31:38 +01:00
David Signer
314e2339eb write tags to the expression functions help object 2019-12-03 15:29:16 +01:00
olivierdalang
65fed42213 [FEATURE][expressions] allow to seed random functions
useful to get deterministic random values
2019-12-03 13:35:27 +01:00
Nyall Dawson
8b968cf2f5 Add missing documentation for geom_to_wkt precision argument 2019-11-26 03:58:51 +10:00
Nyall Dawson
37f2d2d8ae Fix function help for project function
Fixes #33035
2019-11-26 03:58:51 +10:00
Matthias Kuhn
63911c1d01
Merge pull request #32551 from rduivenvoorde/from_epoch
[FEATURE] Add datetime_from_epoch (MSec from epoch) expression function
2019-11-22 11:09:37 +01:00
nirvn
617955ac1e [expression] Language support for format_date() and to_{date,datetime,time}()
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).
2019-11-18 12:13:47 +07:00
Pete King
0e7edd5588 [feature] is_valid expression
Returns true if a geometry is considered valid according to the OGC validity rules
2019-11-18 02:31:48 +10:00
Nyall Dawson
fed75afa95 [FEATURE] Add expression functions for converting to/from wkb
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)
2019-11-04 13:00:11 +10:00
Richard Duivenvoorde
f67fe846da Rename to 'DateTimeFromEpoch' and add 2 extra tests 2019-11-01 21:44:58 +01:00
Richard Duivenvoorde
ae0f8ffe8c
Update resources/function_help/json/from_epoch
Co-Authored-By: Étienne Trimaille <gustrimaille@yahoo.fr>
2019-10-31 19:59:56 +01:00
Richard Duivenvoorde
8f9d493cc2 Add from_epoch (MSec from epoch) expression function 2019-10-31 15:59:07 +01:00
Juergen E. Fischer
b81d306047 spelling fixes (closes #32408) 2019-10-26 10:50:30 +10:00
lbartoletti
3b9c240ba7 rewrite functions. Only hash(string, method), md5(string) and sha256(string) are available now 2019-10-26 08:32:26 +10:00