270 Commits

Author SHA1 Message Date
Harrissou Sant-anna
4f3a2f1da6 Add missing quotes 2020-08-14 08:23:49 +10:00
Harrissou Sant-anna
fa1a9aca36 Fix functions declaring variable length of arguments
while it's actually a fixed number
2020-08-14 08:23:49 +10:00
Harrissou Sant-anna
1d0749d72d Extend aggregate's concatenator and order_by args description 2020-08-10 08:32:18 +10:00
Harrissou Sant-anna
57b620c92f Use 'value' parameter instead of 'val' 2020-08-10 08:32:18 +10:00
Harrissou Sant-anna
43a20fed2b Updates on expression functions help
fix examples and description
add/update examples to "cross-link" functions
2020-08-10 08:32:18 +10:00
nirvn
07ab4b3255 [FEATURE][expression] Add a to_decimal() function to convert degree/minute/second strings 2020-07-31 08:06:32 +07:00
Harrissou Sant-anna
a4372d21b7 Fully explain the examples
avoiding use of $geometry function in explanation
2020-07-31 03:07:46 +10:00
Harrissou Sant-anna
490c8ff8d2 Replace geom parameter with geometry, for harmonization 2020-07-31 03:07:46 +10:00
Harrissou Sant-anna
8d4843d27b Harmonize NULL spelling in function help 2020-07-30 05:00:13 +10:00
Harrissou Sant-anna
8bf698074d Fix formatting 2020-07-21 10:16:00 +10:00
Harrissou Sant-anna
4e2cf102e0 Add precision to multipoint feature $x and $y functions
Co-authored-by: Nyall Dawson <nyall.dawson@gmail.com>
2020-07-21 10:16:00 +10:00
Harrissou Sant-anna
5901d5dc6f Add precision and examples to x, y and z expression functions 2020-07-21 10:16:00 +10:00
Alexandre Neto
83836766be Apply suggestions from Havart
Co-authored-by: Håvard Tveite <havard.tveite@nmbu.no>
2020-07-21 10:12:13 +10:00
Alexandre Neto
fe9e14a5dd Apply suggestions from code review
Co-authored-by: Håvard Tveite <havard.tveite@nmbu.no>
2020-07-21 10:12:13 +10:00
Alexandre Neto
ea6c0446eb Apply suggestions from code review
Co-authored-by: Harrissou Sant-anna <delazj@gmail.com>
2020-07-21 10:12:13 +10:00
Alexandre Neto
ce5a643857 Improve CASE help 2020-07-21 10:12:13 +10:00
Alexandre Neto
c345622723 Fix some HTML syntax to play better with the QGIS-Documentation script 2020-07-21 10:12:13 +10:00
Alexandre Neto
6d2ccb4e3b Update help files 2020-07-21 10:12:13 +10:00
Alexandre Neto
9c631e7d96 Remove obsolete help files
Add missing group help files
2020-07-21 10:12:13 +10:00
Nyall Dawson
bd830ba2dd [feature][expressions] Add "main_angle" function to return the estimated
main angle of a geometry

Returns the angle of the oriented minimum bounding box which covers the
geometry value.

Useful for data defined overrides in symbology of label expressions,
e.g. to rotate labels to match the overall angle of a polygon, and
similar for line pattern fills...
2020-07-16 08:44:51 +10:00
Harrissou Sant-anna
e6f3c7fc70
Move maptip function help to variants structure 2020-07-14 01:15:21 +02:00
Harrissou Sant-anna
133f8ad0fe
Move display_expression help to variants style 2020-07-13 22:31:31 +02:00
Harrissou Sant-anna
9cf31e96ee
Swap display_expression parameters 2020-07-12 11:18:25 +02:00
Harrissou Sant-anna
2004184a96
Use string representation for Color functions example output 2020-07-10 10:22:07 +10:00
Harrissou Sant-anna
ecb617cfa0 Update darker function description 2020-07-04 07:10:09 +10:00
SrNetoChan
72c0c245e2 Rename JSON help file to match function name 2020-07-02 15:03:16 +10:00
SrNetoChan
d097adeacd Add groups to function_help files 2020-07-02 15:03:16 +10:00
Richard Duivenvoorde
d1d4824d58
Fix #36983 arguments of is_selected are flipped
Improve documentation of is_selected function to describe all available variants
2020-06-09 19:57:59 +10:00
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