147 Commits

Author SHA1 Message Date
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
Matthias Kuhn
7a91b807d7 Add note about now() being static to help 2018-08-25 13:52:33 +02:00
Etienne Trimaille
d65ad453cf fix array formatting for array_filter 2018-08-25 11:34:42 +10:00
Harrissou Sant-anna
40223db87d
Merge branch 'master' into patch-2 2018-08-24 16:05:15 +02:00
Matthias Kuhn
31fadd1c00
Merge pull request #7692 from m-kuhn/arrayRep
Adjust representation of arrays and maps in expressions
2018-08-24 15:51:14 +02:00
Matthias Kuhn
ec4483a51a Update map and array examples 2018-08-24 14:04:27 +02:00
Harrissou Sant-anna
399bbf1a00
Fix array_to_string description and add default value example 2018-08-24 11:54:34 +02:00
Harrissou Sant-anna
8e8f4a5ea7
Fixes generate_series examples 2018-08-24 11:28:58 +02:00
Matthias Kuhn
51ec333199
Merge pull request #7688 from m-kuhn/array_filter
Add array_filter expression function
2018-08-23 15:54:21 +02:00
Matthias Kuhn
283c34ed04 Adjust array representation in help 2018-08-23 14:13:32 +02:00
Nyall Dawson
89cd7858e5 Used named parameters for with_variable function 2018-08-23 21:15:32 +10:00
Matthias Kuhn
edc272481f Add array_filter expression function 2018-08-23 07:02:41 +02:00
Etienne Trimaille
0a20621191 [FEATURE] add foreach expression for arrays 2018-08-23 12:32:32 +10:00
nirvn
3c3cc43010 [FEATURE] Add generate_series(start,stop,step) expression function
The function creates an array containing a sequence of numbers.
2018-08-20 11:56:49 +07:00
Nyall Dawson
a4386d6116 [FEATURE] line_substring function
Returns the portion of a line (or curve) geometry which falls
between the specified start and end distances (measured from the
beginning of the line). Z and M values are linearly interpolated
from existing values.

Fixes #15611
2018-08-15 14:01:59 +10:00
Mathieu Pellerin
2d964919f6
[FEATURE][expression] add raster_value() function (#7487) 2018-07-27 12:56:04 +07:00
Alessandro Pasotti
1e046a1726 Updated docs for current_value function 2018-05-15 12:45:43 +02:00
Alessandro Pasotti
63d2086de4 Rename functions from get_current_form_field_value to current_value
and current_geometry
2018-05-15 08:34:08 +02:00
Alessandro Pasotti
83328ae596 [feature] Form context expressions in value relation widget
The value relation widget filter expression can now use two
new functions/variables that have access to the current
values and geometry of the form being edited.

This allows for dynamic filtering (drill-down) as explained
in the crowdfunding page:
https://north-road.com/drill-down-cascading-forms/

The new functions/variables are:

Function:
get_current_form_field_value( 'FIELD_NAME' )

Variable:
@current_form_geometry
2018-05-15 08:34:08 +02:00
Salvatore
3660f3f63f corrections 2018-05-14 15:13:22 +02:00
Juergen E. Fischer
968b50f4f0 expression help: support optional parameters and defaults 2018-05-10 20:15:39 +02:00
Hannes
e8d1099ff3
add optional segments argument
text taken from single_sided_buffer
2018-05-10 16:58:12 +02:00
Nyall Dawson
6ca327072a [FEATURE] Add expression functions for tapered and variable
width buffers

Adds:
- tapered_buffer
- buffer_by_m

expression functions. These expose the same functionality as the
equivalent processing algorithms but for use in expressions
such as geometry generators.
2018-05-01 06:16:01 +10:00
Nyall Dawson
d5647bcbdb [FEATURE] Add wedge_buffer expression function
Returns a wedge shaped buffer originating from a point geometry,
with arguments for azimuth, buffer width (in degrees), outer radius
and inner radius.
2018-04-24 10:07:51 +12:00
Nyall Dawson
cae5f81ed1 Add missing expression help 2018-04-05 06:35:13 +10:00
Nyall Dawson
f02602b9bb [needs-docs] geometry smooth algorithm now also retains and smooths z/m values
...instead of just discarding them

Applies to processing algorithm and expression function (and
QgsGeometry::smooth method)
2018-03-30 08:59:00 +11:00
Juergen E. Fischer
158c32979b fix translation strings 2018-03-09 21:47:49 +01:00
Mathieu Pellerin
b42c893bbc
[FEATURE] color_grayscale_average() and color_mix_rgb() expression functions (#6554) 2018-03-07 11:59:52 +07:00
Loïc Bartoletti
0dcea18929 Add missing make_triangle function help. Fix #16406 2018-02-23 14:32:43 +01:00
Harrissou Sant-anna
dd039813f1 Update lpad and rpad functions description 2018-01-18 16:43:43 +10:00
Harrissou Sant-anna
cdbb0df8d7 Add example with NULL value 2018-01-03 06:57:10 +01:00
Etienne Trimaille
387057a1b8 add CRS description in the layer_property expression 2017-10-25 14:18:40 +02:00
Matthias Kuhn
a97d846471
Single parameter version of represent_value
Becuase `represent_value("fieldname")` is much shorter to write and in 98%
there is no need to specify the name separately as
`represent_value("fieldname", 'fieldname')`.
2017-09-29 10:58:18 +02:00
Matthias Kuhn
b527be02d7 Fix function help for represent_value 2017-09-26 14:28:44 +02:00
Matthias Kuhn
beddd25074 [FEATURE] Expression function represent_value
This will lookup the representation value given the widget
configuration. This is helpful to get nicely formatted messages for
value maps, value relations and others in expressions.
2017-09-26 14:28:44 +02:00
lbartoletti
6ae929e9cb initial commit 2017-09-08 08:06:21 +02:00
DiGro
b3448ed4a8 Typo corrected
appoximation   --> should be:  approximation
2017-09-05 15:28:40 +02:00
Nyall Dawson
0a9e9944b4 [FEATURE] Expression function for hausdorff distance
Allows calculation of the Hausdorff distance between two
geometries
2017-08-31 08:02:44 +10:00