224 Commits

Author SHA1 Message Date
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
lbartoletti
ba7770c7cc fix build 2019-10-26 08:32:26 +10:00
lbartoletti
910c3c478e add help files 2019-10-26 08:32:26 +10:00
Richard Duivenvoorde
5f24a0b214 Change help answer to what is actually shown in the preview 2019-10-14 09:35:22 +10:00
Harrissou Sant-anna
575ecffe30 Add "concatenate_unique" as aggregate parameter
to relation_aggregate function
2019-10-03 13:28:36 +10:00
Harrissou Sant-anna
ef11da6359 Add "concatenate_unique" and "array_agg" as aggregate parameter
of aggregate function
2019-10-03 13:28:36 +10:00
Harrissou Sant-anna
f75a0cc4da Various fixes on date functions help
including replacement of todate and tointerval, use of third person
conjugation and addition/fix of examples
2019-09-27 17:44:11 +10:00
Nyall Dawson
80d77b4788 [FEATURE] Add make_line expression function variant which accepts
an array of points

Allows creation of lines from variable numbers of points, and
from sequences from aggregates/dynamically generated sequences

Fixes #31268
2019-08-29 19:33:43 +10:00
Nyall Dawson
36173d7c40 [FEATURE] New expression function "collect_geometries"
Collects a set of geometries into a multi-part geometry object.
Geometry parts can either be specified as seperate arguments to the
function, or (more flexibly), as an array of geometry parts.

This 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
2019-08-29 19:33:43 +10:00
Harrissou Sant-anna
bb8b1dd403 Fix typo 2019-08-26 08:45:54 +10:00
nirvn
3e2179e147 [expression] Update the format_date function help hyperlink to point to qt5 doc 2019-08-14 12:54:46 +07:00
nirvn
b58a2a6c21 [FEATURE][expression] Optional format parameter for to_date, to_datetime, to_time functions 2019-08-14 12:54:46 +07:00
Nyall Dawson
018ca7c447 [FEATURE] New expression function "attributes"
Returns a map containing all attributes from a feature, with field
names as map keys. We've got featureful, robust support for working
with maps in expressions now, so this allows rapid conversion
of all feature attributes to a map to use with these handy
functions.
2019-06-28 13:14:17 +10:00
David Signer
f8d1a02ea7 mentioning array_agg in relation_aggregate 2019-05-28 06:16:22 +10:00
Nyall Dawson
e5ab06fffa Add missing function group help 2019-05-22 03:45:00 +10:00
Nyall Dawson
2e5257372b [FEATURE] Add order by support to expression aggregate and concatenation functions
Because certain aggregates and concatenation requires results in
a certain order, this change allows specific control of the order
features are added to the aggregate during an expression evaluation.

E.g.

concatenate("Station",concatenator:=',', order_by:="Station")

will give a comma separated list of station names in alphabetical
order, rather than layer feature order.

Sponsored by SMEC/SJ
2019-05-10 06:23:56 +10:00
Nyall Dawson
5a088bfa2b Fix expression function examples 2019-04-28 15:47:35 +10:00
Nyall Dawson
762b2a423b [FEATURE] Expression functions which return file info
base_file_name: Returns the base name of the file without the directory or file suffix.
file_exists: Returns true if a file exists
file_name: Returns the file name from a full path
file_path: Returns the directory/path from a full file path
file_size: Returns a file size
file_suffix: Returns a files suffix/extension
is_directory: Returns true if a file path is a directory
is_file: Returns true if a file path is a file
2019-04-27 17:24:37 +10:00
nirvn
2582399ab5 [FEATURE][expression] New array_all() function to check whether
an array contains _all_ values of another given array.
2019-04-09 11:44:00 +07:00