530 Commits

Author SHA1 Message Date
Damiano
951aa5a7a1 array_mode renamed back to array_majority
See https://github.com/qgis/QGIS/pull/41364#issuecomment-773877724
2021-02-09 14:20:14 +01:00
Damiano Lombardi
034ace4ba3 Corrected spelling 2021-02-04 19:24:49 +01:00
Damiano
a9edb93e0c array_mode new parameter merge
- array_mode new parameter merge for return value behaviour
- updated expression documentation for array_mode, majority and minority
- updated tests
2021-02-04 16:41:16 +01:00
Damiano
7345c128ed Fix arrax mode/majority confusion
https://github.com/qgis/QGIS/pull/40364#issuecomment-752096652
Refences #33302
2021-02-04 10:06:21 +01:00
Harrissou Sant-anna
e127a62bf6 Fix longest_common_substring function help 2021-01-29 04:27:38 +10:00
Nyall Dawson
bbb4334c4b Update references to compositions in expression function help 2021-01-10 12:42:14 +10:00
Nyall Dawson
88a0a8eb66 [feature][layouts] Add map_credits function
This function collates a list of all the layer metadata attribution
strings for the layers shown inside a specified map item.

For example:

  array_to_string( map_credits( 'Main Map' ) )

Returns a comma separated list of layer credits for layers shown in the
'Main Map' layout item, e.g 'CC-BY-NC, CC-BY-SA'

There's an optional include_layer_names argument you can use
to include layer names before their attribution:

  array_to_string( map_credits( 'Main Map',
     include_layer_names := true,
     layer_name_separator := ': ' ) )

Returns a comma separated list of layer names and their credits for layers
shown in the 'Main Map' layout item,
e.g. 'Railway lines: CC-BY-NC, Basemap: CC-BY-SA'"
2021-01-10 10:38:52 +10:00
Harrissou Sant-anna
1444ce3a34 Fix to_date* functions links to qt doc
QDateTime::fromString documentation no longer lists all the expressions
to construct the format, so we point to each component doc
2021-01-09 07:07:12 +10:00
uclaros
9348e75934 Added invalid syntax tests with non array parameters 2020-12-29 08:16:52 +10:00
uclaros
d3e2bd1eae Added array_sum expression function 2020-12-29 08:16:52 +10:00
uclaros
a870070b64 Added array_mean, array_median expression functions 2020-12-29 08:16:52 +10:00
uclaros
d8a2626186 Rename mode to majority 2020-12-29 08:16:52 +10:00
uclaros
f2ed1c493f Added array_mode expression function 2020-12-29 08:16:52 +10:00
uclaros
d24f9a13c8 added help jsons 2020-12-29 08:16:52 +10:00
Ivan Ivanov
e10e42da5b Added an option to limit the number of results 2020-12-22 04:03:42 +10:00
DiGro
eec1695eb8 Nam function chganged to lower case
Line 5 : ST_TOUCHES  should be ST_Touches.

Other functions also were changed to lower case (i.e. ST_CONTAINS, ST_ CROSSES  to  ST_Contains, ST_Crosses)
2020-11-20 05:50:56 +10:00
DiGro
e7ea6e4c81 Name function PostGIS to lower case
Line 5 : ST_WITHIN  should be ST_Within.

Other functions also were changed to lower case (i.e. ST_CONTAINS, ST_ CROSSES  to  ST_Contains, ST_Crosses)
2020-11-20 05:50:30 +10:00
DiGro
a8ae44ebbf Name function changed to lower case
Line 5 : ST_INTERSECTS  should be ST_Intersects.

