Harrissou Sant-anna
210a69e2c9
map_insert overrides existing key
2021-03-08 12:43:17 +01:00
Harrissou Sant-anna
a9e05dca15
Fix typo and more details to map_get function
2021-03-08 12:33:14 +01:00
Harrissou Sant-anna
c3e31b0495
Add missing quote
2021-03-08 12:24:54 +01:00
Harrissou Sant-anna
0aecc06c56
Fix map_to_hstore example, output a string
2021-03-08 12:22:55 +01:00
Harrissou Sant-anna
34357c1b0b
Update hstore_to_map example output
2021-03-08 12:20:18 +01:00
Harrissou Sant-anna
eaacde8eff
Fix array_replace group name
2021-02-25 11:28:03 +10:00
Damiano
0707d6f54c
array_count, array_prioritize, array_replace added to expressions ( #41338 )
2021-02-24 15:14:10 +10:00
Andrea Giudiceandrea
d7167e48d0
[feature][expressions] Add "length3D" function to return the 3D length
...
of a LineGeometry type geometry using QgsLineString::length3D(). If the geometry is not a 3D line string, it returns its 2D length.
2021-02-24 12:59:28 +10:00
Matthias Kuhn
14e5c6094d
Merge pull request #41364 from domi4484/modeMajorityConfusion
...
Fix array mode/majority confusion
2021-02-20 10:09:52 +01:00
Alessandro Pasotti
9489afe02a
Feature: mime_type expression function
...
Adds a mime_type( bytes ) expression function
Funded by: Today I didn't go skiing.
2021-02-20 05:03:09 +10:00
Harrissou Sant-anna
d4b1f3d4b4
Fix typo
2021-02-19 18:10:51 +10:00
Damiano Lombardi
5a9782de29
expressions array_majority/minority renamed parameter first to any
2021-02-17 15:57:36 +01:00
Damiano
76f09fd7d4
Added some tests with strings
2021-02-15 10:48:43 +01:00
Harrissou Sant-anna
68f1d306ff
Fix example in help of format function
2021-02-15 06:20:52 +10:00
Richard Duivenvoorde
b47c6a9c1e
Use QRegularExpression::UseUnicodePropertiesOption in regular expressions ( #41507 )
...
Should fix : #41453 in which values holding UTF diacritics were not handled.
While these expressions are used for (international) text values, I think
they should be usable with Unicode (instead of ASCII only)
See:
https://doc.qt.io/qt-5/qregularexpression.html
and:
https://doc.qt.io/qt-5/qregularexpression.html#PatternOption-enum
2021-02-13 09:24:33 +10:00
Harrissou Sant-anna
8eb93c581f
Add link to ISO language codes for format_date function
2021-02-11 11:08:40 +10:00
Harrissou Sant-anna
e41d32864d
Update the format_number example
...
and add link to list of iso language codes
2021-02-11 11:08:40 +10:00
Damiano
6845431681
Apply suggestions from code review
...
Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
2021-02-10 14:47:08 +01:00
Damiano
e854dc7101
Fixed typo
2021-02-09 14:30:05 +01:00
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