11 Help(
"$area",
tr(
"function" ),
tr(
"Returns the area of the current feature." ),
13 <<
HelpVariant(
tr(
"$area" ),
tr(
"Returns the area of the current feature." ),
23 Help(
"$atlasfeature",
tr(
"function" ),
tr(
"In atlas generation, returns the current feature that is iterated over on the coverage layer. This can be used with the 'attribute' function to return attribute values from the current atlas feature." ),
25 <<
HelpVariant(
tr(
"$atlasfeature" ),
tr(
"In atlas generation, returns the current feature that is iterated over on the coverage layer. This can be used with the 'attribute' function to return attribute values from the current atlas feature." ),
29 <<
HelpExample(
tr(
"attribute( $atlasfeature, 'name' )" ),
tr(
"value stored in 'name' attribute for the current atlas feature" ),
tr(
"") )
35 Help(
"$atlasfeatureid",
tr(
"function" ),
tr(
"Returns the feature id of the current row while using atlas. This enables you to use features of atlas in rules and for example show or hide features based on their id." ),
37 <<
HelpVariant(
tr(
"$atlasfeatureid" ),
tr(
"Returns the feature id of the current row while using atlas. This enables you to use features of atlas in rules and for example show or hide features based on their id." ),
47 Help(
"$atlasgeometry",
tr(
"function" ),
tr(
"Returns the geometry of the current feature iterated in atlas. Can be used for rule based display of geometry when using atlas. For example to only show geometries of other layers when their geometry intersects the iterated geometry of features using atlas." ),
49 <<
HelpVariant(
tr(
"$atlasgeometry" ),
tr(
"Returns the geometry of the current feature iterated in atlas. Can be used for rule based display of geometry when using atlas. For example to only show geometries of other layers when their geometry intersects the iterated geometry of features using atlas." ),
53 <<
HelpExample(
tr(
"intersects( $atlasgeometry, $geometry )" ),
tr(
"true" ),
tr(
"") )
59 Help(
"$currentfeature",
tr(
"function" ),
tr(
"Returns the current feature being evaluated. This can be used with the 'attribute' function to evaluate attribute values from the current feature." ),
61 <<
HelpVariant(
tr(
"$currentfeature" ),
tr(
"Returns the current feature being evaluated. This can be used with the 'attribute' function to evaluate attribute values from the current feature." ),
65 <<
HelpExample(
tr(
"attribute( $currentfeature, 'name' )" ),
tr(
"value stored in 'name' attribute for the current feature" ),
tr(
"") )
71 Help(
"$feature",
tr(
"function" ),
tr(
"In atlas generation, returns the current feature number that is iterated over on the coverage layer." ),
73 <<
HelpVariant(
tr(
"$feature" ),
tr(
"In atlas generation, returns the current feature number that is iterated over on the coverage layer." ),
83 Help(
"$geometry",
tr(
"function" ),
tr(
"Returns the geometry of the current feature. Can be used for processing with other functions." ),
85 <<
HelpVariant(
tr(
"$geometry" ),
tr(
"Returns the geometry of the current feature. Can be used for processing with other functions." ),
95 Help(
"$id",
tr(
"function" ),
tr(
"Returns the feature id of the current row." ),
97 <<
HelpVariant(
tr(
"$id" ),
tr(
"Returns the feature id of the current row." ),
107 Help(
"$length",
tr(
"function" ),
tr(
"Returns the length of a linestring. If you need the length of a border of a polygon, use $perimeter instead." ),
109 <<
HelpVariant(
tr(
"$length" ),
tr(
"Returns the length of a linestring. If you need the length of a border of a polygon, use $perimeter instead." ),
119 Help(
"$map",
tr(
"function" ),
tr(
"Returns the id of the current map item if the map is being drawn in a composition, or \"canvas\" if the map is being drawn within the main QGIS window." ),
121 <<
HelpVariant(
tr(
"$map" ),
tr(
"Returns the id of the current map item if the map is being drawn in a composition, or \"canvas\" if the map is being drawn within the main QGIS window." ),
132 Help(
"$numfeatures",
tr(
"function" ),
tr(
"In atlas generation, returns the total number of features within the coverage layer." ),
134 <<
HelpVariant(
tr(
"$numfeatures" ),
tr(
"In atlas generation, returns the total number of features within the coverage layer." ),
144 Help(
"$numpages",
tr(
"function" ),
tr(
"Returns the total number of pages in the composition." ),
146 <<
HelpVariant(
tr(
"$numpages" ),
tr(
"Returns the total number of pages in the composition." ),
156 Help(
"$page",
tr(
"function" ),
tr(
"Returns the current page number within a composition." ),
158 <<
HelpVariant(
tr(
"$page" ),
tr(
"Returns the current page number within a composition." ),
168 Help(
"$perimeter",
tr(
"function" ),
tr(
"Returns the perimeter length of the current feature." ),
170 <<
HelpVariant(
tr(
"$perimeter" ),
tr(
"Returns the perimeter length of the current feature." ),
180 Help(
"$rownum",
tr(
"function" ),
tr(
"Returns the number of the current row." ),
182 <<
HelpVariant(
tr(
"$rownum" ),
tr(
"Returns the number of the current row." ),
192 Help(
"$scale",
tr(
"function" ),
tr(
"Returns the current scale of the map canvas.\n\nNote: This function is only available in some contexts and will be 0 otherwise." ),
194 <<
HelpVariant(
tr(
"$scale" ),
tr(
"Returns the current scale of the map canvas.\n\nNote: This function is only available in some contexts and will be 0 otherwise." ),
204 Help(
"$x",
tr(
"function" ),
tr(
"Returns the x coordinate of the current feature." ),
206 <<
HelpVariant(
tr(
"$x" ),
tr(
"Returns the x coordinate of the current feature." ),
216 Help(
"$x_at",
tr(
"function" ),
tr(
"Retrieves a x coordinate of the current feature's geometry." ),
218 <<
HelpVariant(
tr(
"$x_at" ),
tr(
"Retrieves a x coordinate of the current feature's geometry." ),
220 <<
HelpArg(
tr(
"i" ),
tr(
"index of point of a line (indices start at 0; negative values apply from the last index)" ),
false,
false ),
229 Help(
"$y",
tr(
"function" ),
tr(
"Returns the y coordinate of the current feature." ),
231 <<
HelpVariant(
tr(
"$y" ),
tr(
"Returns the y coordinate of the current feature." ),
241 Help(
"$y_at",
tr(
"function" ),
tr(
"Retrieves a y coordinate of the current feature's geometry." ),
243 <<
HelpVariant(
tr(
"$y_at" ),
tr(
"Retrieves a y coordinate of the current feature's geometry." ),
245 <<
HelpArg(
tr(
"i" ),
tr(
"index of point of a line (indices start at 0; negative values apply from the last index)" ),
false,
false ),
254 Help(
"AND",
tr(
"operator" ),
tr(
"Returns 1 when condition a and b are true." ),
256 <<
HelpVariant(
tr(
"AND" ),
tr(
"Returns 1 when condition a and b are true." ),
258 <<
HelpArg(
tr(
"a" ),
tr(
"condition" ),
false,
false )
259 <<
HelpArg(
tr(
"b" ),
tr(
"condition" ),
false,
false ),
271 Help(
"CASE",
tr(
"expression" ),
tr(
"<pre>\nCASE\nWHEN <i>condition</i> THEN <i>result</i>\n[ ...n ]\n[ ELSE <i>result</i> ]\nEND\n</pre>\n[ ] marks optional components\n\n<h4>Arguments</h4>\n <i> WHEN condition</i> - The condition expression to evaluate. <br>\n<i> THEN result</i> - If <i>condition</i> evaluates to True then <i>result</i> is evaluated and returned. <br>\n<i> ELSE result</i> - If none of the above conditions evaluated to True then <i>result</i> is evaluated and returned. <br>\n\n<h4>Example</h4>\n<pre>\nCASE\nWHEN <i>\"column\" IS NULL</i> THEN <i>'None'</i>\n END\n</pre>\n" ),
273 <<
HelpVariant(
tr(
"CASE" ),
tr(
"<pre>\nCASE\nWHEN <i>condition</i> THEN <i>result</i>\n[ ...n ]\n[ ELSE <i>result</i> ]\nEND\n</pre>\n[ ] marks optional components\n\n<h4>Arguments</h4>\n <i> WHEN condition</i> - The condition expression to evaluate. <br>\n<i> THEN result</i> - If <i>condition</i> evaluates to True then <i>result</i> is evaluated and returned. <br>\n<i> ELSE result</i> - If none of the above conditions evaluated to True then <i>result</i> is evaluated and returned. <br>\n\n<h4>Example</h4>\n<pre>\nCASE\nWHEN <i>\"column\" IS NULL</i> THEN <i>'None'</i>\n END\n</pre>\n" ),
282 Help(
"Color",
tr(
"group" ),
tr(
"This group contains functions for manipulating colors" ),
284 <<
HelpVariant(
tr(
"Color" ),
tr(
"This group contains functions for manipulating colors" ),
293 Help(
"Conditionals",
tr(
"group" ),
tr(
"This group contains functions to handle conditional checks in expressions." ),
295 <<
HelpVariant(
tr(
"Conditionals" ),
tr(
"This group contains functions to handle conditional checks in expressions." ),
304 Help(
"Conditions",
tr(
"group" ),
tr(
"This group contains functions that operate on condition." ),
306 <<
HelpVariant(
tr(
"Conditions" ),
tr(
"This group contains functions that operate on condition." ),
315 Help(
"Conversions",
tr(
"group" ),
tr(
"This group contains functions to convert on data type to another e.g string to integer, integer to string." ),
317 <<
HelpVariant(
tr(
"Conversions" ),
tr(
"This group contains functions to convert on data type to another e.g string to integer, integer to string." ),
326 Help(
"Custom",
tr(
"group" ),
tr(
"This group contains custom user-created Python functions." ),
328 <<
HelpVariant(
tr(
"Custom" ),
tr(
"This group contains custom user-created Python functions." ),
337 Help(
"Date and Time",
tr(
"group" ),
tr(
"This group contains functions for handling date and time data." ),
339 <<
HelpVariant(
tr(
"Date and Time" ),
tr(
"This group contains functions for handling date and time data." ),
348 Help(
"Field",
tr(
"group" ),
tr(
"Double click to add field name to expression string.\nRight-Click on field name to open context menu sample value loading options." ),
350 <<
HelpVariant(
tr(
"Field" ),
tr(
"Double click to add field name to expression string.\nRight-Click on field name to open context menu sample value loading options." ),
354 tr(
"Loading field values from WFS layers isn't supported, before the layer is actually inserted, ie. when building queries." )
360 Help(
"Fields and Values",
tr(
"group" ),
tr(
"Contains a list of fields from the layer. Sample values can also be accessed via right-click.\nSelect the field name from the list then right-click to access context menu with options to load sample values from the selected field.\n" ),
362 <<
HelpVariant(
tr(
"Fields and Values" ),
tr(
"Contains a list of fields from the layer. Sample values can also be accessed via right-click.\nSelect the field name from the list then right-click to access context menu with options to load sample values from the selected field.\n" ),
366 tr(
"Loading field values from WFS layers isn't supported, before the layer is actually inserted, ie. when building queries." )
372 Help(
"Fuzzy Matching",
tr(
"group" ),
tr(
"This group contains functions for fuzzy comparisons between values." ),
374 <<
HelpVariant(
tr(
"Fuzzy Matching" ),
tr(
"This group contains functions for fuzzy comparisons between values." ),
383 Help(
"General",
tr(
"group" ),
tr(
"This group contains general assorted functions." ),
385 <<
HelpVariant(
tr(
"General" ),
tr(
"This group contains general assorted functions." ),
394 Help(
"GeometryGroup",
tr(
"group" ),
tr(
"This group contains functions that operate on geometry objects e.g length, area." ),
396 <<
HelpVariant(
tr(
"GeometryGroup" ),
tr(
"This group contains functions that operate on geometry objects e.g length, area." ),
405 Help(
"ILIKE",
tr(
"operator" ),
tr(
"Returns 1 if the first parameter matches case-insensitive the supplied pattern. LIKE can be used instead of ILIKE to make the match case-sensitive. Works with numbers also." ),
407 <<
HelpVariant(
tr(
"ILIKE" ),
tr(
"Returns 1 if the first parameter matches case-insensitive the supplied pattern. LIKE can be used instead of ILIKE to make the match case-sensitive. Works with numbers also." ),
409 <<
HelpArg(
tr(
"string/number" ),
tr(
"string to search" ),
false,
false )
410 <<
HelpArg(
tr(
"pattern" ),
tr(
"pattern to find" ),
false,
false ),
425 Help(
"IN",
tr(
"operator" ),
tr(
"Returns 1 if value is found within a list of values." ),
427 <<
HelpVariant(
tr(
"IN" ),
tr(
"Returns 1 if value is found within a list of values." ),
429 <<
HelpArg(
tr(
"a" ),
tr(
"value" ),
false,
false )
430 <<
HelpArg(
tr(
"b" ),
tr(
"list of values" ),
false,
false ),
440 Help(
"IS",
tr(
"operator" ),
tr(
"Returns 1 if a is the same as b." ),
444 <<
HelpArg(
tr(
"a" ),
tr(
"any value" ),
false,
false )
445 <<
HelpArg(
tr(
"b" ),
tr(
"any value" ),
false,
false ),
453 <<
HelpExample(
tr(
"$geometry IS NULL" ),
tr(
"0, if your geometry is not NULL" ),
tr(
"") )
459 Help(
"IS NOT",
tr(
"operator" ),
tr(
"Returns 1 if a is not the same as b." ),
461 <<
HelpVariant(
tr(
"IS NOT" ),
tr(
"Returns 1 if a is not the same as b." ),
463 <<
HelpArg(
tr(
"a" ),
tr(
"value" ),
false,
false )
464 <<
HelpArg(
tr(
"b" ),
tr(
"value" ),
false,
false ),
475 Help(
"LIKE",
tr(
"operator" ),
tr(
"Returns 1 if the first parameter matches the supplied pattern. Works with numbers also." ),
477 <<
HelpVariant(
tr(
"LIKE" ),
tr(
"Returns 1 if the first parameter matches the supplied pattern. Works with numbers also." ),
479 <<
HelpArg(
tr(
"string/number" ),
tr(
"value" ),
false,
false )
480 <<
HelpArg(
tr(
"pattern" ),
tr(
"pattern to compare value with" ),
false,
false ),
493 Help(
"Math",
tr(
"group" ),
tr(
"This group contains math functions e.g square root, sin and cos" ),
495 <<
HelpVariant(
tr(
"Math" ),
tr(
"This group contains math functions e.g square root, sin and cos" ),
504 Help(
"NOT",
tr(
"operator" ),
tr(
"Negates a condition." ),
508 <<
HelpArg(
tr(
"a" ),
tr(
"condition" ),
false,
false ),
518 Help(
"NULL",
tr(
"value" ),
tr(
"Equates to a null value." ),
525 tr(
"To test for NULL use an <pre>IS NULL</pre> or <pre>IS NOT NULL</pre> expression." )
531 Help(
"OR",
tr(
"operator" ),
tr(
"Returns 1 when condition a or b is true." ),
533 <<
HelpVariant(
tr(
"OR" ),
tr(
"Returns 1 when condition a or b is true." ),
535 <<
HelpArg(
tr(
"a" ),
tr(
"condition" ),
false,
false )
536 <<
HelpArg(
tr(
"b" ),
tr(
"condition" ),
false,
false ),
547 Help(
"Operators",
tr(
"group" ),
tr(
"This group contains operators e.g + - *" ),
549 <<
HelpVariant(
tr(
"Operators" ),
tr(
"This group contains operators e.g + - *" ),
558 Help(
"Recent (Selection)",
tr(
"group" ),
tr(
"This group contains recently used expressions." ),
560 <<
HelpVariant(
tr(
"Recent (Selection)" ),
tr(
"This group contains recently used expressions." ),
569 Help(
"Record",
tr(
"group" ),
tr(
"This group contains functions that operate on record identifiers." ),
571 <<
HelpVariant(
tr(
"Record" ),
tr(
"This group contains functions that operate on record identifiers." ),
580 Help(
"String",
tr(
"group" ),
tr(
"This group contains functions that operate on strings e.g replace, convert to upper case." ),
582 <<
HelpVariant(
tr(
"String" ),
tr(
"This group contains functions that operate on strings e.g replace, convert to upper case." ),
591 Help(
"Variables",
tr(
"group" ),
tr(
"This group contains dynamic variables which can be inserted into your expressions." ),
593 <<
HelpVariant(
tr(
"Variables" ),
tr(
"This group contains dynamic variables which can be inserted into your expressions." ),
602 Help(
"abs",
tr(
"function" ),
tr(
"Returns the absolute value of a number." ),
604 <<
HelpVariant(
tr(
"abs" ),
tr(
"Returns the absolute value of a number." ),
606 <<
HelpArg(
tr(
"value" ),
tr(
"a number" ),
false,
false ),
615 Help(
"acos",
tr(
"function" ),
tr(
"Returns the inverse cosine of a value in radians." ),
617 <<
HelpVariant(
tr(
"acos" ),
tr(
"Returns the inverse cosine of a value in radians." ),
619 <<
HelpArg(
tr(
"value" ),
tr(
"cosine of an angle in radians" ),
false,
false ),
628 Help(
"age",
tr(
"function" ),
tr(
"Returns the difference between two dates or datetimes.\nThe difference is returned as a <code>Interval</code> and needs to be used with one of the following functions in order to extract useful information:<br /><ul><li><code>year</code><li><code>month</code><li><code>week</code><li><code>day</code><li><code>hour</code><li><code>minute</code><li><code>second</code></ul>" ),
630 <<
HelpVariant(
tr(
"age" ),
tr(
"Returns the difference between two dates or datetimes.\nThe difference is returned as a <code>Interval</code> and needs to be used with one of the following functions in order to extract useful information:<br /><ul><li><code>year</code><li><code>month</code><li><code>week</code><li><code>day</code><li><code>hour</code><li><code>minute</code><li><code>second</code></ul>" ),
632 <<
HelpArg(
tr(
"datetime1" ),
tr(
"a string, date or datetime representing the later date" ),
false,
false )
633 <<
HelpArg(
tr(
"datetime2" ),
tr(
"a string, date or datetime representing the earlier date" ),
false,
false ),
636 <<
HelpExample(
tr(
"age('2012-05-12','2012-05-2')" ),
tr(
"interval" ),
tr(
"use <code>day</code> to extract number of days") )
637 <<
HelpExample(
tr(
"day(age('2012-05-12','2012-05-2'))" ),
tr(
"10" ),
tr(
"") )
643 Help(
"area",
tr(
"function" ),
tr(
"Returns the area of a geometry polygon object. Calculations are in the Spatial Reference System of this geometry." ),
645 <<
HelpVariant(
tr(
"area" ),
tr(
"Returns the area of a geometry polygon object. Calculations are in the Spatial Reference System of this geometry." ),
647 <<
HelpArg(
tr(
"geometry" ),
tr(
"polygon geometry object" ),
false,
false ),
650 <<
HelpExample(
tr(
"area(geom_from_wkt('POLYGON((0 0, 4 0, 4 2, 0 2, 0 0))'))" ),
tr(
"8.0" ),
tr(
"") )
656 Help(
"asin",
tr(
"function" ),
tr(
"Returns the inverse sine of a value in radians." ),
658 <<
HelpVariant(
tr(
"asin" ),
tr(
"Returns the inverse sine of a value in radians." ),
660 <<
HelpArg(
tr(
"value" ),
tr(
"sine of an angle in radians" ),
false,
false ),
669 Help(
"atan",
tr(
"function" ),
tr(
"Returns the inverse tangent of a value in radians." ),
671 <<
HelpVariant(
tr(
"atan" ),
tr(
"Returns the inverse tangent of a value in radians." ),
673 <<
HelpArg(
tr(
"value" ),
tr(
"tan of an angle in radians" ),
false,
false ),
682 Help(
"atan2",
tr(
"function" ),
tr(
"Returns the inverse tangent of dy/dx by using the signs of the two arguments to determine the quadrant of the result." ),
684 <<
HelpVariant(
tr(
"atan2" ),
tr(
"Returns the inverse tangent of dy/dx by using the signs of the two arguments to determine the quadrant of the result." ),
686 <<
HelpArg(
tr(
"dy" ),
tr(
"y coordinate difference" ),
false,
false )
687 <<
HelpArg(
tr(
"dx" ),
tr(
"x coordinate difference" ),
false,
false ),
696 Help(
"attribute",
tr(
"function" ),
tr(
"Returns the value of a specified attribute from a feature." ),
698 <<
HelpVariant(
tr(
"attribute" ),
tr(
"Returns the value of a specified attribute from a feature." ),
700 <<
HelpArg(
tr(
"feature" ),
tr(
"a feature" ),
false,
false )
701 <<
HelpArg(
tr(
"attribute_name" ),
tr(
"name of attribute to be returned" ),
false,
false ),
704 <<
HelpExample(
tr(
"attribute( $currentfeature, 'name' )" ),
tr(
"value stored in 'name' attribute for the current feature" ),
tr(
"") )
710 Help(
"bounds",
tr(
"function" ),
tr(
"Returns a geometry which represents the bounding box of an input geometry. Calculations are in the Spatial Reference System of this geometry." ),
712 <<
HelpVariant(
tr(
"bounds" ),
tr(
"Returns a geometry which represents the bounding box of an input geometry. Calculations are in the Spatial Reference System of this geometry." ),
714 <<
HelpArg(
tr(
"geom" ),
tr(
"a geometry" ),
false,
false ),
717 <<
HelpExample(
tr(
"bounds($geometry)" ),
tr(
"bounding box of $geometry" ),
tr(
"") )
723 Help(
"bounds_height",
tr(
"function" ),
tr(
"Returns the height of the bounding box of a geometry. Calculations are in the Spatial Reference System of this geometry." ),
725 <<
HelpVariant(
tr(
"bounds_height" ),
tr(
"Returns the height of the bounding box of a geometry. Calculations are in the Spatial Reference System of this geometry." ),
727 <<
HelpArg(
tr(
"geom" ),
tr(
"a geometry" ),
false,
false ),
730 <<
HelpExample(
tr(
"bounds_height($geometry)" ),
tr(
"height of bounding box of $geometry" ),
tr(
"") )
736 Help(
"bounds_width",
tr(
"function" ),
tr(
"Returns the width of the bounding box of a geometry. Calculations are in the Spatial Reference System of this geometry." ),
738 <<
HelpVariant(
tr(
"bounds_width" ),
tr(
"Returns the width of the bounding box of a geometry. Calculations are in the Spatial Reference System of this geometry." ),
740 <<
HelpArg(
tr(
"geom" ),
tr(
"a geometry" ),
false,
false ),
743 <<
HelpExample(
tr(
"bounds_width($geometry)" ),
tr(
"width of bounding box of $geometry" ),
tr(
"") )
749 Help(
"buffer",
tr(
"function" ),
tr(
"Returns a geometry that represents all points whose distance from this geometry is less than or equal to distance. Calculations are in the Spatial Reference System of this geometry." ),
751 <<
HelpVariant(
tr(
"buffer" ),
tr(
"Returns a geometry that represents all points whose distance from this geometry is less than or equal to distance. Calculations are in the Spatial Reference System of this geometry." ),
753 <<
HelpArg(
tr(
"geom" ),
tr(
"a geometry" ),
false,
false )
754 <<
HelpArg(
tr(
"distance" ),
tr(
"buffer distance in layer units" ),
false,
false ),
757 <<
HelpExample(
tr(
"buffer($geometry, 10.5)" ),
tr(
"polygon of $geometry buffered by 10.5 units" ),
tr(
"") )
763 Help(
"ceil",
tr(
"function" ),
tr(
"Rounds a number upwards." ),
767 <<
HelpArg(
tr(
"value" ),
tr(
"a number" ),
false,
false ),
777 Help(
"centroid",
tr(
"function" ),
tr(
"Returns the geometric center of a geometry." ),
779 <<
HelpVariant(
tr(
"centroid" ),
tr(
"Returns the geometric center of a geometry." ),
781 <<
HelpArg(
tr(
"geom" ),
tr(
"a geometry" ),
false,
false ),
790 Help(
"clamp",
tr(
"function" ),
tr(
"Restricts an input value to a specified range." ),
792 <<
HelpVariant(
tr(
"clamp" ),
tr(
"Restricts an input value to a specified range." ),
794 <<
HelpArg(
tr(
"minimum" ),
tr(
"the smallest value <i>input</i> is allowed to take." ),
false,
false )
795 <<
HelpArg(
tr(
"input" ),
tr(
"a value which will be restricted to the range specified by <i>minimum</i> and <i>maximum</i>" ),
false,
false )
796 <<
HelpArg(
tr(
"maximum" ),
tr(
"the largest value <i>input</i> is allowed to take" ),
false,
false ),
799 <<
HelpExample(
tr(
"clamp(1,5,10)" ),
tr(
"5" ),
tr(
"<i>input</i> is between 1 and 10 so is returned unchanged") )
800 <<
HelpExample(
tr(
"clamp(1,0,10)" ),
tr(
"1" ),
tr(
"<i>input</i> is less than minimum value of 1, so function returns 1") )
801 <<
HelpExample(
tr(
"clamp(1,11,10)" ),
tr(
"10" ),
tr(
"<i>input</i> is greater than maximum value of 10, so function returns 10") )
807 Help(
"coalesce",
tr(
"function" ),
tr(
"Returns the first non-NULL value from the expression list.<br>This function can take any number of arguments." ),
809 <<
HelpVariant(
tr(
"coalesce" ),
tr(
"Returns the first non-NULL value from the expression list.<br>This function can take any number of arguments." ),
811 <<
HelpArg(
tr(
"expression1" ),
tr(
"" ),
false,
true )
812 <<
HelpArg(
tr(
"expression2" ),
tr(
"" ),
false,
true )
813 <<
HelpArg(
tr(
"expression" ),
tr(
"any valid expression or value, irregardless of type." ),
true,
false ),
819 <<
HelpExample(
tr(
"coalesce(\"fieldA\", \"fallbackField\", 'ERROR')" ),
tr(
"value of fieldA if it is non-NULL else the value of \"fallbackField\" or the string 'ERROR' if both are NULL" ),
tr(
"") )
825 Help(
"color_cmyk",
tr(
"function" ),
tr(
"Returns a string representation of a color based on its cyan, magenta, yellow and black components" ),
827 <<
HelpVariant(
tr(
"color_cmyk" ),
tr(
"Returns a string representation of a color based on its cyan, magenta, yellow and black components" ),
829 <<
HelpArg(
tr(
"cyan" ),
tr(
"cyan component of the color, as a percentage integer value from 0 to 100" ),
false,
false )
830 <<
HelpArg(
tr(
"magenta" ),
tr(
"magenta component of the color, as a percentage integer value from 0 to 100" ),
false,
false )
831 <<
HelpArg(
tr(
"yellow" ),
tr(
"yellow component of the color, as a percentage integer value from 0 to 100" ),
false,
false )
832 <<
HelpArg(
tr(
"black" ),
tr(
"black component of the color, as a percentage integer value from 0 to 100" ),
false,
false ),
841 Help(
"color_cmyka",
tr(
"function" ),
tr(
"Returns a string representation of a color based on its cyan, magenta, yellow, black and alpha (transparency) components" ),
843 <<
HelpVariant(
tr(
"color_cmyka" ),
tr(
"Returns a string representation of a color based on its cyan, magenta, yellow, black and alpha (transparency) components" ),
845 <<
HelpArg(
tr(
"cyan" ),
tr(
"cyan component of the color, as a percentage integer value from 0 to 100" ),
false,
false )
846 <<
HelpArg(
tr(
"magenta" ),
tr(
"magenta component of the color, as a percentage integer value from 0 to 100" ),
false,
false )
847 <<
HelpArg(
tr(
"yellow" ),
tr(
"yellow component of the color, as a percentage integer value from 0 to 100" ),
false,
false )
848 <<
HelpArg(
tr(
"black" ),
tr(
"black component of the color, as a percentage integer value from 0 to 100" ),
false,
false )
849 <<
HelpArg(
tr(
"alpha" ),
tr(
"alpha component as an integer value from 0 (completely transparent) to 255 (opaque)." ),
false,
false ),
852 <<
HelpExample(
tr(
"color_cmyk(100,50,0,10,200)" ),
tr(
"0,115,230,200" ),
tr(
"") )
858 Help(
"color_hsl",
tr(
"function" ),
tr(
"Returns a string representation of a color based on its hue, saturation, and lightness attributes." ),
860 <<
HelpVariant(
tr(
"color_hsl" ),
tr(
"Returns a string representation of a color based on its hue, saturation, and lightness attributes." ),
862 <<
HelpArg(
tr(
"hue" ),
tr(
"hue of the color, as an integer value from 0 to 360" ),
false,
false )
863 <<
HelpArg(
tr(
"saturation" ),
tr(
"saturation percentage of the color as an integer value from 0 to 100" ),
false,
false )
864 <<
HelpArg(
tr(
"lightness" ),
tr(
"lightness percentage of the color as an integer value from 0 to 100" ),
false,
false ),
873 Help(
"color_hsla",
tr(
"function" ),
tr(
"Returns a string representation of a color based on its hue, saturation, lightness and alpha (transparency) attributes" ),
875 <<
HelpVariant(
tr(
"color_hsla" ),
tr(
"Returns a string representation of a color based on its hue, saturation, lightness and alpha (transparency) attributes" ),
877 <<
HelpArg(
tr(
"hue" ),
tr(
"hue of the color, as an integer value from 0 to 360" ),
false,
false )
878 <<
HelpArg(
tr(
"saturation" ),
tr(
"saturation percentage of the color as an integer value from 0 to 100" ),
false,
false )
879 <<
HelpArg(
tr(
"lightness" ),
tr(
"lightness percentage of the color as an integer value from 0 to 100" ),
false,
false )
880 <<
HelpArg(
tr(
"alpha" ),
tr(
"alpha component as an integer value from 0 (completely transparent) to 255 (opaque)." ),
false,
false ),
883 <<
HelpExample(
tr(
"color_hsla(100,50,70,200)" ),
tr(
"166,217,140,200" ),
tr(
"") )
889 Help(
"color_hsv",
tr(
"function" ),
tr(
"Returns a string representation of a color based on its hue, saturation, and value attributes." ),
891 <<
HelpVariant(
tr(
"color_hsv" ),
tr(
"Returns a string representation of a color based on its hue, saturation, and value attributes." ),
893 <<
HelpArg(
tr(
"hue" ),
tr(
"hue of the color, as an integer value from 0 to 360" ),
false,
false )
894 <<
HelpArg(
tr(
"saturation" ),
tr(
"saturation percentage of the color as an integer value from 0 to 100" ),
false,
false )
895 <<
HelpArg(
tr(
"value" ),
tr(
"value percentage of the color as an integer from 0 to 100" ),
false,
false ),
904 Help(
"color_hsva",
tr(
"function" ),
tr(
"Returns a string representation of a color based on its hue, saturation, value and alpha (transparency) attributes." ),
906 <<
HelpVariant(
tr(
"color_hsva" ),
tr(
"Returns a string representation of a color based on its hue, saturation, value and alpha (transparency) attributes." ),
908 <<
HelpArg(
tr(
"hue" ),
tr(
"hue of the color, as an integer value from 0 to 360" ),
false,
false )
909 <<
HelpArg(
tr(
"saturation" ),
tr(
"saturation percentage of the color as an integer value from 0 to 100" ),
false,
false )
910 <<
HelpArg(
tr(
"value" ),
tr(
"value percentage of the color as an integer from 0 to 100" ),
false,
false )
911 <<
HelpArg(
tr(
"alpha" ),
tr(
"alpha component as an integer value from 0 (completely transparent) to 255 (opaque)" ),
false,
false ),
914 <<
HelpExample(
tr(
"color_hsva(40,100,100,200)" ),
tr(
"255,170,0,200" ),
tr(
"") )
920 Help(
"color_part",
tr(
"function" ),
tr(
"Returns a specific component from a color string, eg the red component or alpha component." ),
922 <<
HelpVariant(
tr(
"color_part" ),
tr(
"Returns a specific component from a color string, eg the red component or alpha component." ),
924 <<
HelpArg(
tr(
"color" ),
tr(
"a color string" ),
false,
false )
925 <<
HelpArg(
tr(
"component" ),
tr(
"a string corresponding to the color component to return. Valid options are:<br /><ul><li>red: RGB red component (0-255)</li><li>green: RGB green component (0-255)</li><li>blue: RGB blue component (0-255)</li><li>alpha: alpha (transparency) value (0-255)</li><li>hue: HSV hue (0-360)</li><li>saturation: HSV saturation (0-100)</li><li>value: HSV value (0-100)</li><li>hsl_hue: HSL hue (0-360)</li><li>hsl_saturation: HSL saturation (0-100)</li><li>lightness: HSL lightness (0-100)</li><li>cyan: CMYK cyan component (0-100)</li><li>magenta: CMYK magenta component (0-100)</li><li>yellow: CMYK yellow component (0-100)</li> <li>black: CMYK black component (0-100)</li></ul>" ),
false,
false ),
934 Help(
"color_rgb",
tr(
"function" ),
tr(
"Returns a string representation of a color based on its red, green, and blue components." ),
936 <<
HelpVariant(
tr(
"color_rgb" ),
tr(
"Returns a string representation of a color based on its red, green, and blue components." ),
938 <<
HelpArg(
tr(
"red" ),
tr(
"red component as an integer value from 0 to 255" ),
false,
false )
939 <<
HelpArg(
tr(
"green" ),
tr(
"green component as an integer value from 0 to 255" ),
false,
false )
940 <<
HelpArg(
tr(
"blue" ),
tr(
"blue component as an integer value from 0 to 255" ),
false,
false ),
949 Help(
"color_rgba",
tr(
"function" ),
tr(
"Returns a string representation of a color based on its red, green, blue, and alpha (transparency) components." ),
951 <<
HelpVariant(
tr(
"color_rgba" ),
tr(
"Returns a string representation of a color based on its red, green, blue, and alpha (transparency) components." ),
953 <<
HelpArg(
tr(
"red" ),
tr(
"red component as an integer value from 0 to 255" ),
false,
false )
954 <<
HelpArg(
tr(
"green" ),
tr(
"green component as an integer value from 0 to 255" ),
false,
false )
955 <<
HelpArg(
tr(
"blue" ),
tr(
"blue component as an integer value from 0 to 255" ),
false,
false )
956 <<
HelpArg(
tr(
"alpha" ),
tr(
"alpha component as an integer value from 0 (completely transparent) to 255 (opaque)." ),
false,
false ),
959 <<
HelpExample(
tr(
"color_rgba(255,127,0,200)" ),
tr(
"255,127,0,200" ),
tr(
"") )
965 Help(
"combine",
tr(
"function" ),
tr(
"Returns the combination of two geometries." ),
967 <<
HelpVariant(
tr(
"combine" ),
tr(
"Returns the combination of two geometries." ),
969 <<
HelpArg(
tr(
"geometry1" ),
tr(
"a geometry" ),
false,
false )
970 <<
HelpArg(
tr(
"geometry2" ),
tr(
"a geometry" ),
false,
false ),
973 <<
HelpExample(
tr(
"geom_to_wkt( combine( geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 2 1)' ) ) )" ),
tr(
"MULTILINESTRING((4 4, 2 1), (3 3, 4 4), (4 4, 5 5))" ),
tr(
"") )
974 <<
HelpExample(
tr(
"geom_to_wkt( combine( geom_from_wkt( 'LINESTRING(3 3, 4 4)' ), geom_from_wkt( 'LINESTRING(3 3, 6 6, 2 1)' ) ) )" ),
tr(
"LINESTRING(3 3, 4 4, 6 6, 2 1)" ),
tr(
"") )
980 Help(
"concat",
tr(
"function" ),
tr(
"Concatenates several strings to one. NULL values are converted to empty strings. Other values (like numbers) are converted to strings." ),
982 <<
HelpVariant(
tr(
"concat" ),
tr(
"Concatenates several strings to one. NULL values are converted to empty strings. Other values (like numbers) are converted to strings." ),
984 <<
HelpArg(
tr(
"string1" ),
tr(
"" ),
false,
true )
985 <<
HelpArg(
tr(
"string2" ),
tr(
"" ),
false,
true )
986 <<
HelpArg(
tr(
"string" ),
tr(
"a string value" ),
true,
false ),
998 Help(
"contains",
tr(
"function" ),
tr(
"Tests whether a geometry contains another. Returns true if and only if no points of geometry b lie in the exterior of geometry a, and at least one point of the interior of b lies in the interior of a." ),
1000 <<
HelpVariant(
tr(
"contains" ),
tr(
"Tests whether a geometry contains another. Returns true if and only if no points of geometry b lie in the exterior of geometry a, and at least one point of the interior of b lies in the interior of a." ),
1002 <<
HelpArg(
tr(
"geometry a" ),
tr(
"a geometry" ),
false,
false )
1003 <<
HelpArg(
tr(
"geometry b" ),
tr(
"a geometry" ),
false,
false ),
1006 <<
HelpExample(
tr(
"geom_to_wkt( combine( geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 2 1)' ) ) )" ),
tr(
"MULTILINESTRING((4 4, 2 1), (3 3, 4 4), (4 4, 5 5))" ),
tr(
"") )
1007 <<
HelpExample(
tr(
"contains( geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))' ), geom_from_wkt( 'POINT(0.5 0.5 )' ) )" ),
tr(
"true" ),
tr(
"") )
1008 <<
HelpExample(
tr(
"contains( geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ) )" ),
tr(
"false" ),
tr(
"") )
1014 Help(
"convex_hull",
tr(
"function" ),
tr(
"Returns the convex hull of a geometry. It represents the minimum convex geometry that encloses all geometries within the set." ),
1016 <<
HelpVariant(
tr(
"convex_hull" ),
tr(
"Returns the convex hull of a geometry. It represents the minimum convex geometry that encloses all geometries within the set." ),
1018 <<
HelpArg(
tr(
"geometry" ),
tr(
"a geometry" ),
false,
false ),
1021 <<
HelpExample(
tr(
"geom_to_wkt( combine( geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 2 1)' ) ) )" ),
tr(
"MULTILINESTRING((4 4, 2 1), (3 3, 4 4), (4 4, 5 5))" ),
tr(
"") )
1022 <<
HelpExample(
tr(
"geom_to_wkt( convex_hull( geom_from_wkt( 'LINESTRING(3 3, 4 4, 4 10)' ) ) )" ),
tr(
"POLYGON((3 3,4 10,4 4,3 3))" ),
tr(
"") )
1028 Help(
"cos",
tr(
"function" ),
tr(
"Returns cosine of an angle." ),
1032 <<
HelpArg(
tr(
"angle" ),
tr(
"angle in radians" ),
false,
false ),
1041 Help(
"crosses",
tr(
"function" ),
tr(
"Tests whether a geometry crosses another. Returns true if the supplied geometries have some, but not all, interior points in common." ),
1043 <<
HelpVariant(
tr(
"crosses" ),
tr(
"Tests whether a geometry crosses another. Returns true if the supplied geometries have some, but not all, interior points in common." ),
1045 <<
HelpArg(
tr(
"geometry a" ),
tr(
"a geometry" ),
false,
false )
1046 <<
HelpArg(
tr(
"geometry b" ),
tr(
"a geometry" ),
false,
false ),
1049 <<
HelpExample(
tr(
"crosses( geom_from_wkt( 'LINESTRING(3 5, 4 4, 5 3)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ) )" ),
tr(
"true" ),
tr(
"") )
1050 <<
HelpExample(
tr(
"crosses( geom_from_wkt( 'POINT(4 5)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ) )" ),
tr(
"false" ),
tr(
"") )
1056 Help(
"day",
tr(
"function" ),
tr(
"Extract the day from a date, or the number of days from an interval." ),
1058 <<
HelpVariant(
tr(
"Date variant" ),
tr(
"Extract the day from a date or datetime." ),
1060 <<
HelpArg(
tr(
"date" ),
tr(
"a date or datetime value" ),
false,
false ),
1065 <<
HelpVariant(
tr(
"Interval variant" ),
tr(
"Calculate the length in days of an interval." ),
1067 <<
HelpArg(
tr(
"interval" ),
tr(
"interval value to return number of days from" ),
false,
false ),
1071 <<
HelpExample(
tr(
"day(age('2012-01-01','2010-01-01'))" ),
tr(
"730" ),
tr(
"") )
1077 Help(
"day_of_week",
tr(
"function" ),
tr(
"Returns the day of the week for a specified date or datetime. The returned value ranges from 0 to 6, where 0 corresponds to a Sunday and 6 to a Saturday." ),
1079 <<
HelpVariant(
tr(
"day_of_week" ),
tr(
"Returns the day of the week for a specified date or datetime. The returned value ranges from 0 to 6, where 0 corresponds to a Sunday and 6 to a Saturday." ),
1081 <<
HelpArg(
tr(
"date" ),
tr(
"date or datetime value" ),
false,
false ),
1090 Help(
"difference",
tr(
"function" ),
tr(
"Returns a geometry that represents that part of geometry_a that does not intersect with geometry_b." ),
1092 <<
HelpVariant(
tr(
"difference" ),
tr(
"Returns a geometry that represents that part of geometry_a that does not intersect with geometry_b." ),
1094 <<
HelpArg(
tr(
"geometry_a" ),
tr(
"a geometry" ),
false,
false )
1095 <<
HelpArg(
tr(
"geometry_b" ),
tr(
"a geometry" ),
false,
false ),
1098 <<
HelpExample(
tr(
"geom_to_wkt( difference( geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4)' ) ) )" ),
tr(
"LINESTRING(4 4, 5 5)" ),
tr(
"") )
1104 Help(
"disjoint",
tr(
"function" ),
tr(
"Tests whether geometries do not spatially intersect. Returns true if the geometries do not share any space together." ),
1106 <<
HelpVariant(
tr(
"disjoint" ),
tr(
"Tests whether geometries do not spatially intersect. Returns true if the geometries do not share any space together." ),
1108 <<
HelpArg(
tr(
"geometry a" ),
tr(
"a geometry" ),
false,
false )
1109 <<
HelpArg(
tr(
"geometry b" ),
tr(
"a geometry" ),
false,
false ),
1112 <<
HelpExample(
tr(
"disjoint( geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0 ))' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ) )" ),
tr(
"true" ),
tr(
"") )
1113 <<
HelpExample(
tr(
"disjoint( geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ), geom_from_wkt( 'POINT(4 4)' ))" ),
tr(
"false" ),
tr(
"") )
1119 Help(
"distance",
tr(
"function" ),
tr(
"Returns the minimum distance (based on spatial ref) between two geometries in projected units." ),
1121 <<
HelpVariant(
tr(
"distance" ),
tr(
"Returns the minimum distance (based on spatial ref) between two geometries in projected units." ),
1123 <<
HelpArg(
tr(
"geometry a" ),
tr(
"a geometry" ),
false,
false )
1124 <<
HelpArg(
tr(
"geometry b" ),
tr(
"a geometry" ),
false,
false ),
1127 <<
HelpExample(
tr(
"distance( geom_from_wkt( 'POINT(4 4)' ), geom_from_wkt( 'POINT(4 8)' ) )" ),
tr(
"4" ),
tr(
"") )
1133 Help(
"end_point",
tr(
"function" ),
tr(
"Returns the last node from a geometry." ),
1135 <<
HelpVariant(
tr(
"end_point" ),
tr(
"Returns the last node from a geometry." ),
1137 <<
HelpArg(
tr(
"geometry" ),
tr(
"geometry object" ),
false,
false ),
1140 <<
HelpExample(
tr(
"geom_to_wkt(end_point(geom_from_wkt('LINESTRING(4 0, 4 2, 0 2)')))" ),
tr(
"'Point (0 2)'" ),
tr(
"") )
1146 Help(
"exp",
tr(
"function" ),
tr(
"Returns exponential of an value." ),
1148 <<
HelpVariant(
tr(
"exp" ),
tr(
"Returns exponential of an value." ),
1150 <<
HelpArg(
tr(
"value" ),
tr(
"number to return exponent of" ),
false,
false ),
1159 Help(
"floor",
tr(
"function" ),
tr(
"Rounds a number downwards." ),
1163 <<
HelpArg(
tr(
"value" ),
tr(
"a number" ),
false,
false ),
1173 Help(
"format",
tr(
"function" ),
tr(
"Format a string using supplied arguments." ),
1175 <<
HelpVariant(
tr(
"format" ),
tr(
"Format a string using supplied arguments." ),
1177 <<
HelpArg(
tr(
"string" ),
tr(
"A string with place holders for the arguments. Use %1, %2, etc for placeholders. Placeholders can be repeated." ),
false,
false )
1180 <<
HelpArg(
tr(
"arg" ),
tr(
"any type. Any number of arguments." ),
true,
false ),
1183 <<
HelpExample(
tr(
"format('This %1 a %2','is', 'test')" ),
tr(
"'This is a test''" ),
tr(
"") )
1189 Help(
"format_date",
tr(
"function" ),
tr(
"Format a date type or string into a custom string format. Uses Qt date/time format strings. See <a href='http://qt-project.org/doc/qt-4.8/qdatetime.html#toString'>QDateTime::toString</a>." ),
1191 <<
HelpVariant(
tr(
"format_date" ),
tr(
"Format a date type or string into a custom string format. Uses Qt date/time format strings. See <a href='http://qt-project.org/doc/qt-4.8/qdatetime.html#toString'>QDateTime::toString</a>." ),
1193 <<
HelpArg(
tr(
"datetime" ),
tr(
"date, time or datetime value" ),
false,
false )
1194 <<
HelpArg(
tr(
"format" ),
tr(
"String template used to format the string. <table><thead><tr><th>Expression</th><th>Output</th></tr></thead><tr valign=\"top\"><td>d</td><td>the day as number without a leading zero (1 to 31)</td></tr><tr valign=\"top\"><td>dd</td><td>the day as number with a leading zero (01 to 31)</td></tr><tr valign=\"top\"><td>ddd</td><td>the abbreviated localized day name (e.g. 'Mon' to 'Sun')</td></tr><tr valign=\"top\"><td>dddd</td><td>the long localized day name (e.g. 'Monday' to 'Sunday')</td></tr><tr valign=\"top\"><td>M</td><td>the month as number without a leading zero (1-12)</td></tr><tr valign=\"top\"><td>MM</td><td>the month as number with a leading zero (01-12)</td></tr><tr valign=\"top\"><td>MMM</td><td>the abbreviated localized month name (e.g. 'Jan' to 'Dec')</td></tr><tr valign=\"top\"><td>MMMM</td><td>the long localized month name (e.g. 'January' to 'December')</td></tr><tr valign=\"top\"><td>yy</td><td>the year as two digit number (00-99)</td></tr><tr valign=\"top\"><td>yyyy</td><td>the year as four digit number</td></tr></table><p>These expressions may be used for the time part of the format string:</p><table><thead><tr><th>Expression</th><th>Output</th></tr></thead><tr valign=\"top\"><td>h</td><td>the hour without a leading zero (0 to 23 or 1 to 12 if AM/PM display)</td></tr><tr valign=\"top\"><td>hh</td><td>the hour with a leading zero (00 to 23 or 01 to 12 if AM/PM display)</td></tr><tr valign=\"top\"><td>H</td><td>the hour without a leading zero (0 to 23, even with AM/PM display)</td></tr><tr valign=\"top\"><td>HH</td><td>the hour with a leading zero (00 to 23, even with AM/PM display)</td></tr><tr valign=\"top\"><td>m</td><td>the minute without a leading zero (0 to 59)</td></tr><tr valign=\"top\"><td>mm</td><td>the minute with a leading zero (00 to 59)</td></tr><tr valign=\"top\"><td>s</td><td>the second without a leading zero (0 to 59)</td></tr><tr valign=\"top\"><td>ss</td><td>the second with a leading zero (00 to 59)</td></tr><tr valign=\"top\"><td>z</td><td>the milliseconds without leading zeroes (0 to 999)</td></tr><tr valign=\"top\"><td>zzz</td><td>the milliseconds with leading zeroes (000 to 999)</td></tr><tr valign=\"top\"><td>AP or A</td><td>interpret as an AM/PM time. <i>AP</i> must be either \"AM\" or \"PM\".</td></tr><tr valign=\"top\"><td>ap or a</td><td>Interpret as an AM/PM time. <i>ap</i> must be either \"am\" or \"pm\".</td></tr></table>" ),
false,
false ),
1197 <<
HelpExample(
tr(
"format_date('2012-05-15','dd.MM.yyyy')" ),
tr(
"'15.05.2012'" ),
tr(
"") )
1203 Help(
"format_number",
tr(
"function" ),
tr(
"Returns a number formatted with the locale separator for thousands. Also truncates the number to the number of supplied places." ),
1205 <<
HelpVariant(
tr(
"format_number" ),
tr(
"Returns a number formatted with the locale separator for thousands. Also truncates the number to the number of supplied places." ),
1207 <<
HelpArg(
tr(
"number" ),
tr(
"number to be formatted" ),
false,
false )
1208 <<
HelpArg(
tr(
"places" ),
tr(
"integer representing the number of decimal places to truncate the string to." ),
false,
false ),
1211 <<
HelpExample(
tr(
"format_number(10000000.332,2)" ),
tr(
"'10,000,000.33'" ),
tr(
"") )
1217 Help(
"geom_from_gml",
tr(
"function" ),
tr(
"Returns a geometry from a GML representation of geometry." ),
1219 <<
HelpVariant(
tr(
"geom_from_gml" ),
tr(
"Returns a geometry from a GML representation of geometry." ),
1221 <<
HelpArg(
tr(
"gml" ),
tr(
"GML representation of a geometry as a string" ),
false,
false ),
1224 <<
HelpExample(
tr(
"geom_from_gml( '<gml:LineString srsName=\"EPSG:4326\"><gml:coordinates>4,4 5,5 6,6</gml:coordinates></gml:LineString>')" ),
tr(
"a geometry object" ),
tr(
"") )
1230 Help(
"geom_from_wkt",
tr(
"function" ),
tr(
"Returns a geometry created from a Well-Known Text (WKT) representation." ),
1232 <<
HelpVariant(
tr(
"geom_from_wkt" ),
tr(
"Returns a geometry created from a Well-Known Text (WKT) representation." ),
1234 <<
HelpArg(
tr(
"text" ),
tr(
"Well-Known Text (WKT) representation of a geometry" ),
false,
false ),
1237 <<
HelpExample(
tr(
"geom_from_wkt( 'POINT(4 5)' )" ),
tr(
"a geometry object" ),
tr(
"") )
1243 Help(
"geom_to_wkt",
tr(
"function" ),
tr(
"Returns the Well-Known Text (WKT) representation of the geometry without SRID metadata." ),
1245 <<
HelpVariant(
tr(
"geom_to_wkt" ),
tr(
"Returns the Well-Known Text (WKT) representation of the geometry without SRID metadata." ),
1247 <<
HelpArg(
tr(
"geometry" ),
tr(
"a geometry" ),
false,
false ),
1250 <<
HelpExample(
tr(
"geom_to_wkt( $geometry )" ),
tr(
"POINT(6 50)" ),
tr(
"") )
1256 Help(
"geometry",
tr(
"function" ),
tr(
"Returns a feature's geometry." ),
1258 <<
HelpVariant(
tr(
"geometry" ),
tr(
"Returns a feature's geometry." ),
1260 <<
HelpArg(
tr(
"feature" ),
tr(
"a feature object" ),
false,
false ),
1263 <<
HelpExample(
tr(
"geom_to_wkt( geometry( get_feature( layer, attributeField, value ) ) )" ),
tr(
"'POINT(6 50)'" ),
tr(
"") )
1264 <<
HelpExample(
tr(
"intersects( $geometry, geometry( get_feature( layer, attributeField, value ) ) )" ),
tr(
"true" ),
tr(
"") )
1270 Help(
"get_feature",
tr(
"function" ),
tr(
"Returns the first feature of a layer matching a given attribute value." ),
1272 <<
HelpVariant(
tr(
"get_feature" ),
tr(
"Returns the first feature of a layer matching a given attribute value." ),
1274 <<
HelpArg(
tr(
"layer" ),
tr(
"layer name or ID" ),
false,
false )
1275 <<
HelpArg(
tr(
"attribute" ),
tr(
"attribute name" ),
false,
false )
1276 <<
HelpArg(
tr(
"value" ),
tr(
"attribute value to match" ),
false,
false ),
1279 <<
HelpExample(
tr(
"get_feature('streets','name','main st')" ),
tr(
"first feature found in \"streets\" layer with \"main st\" value in the \"name\" field" ),
tr(
"") )
1285 Help(
"hamming_distance",
tr(
"function" ),
tr(
"Returns the Hamming distance between two strings. This equates to the number of characters at corresponding positions within the input strings where the characters are different. The input strings must be the same length, and the comparison is case-sensitive." ),
1287 <<
HelpVariant(
tr(
"hamming_distance" ),
tr(
"Returns the Hamming distance between two strings. This equates to the number of characters at corresponding positions within the input strings where the characters are different. The input strings must be the same length, and the comparison is case-sensitive." ),
1289 <<
HelpArg(
tr(
"string1" ),
tr(
"a string" ),
false,
false )
1290 <<
HelpArg(
tr(
"string2" ),
tr(
"a string" ),
false,
false ),
1295 <<
HelpExample(
tr(
"hamming_distance(upper('abc'),upper('ABC'))" ),
tr(
"0" ),
tr(
"") )
1301 Help(
"hour",
tr(
"function" ),
tr(
"Extract the hour part from a datetime or time, or the number of hours from an interval." ),
1303 <<
HelpVariant(
tr(
"Time variant" ),
tr(
"Extract the hour part from a time or datetime." ),
1305 <<
HelpArg(
tr(
"datetime" ),
tr(
"a time or datetime value" ),
false,
false ),
1310 <<
HelpVariant(
tr(
"Interval variant" ),
tr(
"Calculate the length in hours of an interval." ),
1312 <<
HelpArg(
tr(
"interval" ),
tr(
"interval value to return number of hours from" ),
false,
false ),
1316 <<
HelpExample(
tr(
"hour(age('2012-07-22T13:00:00','2012-07-22T10:00:00'))" ),
tr(
"3" ),
tr(
"") )
1317 <<
HelpExample(
tr(
"hour(age('2012-01-01','2010-01-01'))" ),
tr(
"17520" ),
tr(
"") )
1323 Help(
"if",
tr(
"function" ),
tr(
"Tests a condition and returns a different result depending on the conditional check." ),
1325 <<
HelpVariant(
tr(
"if" ),
tr(
"Tests a condition and returns a different result depending on the conditional check." ),
1327 <<
HelpArg(
tr(
"condition" ),
tr(
"the condition which should be checked" ),
false,
false )
1328 <<
HelpArg(
tr(
"result_when_true" ),
tr(
"the result which will be returned when the condition is True" ),
false,
false )
1329 <<
HelpArg(
tr(
"result_when_false" ),
tr(
"the result which will be returned when the condition is False" ),
false,
false ),
1339 Help(
"intersection",
tr(
"function" ),
tr(
"Returns a geometry that represents the shared portion of two geometries." ),
1341 <<
HelpVariant(
tr(
"intersection" ),
tr(
"Returns a geometry that represents the shared portion of two geometries." ),
1343 <<
HelpArg(
tr(
"geometry1" ),
tr(
"a geometry" ),
false,
false )
1344 <<
HelpArg(
tr(
"geometry2" ),
tr(
"a geometry" ),
false,
false ),
1347 <<
HelpExample(
tr(
"geom_to_wkt( intersection( geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4)' ) ) )" ),
tr(
"LINESTRING(3 3, 4 4)" ),
tr(
"") )
1353 Help(
"intersects",
tr(
"function" ),
tr(
"Tests whether a geometry intersects another. Returns true if the geometries spatially intersect (share any portion of space) and false if they do not." ),
1355 <<
HelpVariant(
tr(
"intersects" ),
tr(
"Tests whether a geometry intersects another. Returns true if the geometries spatially intersect (share any portion of space) and false if they do not." ),
1357 <<
HelpArg(
tr(
"geometry a" ),
tr(
"a geometry" ),
false,
false )
1358 <<
HelpArg(
tr(
"geometry b" ),
tr(
"a geometry" ),
false,
false ),
1361 <<
HelpExample(
tr(
"intersects( geom_from_wkt( 'POINT(4 4)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ) )" ),
tr(
"true" ),
tr(
"") )
1362 <<
HelpExample(
tr(
"intersects( geom_from_wkt( 'POINT(4 5)' ), geom_from_wkt( 'POINT(5 5)' ) )" ),
tr(
"false" ),
tr(
"") )
1368 Help(
"intersects_bbox",
tr(
"function" ),
tr(
"Tests whether a geometry's bounding box overlaps another geometry's bounding box. Returns true if the geometries spatially intersect the bounding box defined and false if they do not." ),
1370 <<
HelpVariant(
tr(
"intersects_bbox" ),
tr(
"Tests whether a geometry's bounding box overlaps another geometry's bounding box. Returns true if the geometries spatially intersect the bounding box defined and false if they do not." ),
1372 <<
HelpArg(
tr(
"geometry" ),
tr(
"a geometry" ),
false,
false )
1373 <<
HelpArg(
tr(
"geometry" ),
tr(
"a geometry" ),
false,
false ),
1376 <<
HelpExample(
tr(
"intersects_bbox( geom_from_wkt( 'POINT(4 5)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ) )" ),
tr(
"true" ),
tr(
"") )
1377 <<
HelpExample(
tr(
"intersects_bbox( geom_from_wkt( 'POINT(6 5)' ), geom_from_wkt( 'POLYGON((3 3, 4 4, 5 5, 3 3))' ) )" ),
tr(
"false" ),
tr(
"") )
1383 Help(
"layer_property",
tr(
"function" ),
tr(
"Returns a matching layer property or metadata value." ),
1385 <<
HelpVariant(
tr(
"layer_property" ),
tr(
"Returns a matching layer property or metadata value." ),
1387 <<
HelpArg(
tr(
"layer" ),
tr(
"a string, representing either a layer name or layer ID" ),
false,
false )
1388 <<
HelpArg(
tr(
"property" ),
tr(
"a string corresponding to the property to return. Valid options are:<br /><ul><li>name: layer name</li><li>id: layer ID</li><li>title: metadata title string</li><li>abstract: metadata abstract string</li><li>keywords: metadata keywords</li><li>data_url: metadata URL</li><li>attribution: metadata attribution string</li><li>attribution_url: metadata attribution URL</li><li>source: layer source</li><li>min_scale: minimum display scale for layer</li><li>max_scale: maximum display scale for layer</li><li>crs: layer CRS</li><li>crs_definition: layer CRS full definition</li> <li>extent: layer extent (as a geometry object)</li><li>type: layer type, eg Vector or Raster</li><li>storage_type: storage format (vector layers only)</li><li>geometry_type: geometry type, eg Point (vector layers only)</li><li>feature_count: approximate feature count for layer (vector layers only)</li></ul>" ),
false,
false ),
1391 <<
HelpExample(
tr(
"layer_property('streets','title')" ),
tr(
"'Basemap Streets'" ),
tr(
"") )
1392 <<
HelpExample(
tr(
"layer_property('airports','feature_count')" ),
tr(
"120" ),
tr(
"") )
1393 <<
HelpExample(
tr(
"layer_property('landsat','crs')" ),
tr(
"'EPSG:4326'" ),
tr(
"") )
1399 Help(
"left",
tr(
"function" ),
tr(
"Returns a substring that contains the <i>n</i> leftmost characters of the string." ),
1401 <<
HelpVariant(
tr(
"left" ),
tr(
"Returns a substring that contains the <i>n</i> leftmost characters of the string." ),
1403 <<
HelpArg(
tr(
"string" ),
tr(
"a string" ),
false,
false )
1404 <<
HelpArg(
tr(
"length" ),
tr(
"integer. The number of characters from the left of the string to return." ),
false,
false ),
1413 Help(
"length",
tr(
"function" ),
tr(
"Returns the number of characters in a string or the length of a geometry linestring." ),
1415 <<
HelpVariant(
tr(
"String variant" ),
tr(
"Returns the number of characters in a string." ),
1417 <<
HelpArg(
tr(
"string" ),
tr(
"string to count length of" ),
false,
false ),
1422 <<
HelpVariant(
tr(
"Geometry variant" ),
tr(
"Calculate the length of a geometry line object. Calculations are in the Spatial Reference System of this geometry." ),
1424 <<
HelpArg(
tr(
"geometry" ),
tr(
"line geometry object" ),
false,
false ),
1427 <<
HelpExample(
tr(
"length(geom_from_wkt('LINESTRING(0 0, 4 0)'))" ),
tr(
"4.0" ),
tr(
"") )
1433 Help(
"levenshtein",
tr(
"function" ),
tr(
"Returns the Levenshtein edit distance between two strings. This equates to the minimum number of character edits (insertions, deletions or substitutions) required to change one string to another.<br />The Levenshtein distance is a measure of the similarity between two strings. Smaller distances mean the strings are more similar, and larger distances indicate more different strings. The distance is case sensitive." ),
1435 <<
HelpVariant(
tr(
"levenshtein" ),
tr(
"Returns the Levenshtein edit distance between two strings. This equates to the minimum number of character edits (insertions, deletions or substitutions) required to change one string to another.<br />The Levenshtein distance is a measure of the similarity between two strings. Smaller distances mean the strings are more similar, and larger distances indicate more different strings. The distance is case sensitive." ),
1437 <<
HelpArg(
tr(
"string1" ),
tr(
"a string" ),
false,
false )
1438 <<
HelpArg(
tr(
"string2" ),
tr(
"a string" ),
false,
false ),
1443 <<
HelpExample(
tr(
"levenshtein(upper('Kitten'),upper('kitten'))" ),
tr(
"0" ),
tr(
"") )
1449 Help(
"ln",
tr(
"function" ),
tr(
"Returns the natural logarithm of a value." ),
1451 <<
HelpVariant(
tr(
"ln" ),
tr(
"Returns the natural logarithm of a value." ),
1453 <<
HelpArg(
tr(
"value" ),
tr(
"numeric value" ),
false,
false ),
1463 Help(
"log",
tr(
"function" ),
tr(
"Returns the value of the logarithm of the passed value and base." ),
1465 <<
HelpVariant(
tr(
"log" ),
tr(
"Returns the value of the logarithm of the passed value and base." ),
1467 <<
HelpArg(
tr(
"base" ),
tr(
"any positive number" ),
false,
false )
1468 <<
HelpArg(
tr(
"value" ),
tr(
"any positive number" ),
false,
false ),
1478 Help(
"log10",
tr(
"function" ),
tr(
"Returns the value of the base 10 logarithm of the passed expression." ),
1480 <<
HelpVariant(
tr(
"log10" ),
tr(
"Returns the value of the base 10 logarithm of the passed expression." ),
1482 <<
HelpArg(
tr(
"value" ),
tr(
"any positive number" ),
false,
false ),
1492 Help(
"longest_common_substring",
tr(
"function" ),
tr(
"Returns the longest common substring between two strings. This substring is the longest string that is a substring of the two input strings. Eg, the longest common substring of \"ABABC\" and \"BABCA\" is \"ABC\". The substring is case sensitive." ),
1494 <<
HelpVariant(
tr(
"longest_common_substring" ),
tr(
"Returns the longest common substring between two strings. This substring is the longest string that is a substring of the two input strings. Eg, the longest common substring of \"ABABC\" and \"BABCA\" is \"ABC\". The substring is case sensitive." ),
1496 <<
HelpArg(
tr(
"string1" ),
tr(
"a string" ),
false,
false )
1497 <<
HelpArg(
tr(
"string2" ),
tr(
"a string" ),
false,
false ),
1500 <<
HelpExample(
tr(
"longest_common_substring('ABABC','BABCA')" ),
tr(
"'ABC'" ),
tr(
"") )
1501 <<
HelpExample(
tr(
"longest_common_substring('abcDeF','abcdef')" ),
tr(
"'abc'" ),
tr(
"") )
1502 <<
HelpExample(
tr(
"longest_common_substring(upper('abcDeF'),upper('abcdex'))" ),
tr(
"'ABCDE'" ),
tr(
"") )
1508 Help(
"lower",
tr(
"function" ),
tr(
"Converts a string to lower case letters." ),
1510 <<
HelpVariant(
tr(
"lower" ),
tr(
"Converts a string to lower case letters." ),
1512 <<
HelpArg(
tr(
"string" ),
tr(
"the string to convert to lower case" ),
false,
false ),
1521 Help(
"lpad",
tr(
"function" ),
tr(
"Returns a string padded to supplied width using a fill character." ),
1523 <<
HelpVariant(
tr(
"lpad" ),
tr(
"Returns a string padded to supplied width using a fill character." ),
1525 <<
HelpArg(
tr(
"string" ),
tr(
"string to pad" ),
false,
false )
1526 <<
HelpArg(
tr(
"width" ),
tr(
"length of new string" ),
false,
false )
1527 <<
HelpArg(
tr(
"fill" ),
tr(
"character to pad the remaining space with" ),
false,
false ),
1536 Help(
"make_point",
tr(
"function" ),
tr(
"Creates a point geometry from an x and y value." ),
1538 <<
HelpVariant(
tr(
"make_point" ),
tr(
"Creates a point geometry from an x and y value." ),
1540 <<
HelpArg(
tr(
"x" ),
tr(
"x coordinate of point" ),
false,
false )
1541 <<
HelpArg(
tr(
"y" ),
tr(
"y coordinate of point" ),
false,
false ),
1544 <<
HelpExample(
tr(
"geom_to_wkt(make_point(2,4))" ),
tr(
"'Point (2 4)'" ),
tr(
"") )
1550 Help(
"max",
tr(
"function" ),
tr(
"Returns the largest value in a set of values." ),
1552 <<
HelpVariant(
tr(
"max" ),
tr(
"Returns the largest value in a set of values." ),
1554 <<
HelpArg(
tr(
"value1" ),
tr(
"" ),
false,
true )
1555 <<
HelpArg(
tr(
"value2" ),
tr(
"" ),
false,
true )
1556 <<
HelpArg(
tr(
"value" ),
tr(
"a number" ),
true,
false ),
1565 Help(
"min",
tr(
"function" ),
tr(
"Returns the smallest value in a set of values." ),
1567 <<
HelpVariant(
tr(
"min" ),
tr(
"Returns the smallest value in a set of values." ),
1569 <<
HelpArg(
tr(
"value1" ),
tr(
"" ),
false,
true )
1570 <<
HelpArg(
tr(
"value2" ),
tr(
"" ),
false,
true )
1571 <<
HelpArg(
tr(
"value" ),
tr(
"a number" ),
true,
false ),
1580 Help(
"minute",
tr(
"function" ),
tr(
"Extract the minutes part from a datetime or time, or the number of minutes from an interval." ),
1582 <<
HelpVariant(
tr(
"Time variant" ),
tr(
"Extract the minutes part from a time or datetime." ),
1584 <<
HelpArg(
tr(
"datetime" ),
tr(
"a time or datetime value" ),
false,
false ),
1589 <<
HelpVariant(
tr(
"Interval variant" ),
tr(
"Calculate the length in minutes of an interval." ),
1591 <<
HelpArg(
tr(
"interval" ),
tr(
"interval value to return number of minutes from" ),
false,
false ),
1595 <<
HelpExample(
tr(
"minute(age('2012-07-22T00:20:00','2012-07-22T00:00:00'))" ),
tr(
"20" ),
tr(
"") )
1596 <<
HelpExample(
tr(
"minute(age('2012-01-01','2010-01-01'))" ),
tr(
"1051200" ),
tr(
"") )
1602 Help(
"month",
tr(
"function" ),
tr(
"Extract the month part from a date, or the number of months from an interval." ),
1604 <<
HelpVariant(
tr(
"Date variant" ),
tr(
"Extract the month part from a date or datetime." ),
1606 <<
HelpArg(
tr(
"date" ),
tr(
"a date or datetime value" ),
false,
false ),
1611 <<
HelpVariant(
tr(
"Interval variant" ),
tr(
"Calculate the length in months of an interval." ),
1613 <<
HelpArg(
tr(
"interval" ),
tr(
"interval value to return number of months from" ),
false,
false ),
1617 <<
HelpExample(
tr(
"month(age('2012-01-01','2010-01-01'))" ),
tr(
"4.03333" ),
tr(
"") )
1623 Help(
"now",
tr(
"function" ),
tr(
"Returns the current date and time." ),
1625 <<
HelpVariant(
tr(
"now" ),
tr(
"Returns the current date and time." ),
1635 Help(
"num_points",
tr(
"function" ),
tr(
"Returns the number of vertices in a geometry." ),
1637 <<
HelpVariant(
tr(
"num_points" ),
tr(
"Returns the number of vertices in a geometry." ),
1639 <<
HelpArg(
tr(
"geom" ),
tr(
"a geometry" ),
false,
false ),
1642 <<
HelpExample(
tr(
"num_points($geometry)" ),
tr(
"number of vertices in $geometry" ),
tr(
"") )
1648 Help(
"*",
tr(
"operator" ),
tr(
"Multiplication of two values" ),
1652 <<
HelpArg(
tr(
"a" ),
tr(
"value" ),
false,
false )
1653 <<
HelpArg(
tr(
"b" ),
tr(
"value" ),
false,
false ),
1663 Help(
"||",
tr(
"operator" ),
tr(
"Joins two values together into a string.\n\nIf one of the values is NULL the result will be NULL. See the CONCAT function for a different behavior." ),
1665 <<
HelpVariant(
tr(
"||" ),
tr(
"Joins two values together into a string.\n\nIf one of the values is NULL the result will be NULL. See the CONCAT function for a different behavior." ),
1667 <<
HelpArg(
tr(
"a" ),
tr(
"value" ),
false,
false )
1668 <<
HelpArg(
tr(
"b" ),
tr(
"value" ),
false,
false ),
1671 <<
HelpExample(
tr(
"'Here' || ' and ' || 'there'" ),
tr(
"'Here and there'" ),
tr(
"") )
1680 Help(
"/",
tr(
"operator" ),
tr(
"Division of two values" ),
1684 <<
HelpArg(
tr(
"a" ),
tr(
"value" ),
false,
false )
1685 <<
HelpArg(
tr(
"b" ),
tr(
"value" ),
false,
false ),
1695 Help(
"=",
tr(
"operator" ),
tr(
"Compares two values and evaluates to 1 if they are equal." ),
1697 <<
HelpVariant(
tr(
"=" ),
tr(
"Compares two values and evaluates to 1 if they are equal." ),
1699 <<
HelpArg(
tr(
"a" ),
tr(
"value" ),
false,
false )
1700 <<
HelpArg(
tr(
"b" ),
tr(
"value" ),
false,
false ),
1712 Help(
"^",
tr(
"operator" ),
tr(
"Power of two values." ),
1716 <<
HelpArg(
tr(
"a" ),
tr(
"value" ),
false,
false )
1717 <<
HelpArg(
tr(
"b" ),
tr(
"value" ),
false,
false ),
1727 Help(
">=",
tr(
"operator" ),
tr(
"Compares two values and evaluates to 1 if the left value is greater or equal than the right value." ),
1729 <<
HelpVariant(
tr(
">=" ),
tr(
"Compares two values and evaluates to 1 if the left value is greater or equal than the right value." ),
1731 <<
HelpArg(
tr(
"a" ),
tr(
"value" ),
false,
false )
1732 <<
HelpArg(
tr(
"b" ),
tr(
"value" ),
false,
false ),
1743 Help(
">",
tr(
"operator" ),
tr(
"Compares two values and evaluates to 1 if the left value is greater than the right value." ),
1745 <<
HelpVariant(
tr(
">" ),
tr(
"Compares two values and evaluates to 1 if the left value is greater than the right value." ),
1747 <<
HelpArg(
tr(
"a" ),
tr(
"value" ),
false,
false )
1748 <<
HelpArg(
tr(
"b" ),
tr(
"value" ),
false,
false ),
1759 Help(
"<=",
tr(
"operator" ),
tr(
"Compares two values and evaluates to 1 if the left value is less or equal than the right value." ),
1761 <<
HelpVariant(
tr(
"<=" ),
tr(
"Compares two values and evaluates to 1 if the left value is less or equal than the right value." ),
1763 <<
HelpArg(
tr(
"a" ),
tr(
"value" ),
false,
false )
1764 <<
HelpArg(
tr(
"b" ),
tr(
"value" ),
false,
false ),
1775 Help(
"<",
tr(
"operator" ),
tr(
"Compares two values and evaluates to 1 if the left value is less than the right value." ),
1777 <<
HelpVariant(
tr(
"<" ),
tr(
"Compares two values and evaluates to 1 if the left value is less than the right value." ),
1779 <<
HelpArg(
tr(
"a" ),
tr(
"value" ),
false,
false )
1780 <<
HelpArg(
tr(
"b" ),
tr(
"value" ),
false,
false ),
1791 Help(
"-",
tr(
"operator" ),
tr(
"Subtraction of two values. If one of the values is NULL the result will be NULL." ),
1793 <<
HelpVariant(
tr(
"-" ),
tr(
"Subtraction of two values. If one of the values is NULL the result will be NULL." ),
1795 <<
HelpArg(
tr(
"a" ),
tr(
"value" ),
false,
false )
1796 <<
HelpArg(
tr(
"b" ),
tr(
"value" ),
false,
false ),
1806 Help(
"%",
tr(
"operator" ),
tr(
"Remainder of division" ),
1810 <<
HelpArg(
tr(
"a" ),
tr(
"value" ),
false,
false )
1811 <<
HelpArg(
tr(
"b" ),
tr(
"value" ),
false,
false ),
1821 Help(
"<>",
tr(
"operator" ),
tr(
"Compares two values and evaluates to 1 if they are not equal." ),
1823 <<
HelpVariant(
tr(
"<>" ),
tr(
"Compares two values and evaluates to 1 if they are not equal." ),
1825 <<
HelpArg(
tr(
"a" ),
tr(
"value" ),
false,
false )
1826 <<
HelpArg(
tr(
"b" ),
tr(
"value" ),
false,
false ),
1838 Help(
"+",
tr(
"operator" ),
tr(
"Addition of two values. If one of the values is NULL the result will be NULL." ),
1840 <<
HelpVariant(
tr(
"+" ),
tr(
"Addition of two values. If one of the values is NULL the result will be NULL." ),
1842 <<
HelpArg(
tr(
"a" ),
tr(
"value" ),
false,
false )
1843 <<
HelpArg(
tr(
"b" ),
tr(
"value" ),
false,
false ),
1853 Help(
"overlaps",
tr(
"function" ),
tr(
"Tests whether a geometry overlaps another. Returns true if the geometries share space, are of the same dimension, but are not completely contained by each other." ),
1855 <<
HelpVariant(
tr(
"overlaps" ),
tr(
"Tests whether a geometry overlaps another. Returns true if the geometries share space, are of the same dimension, but are not completely contained by each other." ),
1857 <<
HelpArg(
tr(
"geometry a" ),
tr(
"a geometry" ),
false,
false )
1858 <<
HelpArg(
tr(
"geometry b" ),
tr(
"a geometry" ),
false,
false ),
1861 <<
HelpExample(
tr(
"overlaps( geom_from_wkt( 'LINESTRING(3 5, 4 4, 5 5, 5 3)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ) )" ),
tr(
"true" ),
tr(
"") )
1862 <<
HelpExample(
tr(
"overlaps( geom_from_wkt( 'LINESTRING(0 0, 1 1)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ) )" ),
tr(
"false" ),
tr(
"") )
1868 Help(
"perimeter",
tr(
"function" ),
tr(
"Returns the perimeter of a geometry polygon object. Calculations are in the Spatial Reference System of this geometry." ),
1870 <<
HelpVariant(
tr(
"perimeter" ),
tr(
"Returns the perimeter of a geometry polygon object. Calculations are in the Spatial Reference System of this geometry." ),
1872 <<
HelpArg(
tr(
"geometry" ),
tr(
"polygon geometry object" ),
false,
false ),
1875 <<
HelpExample(
tr(
"perimeter(geom_from_wkt('POLYGON((0 0, 4 0, 4 2, 0 2, 0 0))'))" ),
tr(
"12.0" ),
tr(
"") )
1881 Help(
"pi",
tr(
"function" ),
tr(
"Returns value of pi for calculations." ),
1883 <<
HelpVariant(
tr(
"pi" ),
tr(
"Returns value of pi for calculations." ),
1893 Help(
"point_n",
tr(
"function" ),
tr(
"Returns a specific node from a geometry." ),
1895 <<
HelpVariant(
tr(
"point_n" ),
tr(
"Returns a specific node from a geometry." ),
1897 <<
HelpArg(
tr(
"geometry" ),
tr(
"geometry object" ),
false,
false )
1898 <<
HelpArg(
tr(
"index" ),
tr(
"index of node to return, where 1 is the first node" ),
false,
false ),
1901 <<
HelpExample(
tr(
"geom_to_wkt(point_n(geom_from_wkt('POLYGON((0 0, 4 0, 4 2, 0 2, 0 0))'),2))" ),
tr(
"'Point (4 0)'" ),
tr(
"") )
1907 Help(
"project_color",
tr(
"function" ),
tr(
"Returns a color from the project's color scheme." ),
1909 <<
HelpVariant(
tr(
"project_color" ),
tr(
"Returns a color from the project's color scheme." ),
1911 <<
HelpArg(
tr(
"name" ),
tr(
"a color name" ),
false,
false ),
1914 <<
HelpExample(
tr(
"project_color('Logo color')" ),
tr(
"20,140,50" ),
tr(
"") )
1920 Help(
"ramp_color",
tr(
"function" ),
tr(
"Returns a string representing a color from a color ramp." ),
1922 <<
HelpVariant(
tr(
"ramp_color" ),
tr(
"Returns a string representing a color from a color ramp." ),
1924 <<
HelpArg(
tr(
"ramp_name" ),
tr(
"the name of the color ramp as a string, for example 'Spectral'" ),
false,
false )
1925 <<
HelpArg(
tr(
"value" ),
tr(
"the position on the ramp to select the color from as a real number between 0 and 1" ),
false,
false ),
1928 <<
HelpExample(
tr(
"ramp_color('Spectral',0.3)" ),
tr(
"'253,190,115,255'" ),
tr(
"") ),
1929 tr(
"The color ramps available vary between QGIS installations. This function may not give the expected results if you move your QGIS project between installations." )
1935 Help(
"rand",
tr(
"function" ),
tr(
"Returns a random integer within the range specified by the minimum and maximum argument (inclusive)." ),
1937 <<
HelpVariant(
tr(
"rand" ),
tr(
"Returns a random integer within the range specified by the minimum and maximum argument (inclusive)." ),
1939 <<
HelpArg(
tr(
"min" ),
tr(
"an integer representing the smallest possible random number desired" ),
false,
false )
1940 <<
HelpArg(
tr(
"max" ),
tr(
"an integer representing the largest possible random number desired" ),
false,
false ),
1949 Help(
"randf",
tr(
"function" ),
tr(
"Returns a random float within the range specified by the minimum and maximum argument (inclusive)." ),
1951 <<
HelpVariant(
tr(
"randf" ),
tr(
"Returns a random float within the range specified by the minimum and maximum argument (inclusive)." ),
1953 <<
HelpArg(
tr(
"min" ),
tr(
"an float representing the smallest possible random number desired" ),
false,
false )
1954 <<
HelpArg(
tr(
"max" ),
tr(
"an float representing the largest possible random number desired" ),
false,
false ),
1963 Help(
"regexp_match",
tr(
"function" ),
tr(
"Returns true if any part of a string matches the supplied regular expression." ),
1965 <<
HelpVariant(
tr(
"regexp_match" ),
tr(
"Returns true if any part of a string matches the supplied regular expression." ),
1967 <<
HelpArg(
tr(
"input_string" ),
tr(
"the string to test against the regular expression" ),
false,
false )
1968 <<
HelpArg(
tr(
"regex" ),
tr(
"The regular expression to test against. Backslash characters must be double escaped (eg \"\\s\" to match a white space character). Non-greedy regular expressions are not supported." ),
false,
false ),
1971 <<
HelpExample(
tr(
"regexp_match('QGIS ROCKS','\\sROCKS')" ),
tr(
"true" ),
tr(
"") )
1977 Help(
"regexp_replace",
tr(
"function" ),
tr(
"Returns a string with the supplied regular expression replaced." ),
1979 <<
HelpVariant(
tr(
"regexp_replace" ),
tr(
"Returns a string with the supplied regular expression replaced." ),
1981 <<
HelpArg(
tr(
"input_string" ),
tr(
"the string to replace matches in" ),
false,
false )
1982 <<
HelpArg(
tr(
"regex" ),
tr(
"The regular expression to replace. Backslash characters must be double escaped (eg \"\\s\" to match a white space character). Non-greedy regular expressions are not supported." ),
false,
false )
1983 <<
HelpArg(
tr(
"replacement" ),
tr(
"The string that will replace any matching occurrences of the supplied regular expression. Captured groups can be inserted into the replacement string using \\1, \\2, etc." ),
false,
false ),
1986 <<
HelpExample(
tr(
"regexp_replace('QGIS SHOULD ROCK','\\sSHOULD\\s',' DOES ')" ),
tr(
"'QGIS DOES ROCK'" ),
tr(
"") )
1992 Help(
"regexp_substr",
tr(
"function" ),
tr(
"Returns the portion of a string which matches a supplied regular expression." ),
1994 <<
HelpVariant(
tr(
"regexp_substr" ),
tr(
"Returns the portion of a string which matches a supplied regular expression." ),
1996 <<
HelpArg(
tr(
"input_string" ),
tr(
"the string to find matches in" ),
false,
false )
1997 <<
HelpArg(
tr(
"regex" ),
tr(
"The regular expression to match against. Backslash characters must be double escaped (eg \"\\s\" to match a white space character). Non-greedy regular expressions are not supported." ),
false,
false ),
2000 <<
HelpExample(
tr(
"regexp_substr('abc123','(\\d+)')" ),
tr(
"'123'" ),
tr(
"") )
2006 Help(
"replace",
tr(
"function" ),
tr(
"Returns a string with the the supplied string replaced." ),
2008 <<
HelpVariant(
tr(
"replace" ),
tr(
"Returns a string with the the supplied string replaced." ),
2010 <<
HelpArg(
tr(
"string" ),
tr(
"the input string" ),
false,
false )
2011 <<
HelpArg(
tr(
"before" ),
tr(
"the string to replace" ),
false,
false )
2012 <<
HelpArg(
tr(
"after" ),
tr(
"the string to use as a replacement" ),
false,
false ),
2015 <<
HelpExample(
tr(
"replace('QGIS SHOULD ROCK','SHOULD','DOES')" ),
tr(
"'QGIS DOES ROCK'" ),
tr(
"") )
2021 Help(
"right",
tr(
"function" ),
tr(
"Returns a substring that contains the <i>n</i> rightmost characters of the string." ),
2023 <<
HelpVariant(
tr(
"right" ),
tr(
"Returns a substring that contains the <i>n</i> rightmost characters of the string." ),
2025 <<
HelpArg(
tr(
"string" ),
tr(
"a string" ),
false,
false )
2026 <<
HelpArg(
tr(
"length" ),
tr(
"integer. The number of characters from the right of the string to return." ),
false,
false ),
2035 Help(
"round",
tr(
"function" ),
tr(
"Rounds a number to number of decimal places." ),
2037 <<
HelpVariant(
tr(
"round" ),
tr(
"Rounds a number to number of decimal places." ),
2039 <<
HelpArg(
tr(
"decimal" ),
tr(
"decimal number to be rounded" ),
false,
false )
2040 <<
HelpArg(
tr(
"places" ),
tr(
"Optional integer representing number of places to round decimals to. Can be negative." ),
false,
false ),
2050 Help(
"rpad",
tr(
"function" ),
tr(
"Returns a string padded to supplied width using a fill character." ),
2052 <<
HelpVariant(
tr(
"rpad" ),
tr(
"Returns a string padded to supplied width using a fill character." ),
2054 <<
HelpArg(
tr(
"string" ),
tr(
"string to pad" ),
false,
false )
2055 <<
HelpArg(
tr(
"width" ),
tr(
"length of new string" ),
false,
false )
2056 <<
HelpArg(
tr(
"fill" ),
tr(
"character to pad the remaining space with" ),
false,
false ),
2065 Help(
"scale_exp",
tr(
"function" ),
tr(
"Transforms a given value from an input domain to an output range using an exponential curve. This function can be used to ease values in or out of the specified output range." ),
2067 <<
HelpVariant(
tr(
"scale_exp" ),
tr(
"Transforms a given value from an input domain to an output range using an exponential curve. This function can be used to ease values in or out of the specified output range." ),
2069 <<
HelpArg(
tr(
"val" ),
tr(
"A value in the input domain. The function will return a corresponding scaled value in the output range." ),
false,
false )
2070 <<
HelpArg(
tr(
"domain_min" ),
tr(
"Specifies the minimum value in the input domain, the smallest value the input value should take." ),
false,
false )
2071 <<
HelpArg(
tr(
"domain_max" ),
tr(
"Specifies the maximum value in the input domain, the largest value the input value should take." ),
false,
false )
2072 <<
HelpArg(
tr(
"range_min" ),
tr(
"Specifies the minimum value in the output range, the smallest value which should be output by the function." ),
false,
false )
2073 <<
HelpArg(
tr(
"range_max" ),
tr(
"Specifies the maximum value in the output range, the largest value which should be output by the function." ),
false,
false )
2074 <<
HelpArg(
tr(
"exponent" ),
tr(
"A positive value (greater than 0), which dictates the way input values are mapped to the output range. Large exponents will cause the output values to 'ease in', starting slowly before accelerating as the input values approach the domain maximum. Smaller exponents (less than 1) will cause output values to 'ease out', where the mapping starts quickly but slows as it approaches the domain maximum." ),
false,
false ),
2077 <<
HelpExample(
tr(
"scale_exp(5,0,10,0,100,2)" ),
tr(
"25" ),
tr(
"easing in, using an exponent of 2") )
2078 <<
HelpExample(
tr(
"scale_exp(3,0,10,0,100,0.5)" ),
tr(
"54.772" ),
tr(
"easing out, using an exponent of 0.5") )
2084 Help(
"scale_linear",
tr(
"function" ),
tr(
"Transforms a given value from an input domain to an output range using linear interpolation." ),
2086 <<
HelpVariant(
tr(
"scale_linear" ),
tr(
"Transforms a given value from an input domain to an output range using linear interpolation." ),
2088 <<
HelpArg(
tr(
"val" ),
tr(
"A value in the input domain. The function will return a corresponding scaled value in the output range." ),
false,
false )
2089 <<
HelpArg(
tr(
"domain_min" ),
tr(
"Specifies the minimum value in the input domain, the smallest value the input value should take." ),
false,
false )
2090 <<
HelpArg(
tr(
"domain_max" ),
tr(
"Specifies the maximum value in the input domain, the largest value the input value should take." ),
false,
false )
2091 <<
HelpArg(
tr(
"range_min" ),
tr(
"Specifies the minimum value in the output range, the smallest value which should be output by the function." ),
false,
false )
2092 <<
HelpArg(
tr(
"range_max" ),
tr(
"Specifies the maximum value in the output range, the largest value which should be output by the function." ),
false,
false ),
2096 <<
HelpExample(
tr(
"scale_linear(0.2,0,1,0,360)" ),
tr(
"72" ),
tr(
"scaling a value between 0 and 1 to an angle between 0 and 360") )
2097 <<
HelpExample(
tr(
"scale_linear(1500,1000,10000,9,20)" ),
tr(
"10.22" ),
tr(
"scaling a population which varies between 1000 and 10000 to a font size between 9 and 20") )
2103 Help(
"second",
tr(
"function" ),
tr(
"Extract the seconds part from a datetime or time, or the number of seconds from an interval." ),
2105 <<
HelpVariant(
tr(
"Time variant" ),
tr(
"Extract the seconds part from a time or datetime." ),
2107 <<
HelpArg(
tr(
"datetime" ),
tr(
"a time or datetime value" ),
false,
false ),
2112 <<
HelpVariant(
tr(
"Interval variant" ),
tr(
"Calculate the length in seconds of an interval." ),
2114 <<
HelpArg(
tr(
"interval" ),
tr(
"interval value to return number of seconds from" ),
false,
false ),
2117 <<
HelpExample(
tr(
"second(age('2012-07-22T00:20:00','2012-07-22T00:00:00'))" ),
tr(
"1200" ),
tr(
"") )
2118 <<
HelpExample(
tr(
"second(age('2012-01-01','2010-01-01'))" ),
tr(
"63072000" ),
tr(
"") )
2124 Help(
"set_color_part",
tr(
"function" ),
tr(
"Sets a specific color component for a color string, eg the red component or alpha component." ),
2126 <<
HelpVariant(
tr(
"set_color_part" ),
tr(
"Sets a specific color component for a color string, eg the red component or alpha component." ),
2128 <<
HelpArg(
tr(
"color" ),
tr(
"a color string" ),
false,
false )
2129 <<
HelpArg(
tr(
"component" ),
tr(
"a string corresponding to the color component to set. Valid options are:<br /><ul><li>red: RGB red component (0-255)</li><li>green: RGB green component (0-255)</li><li>blue: RGB blue component (0-255)</li><li>alpha: alpha (transparency) value (0-255)</li><li>hue: HSV hue (0-360)</li><li>saturation: HSV saturation (0-100)</li><li>value: HSV value (0-100)</li><li>hsl_hue: HSL hue (0-360)</li><li>hsl_saturation: HSL saturation (0-100)</li><li>lightness: HSL lightness (0-100)</li><li>cyan: CMYK cyan component (0-100)</li><li>magenta: CMYK magenta component (0-100)</li><li>yellow: CMYK yellow component (0-100)</li> <li>black: CMYK black component (0-100)</li></ul>" ),
false,
false )
2130 <<
HelpArg(
tr(
"value" ),
tr(
"new value for color component, respecting the ranges listed above" ),
false,
false ),
2133 <<
HelpExample(
tr(
"set_color_part('200,10,30','green',50)" ),
tr(
"200,50,30" ),
tr(
"") )
2139 Help(
"sin",
tr(
"function" ),
tr(
"Returns the sine of an angle." ),
2143 <<
HelpArg(
tr(
"angle" ),
tr(
"angle in radians" ),
false,
false ),
2152 Help(
"soundex",
tr(
"function" ),
tr(
"Returns the Soundex representation of a string. Soundex is a phonetic matching algorithm, so strings with similar sounds should be represented by the same Soundex code." ),
2154 <<
HelpVariant(
tr(
"soundex" ),
tr(
"Returns the Soundex representation of a string. Soundex is a phonetic matching algorithm, so strings with similar sounds should be represented by the same Soundex code." ),
2156 <<
HelpArg(
tr(
"string" ),
tr(
"a string" ),
false,
false ),
2167 Help(
"sqrt",
tr(
"function" ),
tr(
"Returns square root of a value." ),
2169 <<
HelpVariant(
tr(
"sqrt" ),
tr(
"Returns square root of a value." ),
2171 <<
HelpArg(
tr(
"value" ),
tr(
"a number" ),
false,
false ),
2180 Help(
"start_point",
tr(
"function" ),
tr(
"Returns the first node from a geometry." ),
2182 <<
HelpVariant(
tr(
"start_point" ),
tr(
"Returns the first node from a geometry." ),
2184 <<
HelpArg(
tr(
"geometry" ),
tr(
"geometry object" ),
false,
false ),
2187 <<
HelpExample(
tr(
"geom_to_wkt(start_point(geom_from_wkt('LINESTRING(4 0, 4 2, 0 2)')))" ),
tr(
"'Point (4 0)'" ),
tr(
"") )
2193 Help(
"strpos",
tr(
"function" ),
tr(
"Return the first matching position of a substring within another string, or -1 if the substring is not found." ),
2195 <<
HelpVariant(
tr(
"strpos" ),
tr(
"Return the first matching position of a substring within another string, or -1 if the substring is not found." ),
2197 <<
HelpArg(
tr(
"haystack" ),
tr(
"string that is to be searched" ),
false,
false )
2198 <<
HelpArg(
tr(
"needle" ),
tr(
"string to search for" ),
false,
false ),
2208 Help(
"substr",
tr(
"function" ),
tr(
"Returns a part of a string." ),
2212 <<
HelpArg(
tr(
"input_string" ),
tr(
"the full input string" ),
false,
false )
2213 <<
HelpArg(
tr(
"startpos" ),
tr(
"integer representing start position to extract from" ),
false,
false )
2214 <<
HelpArg(
tr(
"length" ),
tr(
"integer representing length of string to extract" ),
false,
false ),
2223 Help(
"sym_difference",
tr(
"function" ),
tr(
"Returns a geometry that represents the portions of two geometries that do not intersect." ),
2225 <<
HelpVariant(
tr(
"sym_difference" ),
tr(
"Returns a geometry that represents the portions of two geometries that do not intersect." ),
2227 <<
HelpArg(
tr(
"geometry1" ),
tr(
"a geometry" ),
false,
false )
2228 <<
HelpArg(
tr(
"geometry2" ),
tr(
"a geometry" ),
false,
false ),
2231 <<
HelpExample(
tr(
"geom_to_wkt( sym_difference( geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ), geom_from_wkt( 'LINESTRING(3 3, 8 8)' ) ) )" ),
tr(
"LINESTRING(5 5, 8 8)" ),
tr(
"") )
2237 Help(
"tan",
tr(
"function" ),
tr(
"Returns the tangent of an angle." ),
2239 <<
HelpVariant(
tr(
"tan" ),
tr(
"Returns the tangent of an angle." ),
2241 <<
HelpArg(
tr(
"angle" ),
tr(
"angle in radians" ),
false,
false ),
2250 Help(
"title",
tr(
"function" ),
tr(
"Converts all words of a string to title case (all words lower case with leading capital letter)." ),
2252 <<
HelpVariant(
tr(
"title" ),
tr(
"Converts all words of a string to title case (all words lower case with leading capital letter)." ),
2254 <<
HelpArg(
tr(
"string" ),
tr(
"the string to convert to title case" ),
false,
false ),
2263 Help(
"to_date",
tr(
"function" ),
tr(
"Convert a string into a date object." ),
2265 <<
HelpVariant(
tr(
"to_date" ),
tr(
"Convert a string into a date object." ),
2267 <<
HelpArg(
tr(
"string" ),
tr(
"string representing a date value" ),
false,
false ),
2276 Help(
"to_datetime",
tr(
"function" ),
tr(
"Convert a string into a datetime object." ),
2278 <<
HelpVariant(
tr(
"to_datetime" ),
tr(
"Convert a string into a datetime object." ),
2280 <<
HelpArg(
tr(
"string" ),
tr(
"string representing a datetime value" ),
false,
false ),
2283 <<
HelpExample(
tr(
"to_datetime('2012-05-04 12:50:00')" ),
tr(
"2012-05-04T12:50:00" ),
tr(
"") )
2289 Help(
"to_int",
tr(
"function" ),
tr(
"Converts a string to integer number. Nothing is returned if a value cannot be converted to integer (e.g '123asd' is invalid)." ),
2291 <<
HelpVariant(
tr(
"to_int" ),
tr(
"Converts a string to integer number. Nothing is returned if a value cannot be converted to integer (e.g '123asd' is invalid)." ),
2293 <<
HelpArg(
tr(
"string" ),
tr(
"string to convert to integer number" ),
false,
false ),
2302 Help(
"to_interval",
tr(
"function" ),
tr(
"Converts a string to a interval type. Can be used to take days, hours, month, etc of a date." ),
2304 <<
HelpVariant(
tr(
"to_interval" ),
tr(
"Converts a string to a interval type. Can be used to take days, hours, month, etc of a date." ),
2306 <<
HelpArg(
tr(
"string" ),
tr(
"a string representing an interval. Allowable formats include {n} days {n} hours {n} months." ),
false,
false ),
2309 <<
HelpExample(
tr(
"to_datetime('2012-05-05 12:00:00') - to_interval('1 day 2 hours')" ),
tr(
"2012-05-04T10:00:00" ),
tr(
"") )
2315 Help(
"to_real",
tr(
"function" ),
tr(
"Converts a string to a real number. Nothing is returned if a value cannot be converted to real (e.g '123.56asd' is invalid). Numbers are rounded after saving changes if the precision is smaller than the result of the conversion." ),
2317 <<
HelpVariant(
tr(
"to_real" ),
tr(
"Converts a string to a real number. Nothing is returned if a value cannot be converted to real (e.g '123.56asd' is invalid). Numbers are rounded after saving changes if the precision is smaller than the result of the conversion." ),
2319 <<
HelpArg(
tr(
"string" ),
tr(
"string to convert to real number" ),
false,
false ),
2328 Help(
"to_string",
tr(
"function" ),
tr(
"Converts a number to string." ),
2330 <<
HelpVariant(
tr(
"to_string" ),
tr(
"Converts a number to string." ),
2332 <<
HelpArg(
tr(
"number" ),
tr(
"Integer or real value. The number to convert to string." ),
false,
false ),
2341 Help(
"to_time",
tr(
"function" ),
tr(
"Convert a string into a time object." ),
2343 <<
HelpVariant(
tr(
"to_time" ),
tr(
"Convert a string into a time object." ),
2345 <<
HelpArg(
tr(
"string" ),
tr(
"string representing a time value" ),
false,
false ),
2354 Help(
"touches",
tr(
"function" ),
tr(
"Tests whether a geometry touches another. Returns true if the geometries have at least one point in common, but their interiors do not intersect." ),
2356 <<
HelpVariant(
tr(
"touches" ),
tr(
"Tests whether a geometry touches another. Returns true if the geometries have at least one point in common, but their interiors do not intersect." ),
2358 <<
HelpArg(
tr(
"geometry a" ),
tr(
"a geometry" ),
false,
false )
2359 <<
HelpArg(
tr(
"geometry b" ),
tr(
"a geometry" ),
false,
false ),
2362 <<
HelpExample(
tr(
"touches( geom_from_wkt( 'LINESTRING(5 3, 4 4)' ), geom_from_wkt( 'LINESTRING(3 3, 4 4, 5 5)' ) )" ),
tr(
"true" ),
tr(
"") )
2363 <<
HelpExample(
tr(
"touches( geom_from_wkt( 'POINT(4 4)' ), geom_from_wkt( 'POINT(5 5)' ) )" ),
tr(
"false" ),
tr(
"") )
2369 Help(
"transform",
tr(
"function" ),
tr(
"Returns the geometry transformed from a source CRS to a destination CRS." ),
2371 <<
HelpVariant(
tr(
"transform" ),
tr(
"Returns the geometry transformed from a source CRS to a destination CRS." ),
2373 <<
HelpArg(
tr(
"geom" ),
tr(
"a geometry" ),
false,
false )
2374 <<
HelpArg(
tr(
"source_auth_id" ),
tr(
"the source auth CRS ID" ),
false,
false )
2375 <<
HelpArg(
tr(
"dest_auth_id" ),
tr(
"the destination auth CRS ID" ),
false,
false ),
2378 <<
HelpExample(
tr(
"geom_to_wkt( transform( $geometry, 'EPSG:2154', 'EPSG:4326' ) )" ),
tr(
"POINT(0 51)" ),
tr(
"") )
2384 Help(
"trim",
tr(
"function" ),
tr(
"Removes all leading and trailing whitespace (spaces, tabs, etc) from a string." ),
2386 <<
HelpVariant(
tr(
"trim" ),
tr(
"Removes all leading and trailing whitespace (spaces, tabs, etc) from a string." ),
2388 <<
HelpArg(
tr(
"string" ),
tr(
"string to trim" ),
false,
false ),
2397 Help(
"union",
tr(
"function" ),
tr(
"Returns a geometry that represents the point set union of the geometries." ),
2399 <<
HelpVariant(
tr(
"union" ),
tr(
"Returns a geometry that represents the point set union of the geometries." ),
2401 <<
HelpArg(
tr(
"geometry1" ),
tr(
"a geometry" ),
false,
false )
2402 <<
HelpArg(
tr(
"geometry2" ),
tr(
"a geometry" ),
false,
false ),
2405 <<
HelpExample(
tr(
"geom_to_wkt( union( geom_from_wkt( 'POINT(4 4)' ), geom_from_wkt( 'POINT(5 5)' ) ) )" ),
tr(
"MULTIPOINT(4 4, 5 5)" ),
tr(
"") )
2411 Help(
"upper",
tr(
"function" ),
tr(
"Converts a string to upper case letters." ),
2413 <<
HelpVariant(
tr(
"upper" ),
tr(
"Converts a string to upper case letters." ),
2415 <<
HelpArg(
tr(
"string" ),
tr(
"the string to convert to upper case" ),
false,
false ),
2424 Help(
"uuid",
tr(
"function" ),
tr(
"Generates a Universally Unique Identifier (UUID) for each row using the Qt <a href='http://qt-project.org/doc/qt-4.8/quuid.html#createUuid'>QUuid::createUuid</a> method. Each UUID is 38 characters long." ),
2426 <<
HelpVariant(
tr(
"uuid" ),
tr(
"Generates a Universally Unique Identifier (UUID) for each row using the Qt <a href='http://qt-project.org/doc/qt-4.8/quuid.html#createUuid'>QUuid::createUuid</a> method. Each UUID is 38 characters long." ),
2430 <<
HelpExample(
tr(
"uuid()" ),
tr(
"'{0bd2f60f-f157-4a6d-96af-d4ba4cb366a1}'" ),
tr(
"") )
2436 Help(
"var",
tr(
"function" ),
tr(
"Returns the value stored within a specified variable." ),
2438 <<
HelpVariant(
tr(
"var" ),
tr(
"Returns the value stored within a specified variable." ),
2440 <<
HelpArg(
tr(
"name" ),
tr(
"a variable name" ),
false,
false ),
2449 Help(
"week",
tr(
"function" ),
tr(
"Extract the week number from a date, or the number of weeks from an interval." ),
2451 <<
HelpVariant(
tr(
"Date variant" ),
tr(
"Extract the week number from a date or datetime." ),
2453 <<
HelpArg(
tr(
"date" ),
tr(
"a date or datetime value" ),
false,
false ),
2458 <<
HelpVariant(
tr(
"Interval variant" ),
tr(
"Calculate the length in weeks of an interval." ),
2460 <<
HelpArg(
tr(
"interval" ),
tr(
"interval value to return number of months from" ),
false,
false ),
2464 <<
HelpExample(
tr(
"week(age('2012-01-01','2010-01-01'))" ),
tr(
"104.285" ),
tr(
"") )
2470 Help(
"within",
tr(
"function" ),
tr(
"Tests whether a geometry is within another. Returns true if the geometry a is completely within geometry b." ),
2472 <<
HelpVariant(
tr(
"within" ),
tr(
"Tests whether a geometry is within another. Returns true if the geometry a is completely within geometry b." ),
2474 <<
HelpArg(
tr(
"geometry a" ),
tr(
"a geometry" ),
false,
false )
2475 <<
HelpArg(
tr(
"geometry b" ),
tr(
"a geometry" ),
false,
false ),
2478 <<
HelpExample(
tr(
"within( geom_from_wkt( 'POINT( 0.5 0.5)' ), geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0))' ) )" ),
tr(
"true" ),
tr(
"") )
2479 <<
HelpExample(
tr(
"within( geom_from_wkt( 'POINT( 5 5 )' ), geom_from_wkt( 'POLYGON((0 0, 0 1, 1 1, 1 0, 0 0 ))' ) )" ),
tr(
"false" ),
tr(
"") )
2485 Help(
"wordwrap",
tr(
"function" ),
tr(
"Returns a string wrapped to a maximum/minimum number of characters." ),
2487 <<
HelpVariant(
tr(
"wordwrap" ),
tr(
"Returns a string wrapped to a maximum/minimum number of characters." ),
2489 <<
HelpArg(
tr(
"string" ),
tr(
"the string to be wrapped" ),
false,
false )
2490 <<
HelpArg(
tr(
"wrap_length" ),
tr(
"an integer. If wrap_length is positive the number represents the ideal maximum number of characters to wrap; if negative, the number represents the minimum number of characters to wrap." ),
false,
false )
2491 <<
HelpArg(
tr(
"delimiter_string" ),
tr(
"the delimiter string to wrap to a new line (optional)." ),
false,
false ),
2494 <<
HelpExample(
tr(
"wordwrap('UNIVERSITY OF QGIS',13)" ),
tr(
"'UNIVERSITY OF\nQGIS'" ),
tr(
"") )
2495 <<
HelpExample(
tr(
"wordwrap('UNIVERSITY OF QGIS',-3)" ),
tr(
"'UNIVERSITY\nOF QGIS'" ),
tr(
"") )
2501 Help(
"x",
tr(
"function" ),
tr(
"Returns the x coordinate of a point geometry, or the x-coordinate of the centroid for a non-point geometry." ),
2503 <<
HelpVariant(
tr(
"x" ),
tr(
"Returns the x coordinate of a point geometry, or the x-coordinate of the centroid for a non-point geometry." ),
2505 <<
HelpArg(
tr(
"geom" ),
tr(
"a geometry" ),
false,
false ),
2508 <<
HelpExample(
tr(
"x( geom_from_wkt( 'POINT(2 5)' ) )" ),
tr(
"2" ),
tr(
"") )
2514 Help(
"x_max",
tr(
"function" ),
tr(
"Returns the maximum x coordinate of a geometry. Calculations are in the spatial reference system of this geometry." ),
2516 <<
HelpVariant(
tr(
"x_max" ),
tr(
"Returns the maximum x coordinate of a geometry. Calculations are in the spatial reference system of this geometry." ),
2518 <<
HelpArg(
tr(
"geom" ),
tr(
"a geometry" ),
false,
false ),
2521 <<
HelpExample(
tr(
"x_max( geom_from_wkt( 'LINESTRING(2 5, 3 6, 4 8)') )" ),
tr(
"4" ),
tr(
"") )
2527 Help(
"x_min",
tr(
"function" ),
tr(
"Returns the minimum x coordinate of a geometry. Calculations are in the spatial reference system of this geometry." ),
2529 <<
HelpVariant(
tr(
"x_min" ),
tr(
"Returns the minimum x coordinate of a geometry. Calculations are in the spatial reference system of this geometry." ),
2531 <<
HelpArg(
tr(
"geom" ),
tr(
"a geometry" ),
false,
false ),
2534 <<
HelpExample(
tr(
"x_min( geom_from_wkt( 'LINESTRING(2 5, 3 6, 4 8)') )" ),
tr(
"2" ),
tr(
"") )
2540 Help(
"y",
tr(
"function" ),
tr(
"Returns the y coordinate of a point geometry, or the y-coordinate of the centroid for a non-point geometry." ),
2542 <<
HelpVariant(
tr(
"y" ),
tr(
"Returns the y coordinate of a point geometry, or the y-coordinate of the centroid for a non-point geometry." ),
2544 <<
HelpArg(
tr(
"geom" ),
tr(
"a geometry" ),
false,
false ),
2547 <<
HelpExample(
tr(
"y( geom_from_wkt( 'POINT(2 5)' ) )" ),
tr(
"5" ),
tr(
"") )
2553 Help(
"y_max",
tr(
"function" ),
tr(
"Returns the maximum y coordinate of a geometry. Calculations are in the spatial reference system of this geometry." ),
2555 <<
HelpVariant(
tr(
"y_max" ),
tr(
"Returns the maximum y coordinate of a geometry. Calculations are in the spatial reference system of this geometry." ),
2557 <<
HelpArg(
tr(
"geom" ),
tr(
"a geometry" ),
false,
false ),
2560 <<
HelpExample(
tr(
"y_max( geom_from_wkt( 'LINESTRING(2 5, 3 6, 4 8)') )" ),
tr(
"8" ),
tr(
"") )
2566 Help(
"y_min",
tr(
"function" ),
tr(
"Returns the minimum y coordinate of a geometry. Calculations are in the spatial reference system of this geometry." ),
2568 <<
HelpVariant(
tr(
"y_min" ),
tr(
"Returns the minimum y coordinate of a geometry. Calculations are in the spatial reference system of this geometry." ),
2570 <<
HelpArg(
tr(
"geom" ),
tr(
"a geometry" ),
false,
false ),
2573 <<
HelpExample(
tr(
"y_min( geom_from_wkt( 'LINESTRING(2 5, 3 6, 4 8)') )" ),
tr(
"5" ),
tr(
"") )
2579 Help(
"year",
tr(
"function" ),
tr(
"Extract the year part from a date, or the number of years from an interval." ),
2581 <<
HelpVariant(
tr(
"Date variant" ),
tr(
"Extract the year part from a date or datetime." ),
2583 <<
HelpArg(
tr(
"date" ),
tr(
"a date or datetime value" ),
false,
false ),
2588 <<
HelpVariant(
tr(
"Interval variant" ),
tr(
"Calculate the length in years of an interval." ),
2590 <<
HelpArg(
tr(
"interval" ),
tr(
"interval value to return number of years from" ),
false,
false ),
2594 <<
HelpExample(
tr(
"year(age('2012-01-01','2010-01-01'))" ),
tr(
"1.9986" ),
tr(
"") )
static QHash< QString, Help > gFunctionHelpTexts
static void initFunctionHelp()