Other functions also were changed to lower case (i.e. ST_CONTAINS, ST_ CROSSES  to  ST_Contains, ST_Crosses)
2020-11-20 05:49:52 +10:00
Matthias Kuhn
9708edb6d7
Merge pull request #40093 from DelazJ/geomOverlayAsList
Add a string output for overlay-* functions
2020-11-17 08:47:15 +01:00
Matthias Kuhn
aeb9463b47
Merge pull request #39921 from roya0045/negative_array_Get
[Feature][Expression]Negative array get
2020-11-17 08:46:20 +01:00
Harrissou Sant-anna
fccfac8a6f Add/update examples using get_feature function
reinforcing the need for uniqueness, since get_feature output is unpredictable
2020-11-16 07:20:43 +10:00
Harrissou Sant-anna
6ee681a224 Add/fix examples using the get_feature_by_id function 2020-11-16 07:20:43 +10:00
Harrissou Sant-anna
9ac32de6f7 Add a string output for overlay-* functions 2020-11-15 19:33:18 +01:00
Harrissou Sant-anna
f6cf85a896
Fix overlay_disjoint description and examples 2020-11-12 12:59:33 +01:00
Alex
41eb79b3d2
Merge branch 'master' into negative_array_Get 2020-11-09 16:37:03 -05:00
roya0045
954335040e Allow negative array get 2020-11-09 15:10:13 -05:00
Harrissou Sant-anna
5ccad9173f Update more geometry overlay functions help 2020-10-30 09:16:13 +10:00
Harrissou Sant-anna
c0d76e175f Fix wrong copy-paste 2020-10-30 09:08:29 +10:00
Harrissou Sant-anna
a4947666a1 Update overlay_nearest function help and examples 2020-10-30 09:08:29 +10:00
signedav
e7e8729483 simple help text with optional format parameter of uuid expression 2020-10-24 11:00:36 +10:00
signedav
f5357a6af4 UUID expression function help text 2020-10-24 11:00:36 +10:00
Harrissou Sant-anna
cb37b18a7a Various tweaks to the overlay_contains function description and examples 2020-10-16 06:44:23 +10:00
Harrissou Sant-anna
710230cc0c Fix array_slice example 2020-10-15 10:51:56 +10:00
Matthias Kuhn
1258afe635
Merge pull request #39174 from DelazJ/overlayOnly
Rename geometry_overlay_* functions into overlay_*
2020-10-09 17:55:27 +02:00
Richard Duivenvoorde
163941cad5 Update to_interval function examples 2020-10-05 12:22:22 +10:00
Richard Duivenvoorde
6420854bdd Make example fit to real output 2020-10-05 12:22:22 +10:00
Harrissou Sant-anna
5f74d6abeb Rename geometry_overlay_* functions into overlay_* 2020-10-04 09:23:09 +02:00
Hannes
7e2d931e58 fix hash() expression help, had missing quotes 2020-09-22 08:19:08 +10:00
Harrissou Sant-anna
6da5db1985 Add geometry overlay functions to a group 2020-09-12 08:41:19 +10:00
olivierdalang
6f759f3f8d [refFunctions] fix (mistaken ?) spell check failure 2020-09-10 10:12:50 +02:00
olivierdalang
723a6eff10 Merge branch 'master' into refFunctionsRebase 2020-09-09 17:00:25 +02:00
olivierdalang
bcd6d53ff0 [refFunctions] missing help description 2020-09-09 11:27:04 +02:00
olivierdalang
900cef324a [refFunctions] json helps and cleanup 2020-09-08 18:11:57 +02:00
Harrissou Sant-anna
2fa991921d Fix regexp_match example output 2020-09-01 08:45:10 +10:00
Nyall Dawson
23c7bd61b9 Update resources/function_help/json/extend 2020-08-31 11:19:06 +10:00
Harrissou Sant-anna
fc1f3bfbf2 Add example for aggregate collect functions
fix #24962
2020-08-31 11:19:06 +10:00
Harrissou Sant-anna
7c6ce37e2f Backslash and groups rearrangement to regex based examples
fix qgis/QGIS-Documentation#5760
2020-08-31 11:19:06 +10:00
Harrissou Sant-anna
97247efef4 Various improvements to expression
- Add/fix details to description and examples to illustrate
- indicate string for geom_to_wkt
2020-08-31 11:19:06 +10:00
Harrissou Sant-anna
13573d2b29 geom_to_wkt returns a string 2020-08-31 11:19:06 +10:00
Harrissou Sant-anna
ae8ea31a0f More updates of expression help
- Expose default values of args
- Fix args name or description
- Fix/add more examples (to show various possibilities of a function or so
that functions that relate have examples that relate)
2020-08-21 13:02:35 +10:00