384 Commits

Author SHA1 Message Date
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
nirvn
b97ef936be [expression] Negative index support to point_n(), angle_at_vertex(), distance_to_vertex() functions 2019-03-13 11:20:04 +07:00
Nyall Dawson
db1a1929a4 [FEATURE][expressions] Simplified variant of "attribute" function
This adds a second variant for the existing "attribute" function.
The current function requires both a target feature and attribute
name to be specified, while the NEW variant just uses the current
feature.

E.g.

NEW:

attribute( 'name' ) -> returns the value stored in 'name' attribute
for the current feature

EXISTING:

attribute( @atlas_feature, 'name' ) -> returns value stored in 'name'
attribute for the current atlas feature

It's just a faster shorthand version!
2019-02-23 05:20:52 +10:00
Mathieu Pellerin
7599d4f8d5
[expression] Add try() function to provide a way to detect and handle
expressions which can intermittently fail.
2019-02-20 06:27:43 +07:00
Etienne Trimaille
06fab90981 add some optional flags in make_polygon expression 2019-02-20 05:41:26 +10:00
Juergen E. Fischer
2bed7ab001 fix substr help (fixes #21192) 2019-02-07 11:17:57 +01:00
Matthias Kuhn
008dfeed40 Rename json functions to postgres names 2019-01-18 17:45:12 +07:00
Matthias Kuhn
fc548795a8 Add function docs for load_json and write_json 2019-01-18 17:45:12 +07:00
lbartoletti
aaede28b43 [feature] Add expression for square by diagonal and rectangle from 3 points
With the new class QgsQuadrilateral, we can add expressions to create a square by a diagonal and rectangles by 3 points
2019-01-17 03:42:20 +11:00
Matthias Kuhn
5962afdf21
Improve expression documentation for sqlite_fetch_and_increment 2019-01-11 10:53:17 +01:00
Matthias Kuhn
d3b4c7d83a
Add cached mode to sqlite_fetch_and_increment for transactions 2019-01-10 10:35:24 +01:00
Matthias Kuhn
8754d55a09
Fix JSON 2019-01-08 11:36:16 +01:00
Matthias Kuhn
af027d9d10
Add NULLIF expression function [FEATURE] 2019-01-08 10:56:34 +01:00
Matthias Kuhn
b4bc072030
Improve function help for sqlite_fetch_and_increment 2018-12-21 14:06:53 +01:00
Matthias Kuhn
e698ba877a
Fix JSON formatting 2018-12-21 09:14:44 +01:00
Matthias Kuhn
ff1f2dffea
Add sqlite_fetch_and increment docs 2018-12-20 14:32:24 +01:00
Mathieu Pellerin
e9e1e0d6f3
[FEATURE][expression] Brand new array_sort() function 2018-12-20 11:47:16 +07:00
Matthias Kuhn
0f037daf47
Merge pull request #8649 from qgis/expression_function_decode_uri
Expression function `decode_uri`
2018-12-19 08:32:09 +01:00
Nyall Dawson
06d5f924f6 More square brackets 2018-12-19 05:21:49 +10:00
Matthias Kuhn
08965487dd
Double escape for JSON and C++ 2018-12-18 17:04:50 +01:00
Matthias Kuhn
10140b1ed1
Fix JSON escaping 2018-12-18 14:57:23 +01:00
Matthias Kuhn
2b5830ec9c
Function help improvements 2018-12-18 14:54:58 +01:00
Matthias Kuhn
7a8939442f
Fix typo 2018-12-18 14:20:11 +01:00
Matthias Kuhn
d3a1285f63
Function help improvements 2018-12-18 14:18:43 +01:00
Matthias Kuhn
65e60d17aa
Add path to layer_property expression function 2018-12-18 13:47:46 +01:00
Matthias Kuhn
3cee54cf25
Fix function help json 2018-12-18 13:47:46 +01:00
Matthias Kuhn
84584012ec
Add docs and tests for decode_uri 2018-12-18 13:47:46 +01:00
Harel Dan
1c74e0b04d
fix function call in example 2018-12-13 18:18:04 +02:00
stra2da
0e4b0980d8 first example deleted, cause it is for combine function 2018-11-30 07:39:57 +10:00
Alister Hood
5256611169 Expression calculator: clarify documentation for x_at() and y_at() 2018-11-29 23:26:43 +13:00
Nyall Dawson
1b79b9a140 [FEATURE] force_rhr expression function
Forces polygons to follow the right hand rule, in which the area that
is bounded by a polygon is to the right of the boundary. In particular,
the exterior ring is oriented in a clockwise direction and the
interior rings in a counter-clockwise direction.
2018-11-09 19:06:48 +10:00
Juergen E. Fischer
9ad01cf9ba replace three dots with ellipsises in translation strings 2018-10-27 19:06:37 +02:00
Etienne Trimaille
d6a2cbf178 add missing optional flag in some qgs expression helps 2018-10-25 18:20:23 +10:00
nirvn
b7a0c8cf89 [FEATURE] hstore_to_map() / map_to_hstore() expression functions 2018-09-14 11:21:40 +07:00
nirvn
68162a5416 [FEATURE] json_to_map() / map_to_json() expression functions 2018-09-14 11:21:40 +07:00
Etienne Trimaille
1409547ee0 [FEATURE] add conversion from float to DMS format 2018-09-14 05:18:38 +10:00
stra2da
5048978ee0 Update relation_aggregate 2018-09-11 07:28:59 +10:00
stra2da
35b11b02b2 Update aggregate 2018-09-11 07:28:59 +10:00
stra2da
7fbc828acb Update relation_aggregate 2018-09-11 07:28:59 +10:00
Harrissou Sant-anna
236a53e77c Fix example display 2018-08-27 21:35:39 +10:00
Matthias Kuhn
3cd68999b0
Merge pull request #7698 from m-kuhn/wfsDateTimeNow
Support for now() in WFS filters
2018-08-26 07:43:09 +02:00