@@ -4777,7 +4777,7 @@ const QList<QgsExpressionFunction *> &QgsExpression::Functions()
4777
4777
<< new QgsStaticExpressionFunction ( QStringLiteral ( " min" ), -1 , fcnMin, QStringLiteral ( " Math" ), QString (), false , QSet<QString>(), false , QStringList (), /* handlesNull = */ true )
4778
4778
<< new QgsStaticExpressionFunction ( QStringLiteral ( " clamp" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " min" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " value" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " max" ) ), fcnClamp, QStringLiteral ( " Math" ) )
4779
4779
<< new QgsStaticExpressionFunction ( QStringLiteral ( " scale_linear" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " val" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " domain_min" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " domain_max" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " range_min" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " range_max" ) ), fcnLinearScale, QStringLiteral ( " Math" ) )
4780
- << new QgsStaticExpressionFunction ( QStringLiteral ( " scale_exp" ),QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " val" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " domain_min" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " domain_max" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " range_min" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " range_max" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " exponent" ) ), fcnExpScale, QStringLiteral ( " Math" ) )
4780
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " scale_exp" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " val" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " domain_min" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " domain_max" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " range_min" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " range_max" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " exponent" ) ), fcnExpScale, QStringLiteral ( " Math" ) )
4781
4781
<< new QgsStaticExpressionFunction ( QStringLiteral ( " floor" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " value" ) ), fcnFloor, QStringLiteral ( " Math" ) )
4782
4782
<< new QgsStaticExpressionFunction ( QStringLiteral ( " ceil" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " value" ) ), fcnCeil, QStringLiteral ( " Math" ) )
4783
4783
<< new QgsStaticExpressionFunction ( QStringLiteral ( " pi" ), 0 , fcnPi, QStringLiteral ( " Math" ), QString (), false , QSet<QString>(), false , QStringList () << QStringLiteral ( " $pi" ) )
@@ -4891,10 +4891,10 @@ const QList<QgsExpressionFunction *> &QgsExpression::Functions()
4891
4891
<< new QgsStaticExpressionFunction ( QStringLiteral ( " regexp_matches" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " string" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " regex" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " emptyvalue" ), true , " " ), fcnRegexpMatches, QStringLiteral ( " Arrays" ) )
4892
4892
4893
4893
<< new QgsStaticExpressionFunction ( QStringLiteral ( " now" ), 0 , fcnNow, QStringLiteral ( " Date and Time" ), QString (), false , QSet<QString>(), false , QStringList () << QStringLiteral ( " $now" ) )
4894
- << new QgsStaticExpressionFunction ( QStringLiteral ( " age" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " datetime1" ) )
4895
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " datetime2" ) ),
4896
- fcnAge, QStringLiteral ( " Date and Time" ) )
4897
- << new QgsStaticExpressionFunction ( QStringLiteral ( " year" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " date" ) ) , fcnYear, QStringLiteral ( " Date and Time" ) )
4894
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " age" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " datetime1" ) )
4895
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " datetime2" ) ),
4896
+ fcnAge, QStringLiteral ( " Date and Time" ) )
4897
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " year" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " date" ) ), fcnYear, QStringLiteral ( " Date and Time" ) )
4898
4898
<< new QgsStaticExpressionFunction ( QStringLiteral ( " month" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " date" ) ), fcnMonth, QStringLiteral ( " Date and Time" ) )
4899
4899
<< new QgsStaticExpressionFunction ( QStringLiteral ( " week" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " date" ) ), fcnWeek, QStringLiteral ( " Date and Time" ) )
4900
4900
<< new QgsStaticExpressionFunction ( QStringLiteral ( " day" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " date" ) ), fcnDay, QStringLiteral ( " Date and Time" ) )
@@ -4909,20 +4909,20 @@ const QList<QgsExpressionFunction *> &QgsExpression::Functions()
4909
4909
<< new QgsStaticExpressionFunction ( QStringLiteral ( " trim" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " string" ) ), fcnTrim, QStringLiteral ( " String" ) )
4910
4910
<< new QgsStaticExpressionFunction ( QStringLiteral ( " levenshtein" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " string1" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " string2" ) ), fcnLevenshtein, QStringLiteral ( " Fuzzy Matching" ) )
4911
4911
<< new QgsStaticExpressionFunction ( QStringLiteral ( " longest_common_substring" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " string1" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " string2" ) ), fcnLCS, QStringLiteral ( " Fuzzy Matching" ) )
4912
- << new QgsStaticExpressionFunction ( QStringLiteral ( " hamming_distance" ),QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " string1" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " string2" ) ) , fcnHamming, QStringLiteral ( " Fuzzy Matching" ) )
4912
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " hamming_distance" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " string1" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " string2" ) ), fcnHamming, QStringLiteral ( " Fuzzy Matching" ) )
4913
4913
<< new QgsStaticExpressionFunction ( QStringLiteral ( " soundex" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " string" ) ), fcnSoundex, QStringLiteral ( " Fuzzy Matching" ) )
4914
4914
<< new QgsStaticExpressionFunction ( QStringLiteral ( " char" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " code" ) ), fcnChar, QStringLiteral ( " String" ) )
4915
4915
<< new QgsStaticExpressionFunction ( QStringLiteral ( " wordwrap" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " text" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " length" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " delimiter" ), true , " " ), fcnWordwrap, QStringLiteral ( " String" ) )
4916
4916
<< new QgsStaticExpressionFunction ( QStringLiteral ( " length" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " text" ), true , " " ), fcnLength, QStringList () << QStringLiteral ( " String" ) << QStringLiteral ( " GeometryGroup" ) )
4917
4917
<< new QgsStaticExpressionFunction ( QStringLiteral ( " replace" ), -1 , fcnReplace, QStringLiteral ( " String" ) )
4918
4918
<< new QgsStaticExpressionFunction ( QStringLiteral ( " regexp_replace" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " input_string" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " regex" ) )
4919
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " replacement" ) ), fcnRegexpReplace, QStringLiteral ( " String" ) )
4919
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " replacement" ) ), fcnRegexpReplace, QStringLiteral ( " String" ) )
4920
4920
<< new QgsStaticExpressionFunction ( QStringLiteral ( " regexp_substr" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " input_string" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " regex" ) ), fcnRegexpSubstr, QStringLiteral ( " String" ) )
4921
4921
<< new QgsStaticExpressionFunction ( QStringLiteral ( " substr" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " string" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " start " ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " length" ), true ), fcnSubstr, QStringLiteral ( " String" ), QString (),
4922
4922
false , QSet< QString >(), false , QStringList (), true )
4923
4923
<< new QgsStaticExpressionFunction ( QStringLiteral ( " concat" ), -1 , fcnConcat, QStringLiteral ( " String" ), QString (), false , QSet<QString>(), false , QStringList (), true )
4924
4924
<< new QgsStaticExpressionFunction ( QStringLiteral ( " strpos" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " haystack" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " needle" ) ), fcnStrpos, QStringLiteral ( " String" ) )
4925
- << new QgsStaticExpressionFunction ( QStringLiteral ( " left" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " string" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " length" ) ), fcnStrpos, QStringLiteral ( " length" ) ) , fcnLeft, QStringLiteral ( " String" ) )
4925
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " left" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " string" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " length" ) ), fcnStrpos, QStringLiteral ( " length" ), fcnLeft, QStringLiteral ( " String" ) )
4926
4926
<< new QgsStaticExpressionFunction ( QStringLiteral ( " right" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " string" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " length" ) ), fcnRight, QStringLiteral ( " String" ) )
4927
4927
<< new QgsStaticExpressionFunction ( QStringLiteral ( " rpad" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " string" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " width" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " fill" ) ), fcnRPad, QStringLiteral ( " String" ) )
4928
4928
<< new QgsStaticExpressionFunction ( QStringLiteral ( " lpad" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " string" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " width" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " fill" ) ), fcnLPad, QStringLiteral ( " String" ) )
@@ -4931,62 +4931,62 @@ const QList<QgsExpressionFunction *> &QgsExpression::Functions()
4931
4931
<< new QgsStaticExpressionFunction ( QStringLiteral ( " format_date" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " datetime" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " format" ) ), fcnFormatDate, QStringList () << QStringLiteral ( " String" ) << QStringLiteral ( " Date and Time" ) )
4932
4932
<< new QgsStaticExpressionFunction ( QStringLiteral ( " color_grayscale_average" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " color" ) ), fcnColorGrayscaleAverage, QStringLiteral ( " Color" ) )
4933
4933
<< new QgsStaticExpressionFunction ( QStringLiteral ( " color_mix_rgb" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " color1" ) )
4934
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " color2" ) )
4935
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " ratio" ) ),
4936
- fcnColorMixRgb, QStringLiteral ( " Color" ) )
4937
- << new QgsStaticExpressionFunction ( QStringLiteral ( " color_rgb" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " red" ) )
4938
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " green" ) )
4939
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " blue" ) ),
4940
- fcnColorRgb, QStringLiteral ( " Color" ) )
4941
- << new QgsStaticExpressionFunction ( QStringLiteral ( " color_rgba" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " red" ) )
4942
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " green" ) )
4943
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " blue" ) )
4944
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " alpha" ) ),
4945
- fncColorRgba, QStringLiteral ( " Color" ) )
4946
- << new QgsStaticExpressionFunction ( QStringLiteral ( " ramp_color" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " ramp_name" ) )
4947
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " value" ) ),
4948
- fcnRampColor, QStringLiteral ( " Color" ) )
4949
- << new QgsStaticExpressionFunction ( QStringLiteral ( " create_ramp" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " map" ) )
4950
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " discrete" ), true , false ),
4951
- fcnCreateRamp, QStringLiteral ( " Color" ) )
4952
- << new QgsStaticExpressionFunction ( QStringLiteral ( " color_hsl" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " hue" ) )
4953
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " saturation" ) )
4954
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " lightness" ) ),
4955
- fcnColorHsl, QStringLiteral ( " Color" ) )
4956
- << new QgsStaticExpressionFunction ( QStringLiteral ( " color_hsla" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " hue" ) )
4957
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " saturation" ) )
4958
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " lightness" ) )
4959
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " alpha" ) ),
4960
- fncColorHsla, QStringLiteral ( " Color" ) )
4961
- << new QgsStaticExpressionFunction ( QStringLiteral ( " color_hsv" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " hue" ) )
4962
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " saturation" ) )
4963
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " value" ) ),
4964
- fcnColorHsv, QStringLiteral ( " Color" ) )
4965
- << new QgsStaticExpressionFunction ( QStringLiteral ( " color_hsva" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " hue" ) )
4966
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " saturation" ) )
4967
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " value" ) )
4968
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " alpha" ) ),
4969
- fncColorHsva, QStringLiteral ( " Color" ) )
4970
- << new QgsStaticExpressionFunction ( QStringLiteral ( " color_cmyk" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " cyan" ) )
4971
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " magenta" ) )
4972
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " yellow" ) )
4973
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " black" ) ),
4974
- fcnColorCmyk, QStringLiteral ( " Color" ) )
4975
- << new QgsStaticExpressionFunction ( QStringLiteral ( " color_cmyka" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " cyan" ) )
4976
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " magenta" ) )
4977
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " yellow" ) )
4978
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " black" ) )
4979
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " alpha" ) ),
4980
- fncColorCmyka, QStringLiteral ( " Color" ) )
4981
- << new QgsStaticExpressionFunction ( QStringLiteral ( " color_part" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " color" ) )
4982
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " component" ) ),
4983
- fncColorPart, QStringLiteral ( " Color" ) )
4984
- << new QgsStaticExpressionFunction ( QStringLiteral ( " darker" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " color" ) )
4985
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " factor" ) ),
4986
- fncDarker, QStringLiteral ( " Color" ) )
4987
- << new QgsStaticExpressionFunction ( QStringLiteral ( " lighter" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " color" ) )
4988
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " factor" ) ),
4989
- fncLighter, QStringLiteral ( " Color" ) )
4934
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " color2" ) )
4935
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " ratio" ) ),
4936
+ fcnColorMixRgb, QStringLiteral ( " Color" ) )
4937
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " color_rgb" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " red" ) )
4938
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " green" ) )
4939
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " blue" ) ),
4940
+ fcnColorRgb, QStringLiteral ( " Color" ) )
4941
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " color_rgba" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " red" ) )
4942
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " green" ) )
4943
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " blue" ) )
4944
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " alpha" ) ),
4945
+ fncColorRgba, QStringLiteral ( " Color" ) )
4946
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " ramp_color" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " ramp_name" ) )
4947
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " value" ) ),
4948
+ fcnRampColor, QStringLiteral ( " Color" ) )
4949
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " create_ramp" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " map" ) )
4950
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " discrete" ), true , false ),
4951
+ fcnCreateRamp, QStringLiteral ( " Color" ) )
4952
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " color_hsl" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " hue" ) )
4953
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " saturation" ) )
4954
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " lightness" ) ),
4955
+ fcnColorHsl, QStringLiteral ( " Color" ) )
4956
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " color_hsla" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " hue" ) )
4957
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " saturation" ) )
4958
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " lightness" ) )
4959
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " alpha" ) ),
4960
+ fncColorHsla, QStringLiteral ( " Color" ) )
4961
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " color_hsv" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " hue" ) )
4962
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " saturation" ) )
4963
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " value" ) ),
4964
+ fcnColorHsv, QStringLiteral ( " Color" ) )
4965
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " color_hsva" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " hue" ) )
4966
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " saturation" ) )
4967
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " value" ) )
4968
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " alpha" ) ),
4969
+ fncColorHsva, QStringLiteral ( " Color" ) )
4970
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " color_cmyk" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " cyan" ) )
4971
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " magenta" ) )
4972
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " yellow" ) )
4973
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " black" ) ),
4974
+ fcnColorCmyk, QStringLiteral ( " Color" ) )
4975
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " color_cmyka" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " cyan" ) )
4976
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " magenta" ) )
4977
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " yellow" ) )
4978
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " black" ) )
4979
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " alpha" ) ),
4980
+ fncColorCmyka, QStringLiteral ( " Color" ) )
4981
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " color_part" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " color" ) )
4982
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " component" ) ),
4983
+ fncColorPart, QStringLiteral ( " Color" ) )
4984
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " darker" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " color" ) )
4985
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " factor" ) ),
4986
+ fncDarker, QStringLiteral ( " Color" ) )
4987
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " lighter" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " color" ) )
4988
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " factor" ) ),
4989
+ fncLighter, QStringLiteral ( " Color" ) )
4990
4990
<< new QgsStaticExpressionFunction ( QStringLiteral ( " set_color_part" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " color" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " component" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " value" ) ), fncSetColorPart, QStringLiteral ( " Color" ) )
4991
4991
4992
4992
// deprecated stuff - hidden from users
@@ -5031,10 +5031,10 @@ const QList<QgsExpressionFunction *> &QgsExpression::Functions()
5031
5031
<< new QgsStaticExpressionFunction ( QStringLiteral ( " nodes_to_points" ), -1 , fcnNodesToPoints, QStringLiteral ( " GeometryGroup" ) )
5032
5032
<< new QgsStaticExpressionFunction ( QStringLiteral ( " segments_to_lines" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry" ) ), fcnSegmentsToLines, QStringLiteral ( " GeometryGroup" ) )
5033
5033
<< new QgsStaticExpressionFunction ( QStringLiteral ( " make_point" ), -1 , fcnMakePoint, QStringLiteral ( " GeometryGroup" ) )
5034
- << new QgsStaticExpressionFunction ( QStringLiteral ( " make_point_m" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " x" ) )
5035
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " y" ) )
5036
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " m" ) ),
5037
- fcnMakePointM, QStringLiteral ( " GeometryGroup" ) )
5034
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " make_point_m" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " x" ) )
5035
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " y" ) )
5036
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " m" ) ),
5037
+ fcnMakePointM, QStringLiteral ( " GeometryGroup" ) )
5038
5038
<< new QgsStaticExpressionFunction ( QStringLiteral ( " make_line" ), -1 , fcnMakeLine, QStringLiteral ( " GeometryGroup" ) )
5039
5039
<< new QgsStaticExpressionFunction ( QStringLiteral ( " make_polygon" ), -1 , fcnMakePolygon, QStringLiteral ( " GeometryGroup" ) )
5040
5040
<< new QgsStaticExpressionFunction ( QStringLiteral ( " make_triangle" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry" ) )
@@ -5073,7 +5073,7 @@ const QList<QgsExpressionFunction *> &QgsExpression::Functions()
5073
5073
xAtFunc->setIsStatic ( false );
5074
5074
sFunctions << xAtFunc;
5075
5075
5076
- QgsStaticExpressionFunction *yAtFunc = new QgsStaticExpressionFunction ( QStringLiteral ( " $y_at" ),QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " i" ) ), fcnYat, QStringLiteral ( " GeometryGroup" ), QString (), true , QSet<QString>(), false , QStringList () << QStringLiteral ( " yat" ) << QStringLiteral ( " y_at" ) );
5076
+ QgsStaticExpressionFunction *yAtFunc = new QgsStaticExpressionFunction ( QStringLiteral ( " $y_at" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " i" ) ), fcnYat, QStringLiteral ( " GeometryGroup" ), QString (), true , QSet<QString>(), false , QStringList () << QStringLiteral ( " yat" ) << QStringLiteral ( " y_at" ) );
5077
5077
yAtFunc->setIsStatic ( false );
5078
5078
sFunctions << yAtFunc;
5079
5079
@@ -5087,31 +5087,31 @@ const QList<QgsExpressionFunction *> &QgsExpression::Functions()
5087
5087
<< new QgsStaticExpressionFunction ( QStringLiteral ( " flip_coordinates" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geom" ) ), fcnFlipCoordinates, QStringLiteral ( " GeometryGroup" ) )
5088
5088
<< new QgsStaticExpressionFunction ( QStringLiteral ( " relate" ), -1 , fcnRelate, QStringLiteral ( " GeometryGroup" ) )
5089
5089
<< new QgsStaticExpressionFunction ( QStringLiteral ( " intersects_bbox" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry" ) ), fcnBbox, QStringLiteral ( " GeometryGroup" ), QString (), false , QSet<QString>(), false , QStringList () << QStringLiteral ( " bbox" ) )
5090
- << new QgsStaticExpressionFunction ( QStringLiteral ( " disjoint" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5091
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5092
- fcnDisjoint, QStringLiteral ( " GeometryGroup" ) )
5093
- << new QgsStaticExpressionFunction ( QStringLiteral ( " intersects" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5094
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5095
- fcnIntersects, QStringLiteral ( " GeometryGroup" ) )
5096
- << new QgsStaticExpressionFunction ( QStringLiteral ( " touches" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5097
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5098
- fcnTouches, QStringLiteral ( " GeometryGroup" ) )
5099
- << new QgsStaticExpressionFunction ( QStringLiteral ( " crosses" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5100
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5101
- fcnCrosses, QStringLiteral ( " GeometryGroup" ) )
5102
- << new QgsStaticExpressionFunction ( QStringLiteral ( " contains" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5103
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5104
- fcnContains, QStringLiteral ( " GeometryGroup" ) )
5105
- << new QgsStaticExpressionFunction ( QStringLiteral ( " overlaps" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5106
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5107
- fcnOverlaps, QStringLiteral ( " GeometryGroup" ) )
5108
- << new QgsStaticExpressionFunction ( QStringLiteral ( " within" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5109
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5110
- fcnWithin, QStringLiteral ( " GeometryGroup" ) )
5111
- << new QgsStaticExpressionFunction ( QStringLiteral ( " translate" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geom" ) )
5112
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " dx" ) )
5113
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " dy" ) ),
5114
- fcnTranslate, QStringLiteral ( " GeometryGroup" ) )
5090
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " disjoint" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5091
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5092
+ fcnDisjoint, QStringLiteral ( " GeometryGroup" ) )
5093
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " intersects" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5094
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5095
+ fcnIntersects, QStringLiteral ( " GeometryGroup" ) )
5096
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " touches" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5097
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5098
+ fcnTouches, QStringLiteral ( " GeometryGroup" ) )
5099
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " crosses" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5100
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5101
+ fcnCrosses, QStringLiteral ( " GeometryGroup" ) )
5102
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " contains" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5103
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5104
+ fcnContains, QStringLiteral ( " GeometryGroup" ) )
5105
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " overlaps" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5106
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5107
+ fcnOverlaps, QStringLiteral ( " GeometryGroup" ) )
5108
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " within" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5109
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5110
+ fcnWithin, QStringLiteral ( " GeometryGroup" ) )
5111
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " translate" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geom" ) )
5112
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " dx" ) )
5113
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " dy" ) ),
5114
+ fcnTranslate, QStringLiteral ( " GeometryGroup" ) )
5115
5115
<< new QgsStaticExpressionFunction ( QStringLiteral ( " buffer" ), -1 , fcnBuffer, QStringLiteral ( " GeometryGroup" ) )
5116
5116
<< new QgsStaticExpressionFunction ( QStringLiteral ( " force_rhr" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry" ) ),
5117
5117
fcnForceRHR, QStringLiteral ( " GeometryGroup" ) )
@@ -5150,12 +5150,12 @@ const QList<QgsExpressionFunction *> &QgsExpression::Functions()
5150
5150
<< QgsExpressionFunction::Parameter ( QStringLiteral ( " tolerance" ) ), fcnPoleOfInaccessibility, QStringLiteral ( " GeometryGroup" ) )
5151
5151
<< new QgsStaticExpressionFunction ( QStringLiteral ( " reverse" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geom" ) ), fcnReverse, QStringLiteral ( " GeometryGroup" ) )
5152
5152
<< new QgsStaticExpressionFunction ( QStringLiteral ( " exterior_ring" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geom" ) ), fcnExteriorRing, QStringLiteral ( " GeometryGroup" ) )
5153
- << new QgsStaticExpressionFunction ( QStringLiteral ( " interior_ring_n" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry" ) )
5154
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " index" ) ),
5155
- fcnInteriorRingN, QStringLiteral ( " GeometryGroup" ) )
5156
- << new QgsStaticExpressionFunction ( QStringLiteral ( " geometry_n" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry" ) )
5157
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " index" ) ),
5158
- fcnGeometryN, QStringLiteral ( " GeometryGroup" ) )
5153
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " interior_ring_n" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry" ) )
5154
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " index" ) ),
5155
+ fcnInteriorRingN, QStringLiteral ( " GeometryGroup" ) )
5156
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " geometry_n" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry" ) )
5157
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " index" ) ),
5158
+ fcnGeometryN, QStringLiteral ( " GeometryGroup" ) )
5159
5159
<< new QgsStaticExpressionFunction ( QStringLiteral ( " boundary" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry" ) ), fcnBoundary, QStringLiteral ( " GeometryGroup" ) )
5160
5160
<< new QgsStaticExpressionFunction ( QStringLiteral ( " line_merge" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry" ) ), fcnLineMerge, QStringLiteral ( " GeometryGroup" ) )
5161
5161
<< new QgsStaticExpressionFunction ( QStringLiteral ( " bounds" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geom" ) ), fcnBounds, QStringLiteral ( " GeometryGroup" ) )
@@ -5180,42 +5180,42 @@ const QList<QgsExpressionFunction *> &QgsExpression::Functions()
5180
5180
<< QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry" ) )
5181
5181
<< QgsExpressionFunction::Parameter ( QStringLiteral ( " segments" ), true , 36 ),
5182
5182
fcnMinimalCircle, QStringLiteral ( " GeometryGroup" ) )
5183
- << new QgsStaticExpressionFunction ( QStringLiteral ( " difference" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry_a" ) )
5184
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry_b" ) ),
5185
- fcnDifference, QStringLiteral ( " GeometryGroup" ) )
5186
- << new QgsStaticExpressionFunction ( QStringLiteral ( " distance" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5187
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5188
- fcnDistance, QStringLiteral ( " GeometryGroup" ) )
5183
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " difference" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry_a" ) )
5184
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry_b" ) ),
5185
+ fcnDifference, QStringLiteral ( " GeometryGroup" ) )
5186
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " distance" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry a" ) )
5187
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry b" ) ),
5188
+ fcnDistance, QStringLiteral ( " GeometryGroup" ) )
5189
5189
<< new QgsStaticExpressionFunction ( QStringLiteral ( " hausdorff_distance" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry1" ) ) << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry2" ) )
5190
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " densify_fraction" ), true ),
5191
- fcnHausdorffDistance, QStringLiteral ( " GeometryGroup" ) )
5192
- << new QgsStaticExpressionFunction ( QStringLiteral ( " intersection" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry_a" ) )
5193
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry_b" ) ),
5194
- fcnIntersection, QStringLiteral ( " GeometryGroup" ) )
5195
- << new QgsStaticExpressionFunction ( QStringLiteral ( " sym_difference" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry1" ) )
5196
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry2" ) ),
5197
- fcnSymDifference, QStringLiteral ( " GeometryGroup" ), QString (), false , QSet<QString>(), false , QStringList () << QStringLiteral ( " symDifference" ) )
5198
- << new QgsStaticExpressionFunction ( QStringLiteral ( " combine" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry1" ) )
5199
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry2" ) ),
5200
- fcnCombine, QStringLiteral ( " GeometryGroup" ) )
5201
- << new QgsStaticExpressionFunction ( QStringLiteral ( " union" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry1" ) )
5202
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry2" ) ),
5203
- fcnCombine, QStringLiteral ( " GeometryGroup" ) )
5190
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " densify_fraction" ), true ),
5191
+ fcnHausdorffDistance, QStringLiteral ( " GeometryGroup" ) )
5192
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " intersection" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry_a" ) )
5193
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry_b" ) ),
5194
+ fcnIntersection, QStringLiteral ( " GeometryGroup" ) )
5195
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " sym_difference" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry1" ) )
5196
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry2" ) ),
5197
+ fcnSymDifference, QStringLiteral ( " GeometryGroup" ), QString (), false , QSet<QString>(), false , QStringList () << QStringLiteral ( " symDifference" ) )
5198
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " combine" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry1" ) )
5199
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry2" ) ),
5200
+ fcnCombine, QStringLiteral ( " GeometryGroup" ) )
5201
+ << new QgsStaticExpressionFunction ( QStringLiteral ( " union" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry1" ) )
5202
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry2" ) ),
5203
+ fcnCombine, QStringLiteral ( " GeometryGroup" ) )
5204
5204
<< new QgsStaticExpressionFunction ( QStringLiteral ( " geom_to_wkt" ), -1 , fcnGeomToWKT, QStringLiteral ( " GeometryGroup" ), QString (), false , QSet<QString>(), false , QStringList () << QStringLiteral ( " geomToWKT" ) )
5205
5205
<< new QgsStaticExpressionFunction ( QStringLiteral ( " geometry" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " feature" ) ), fcnGetGeometry, QStringLiteral ( " GeometryGroup" ), QString (), true )
5206
5206
<< new QgsStaticExpressionFunction ( QStringLiteral ( " transform" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geom" ) )
5207
5207
<< QgsExpressionFunction::Parameter ( QStringLiteral ( " source_auth_id" ) )
5208
5208
<< QgsExpressionFunction::Parameter ( QStringLiteral ( " dest_auth_id" ) ),
5209
- fcnTransformGeometry, QStringLiteral ( " GeometryGroup" ) )
5209
+ fcnTransformGeometry, QStringLiteral ( " GeometryGroup" ) )
5210
5210
<< new QgsStaticExpressionFunction ( QStringLiteral ( " extrude" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geom" ) )
5211
5211
<< QgsExpressionFunction::Parameter ( QStringLiteral ( " x" ) )
5212
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " y" ) ),
5213
- fcnExtrude, QStringLiteral ( " GeometryGroup" ), QString () );;
5212
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " y" ) ),
5213
+ fcnExtrude, QStringLiteral ( " GeometryGroup" ), QString () );;
5214
5214
5215
- QgsStaticExpressionFunction *orderPartsFunc = new QgsStaticExpressionFunction ( QStringLiteral ( " order_parts" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geom" ) )
5216
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " orderby" ) )
5217
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " ascending" ) ),
5218
- fcnOrderParts, QStringLiteral ( " GeometryGroup" ), QString () );
5215
+ QgsStaticExpressionFunction *orderPartsFunc = new QgsStaticExpressionFunction ( QStringLiteral ( " order_parts" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geom" ) )
5216
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " orderby" ) )
5217
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " ascending" ) ),
5218
+ fcnOrderParts, QStringLiteral ( " GeometryGroup" ), QString () );
5219
5219
5220
5220
orderPartsFunc->setIsStaticFunction (
5221
5221
[]( const QgsExpressionNodeFunction * node, QgsExpression * parent, const QgsExpressionContext * context )
@@ -5260,10 +5260,10 @@ const QList<QgsExpressionFunction *> &QgsExpression::Functions()
5260
5260
sFunctions
5261
5261
<< new QgsStaticExpressionFunction ( QStringLiteral ( " closest_point" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry1" ) )
5262
5262
<< QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry2" ) ),
5263
- fcnClosestPoint, QStringLiteral ( " GeometryGroup" ) )
5263
+ fcnClosestPoint, QStringLiteral ( " GeometryGroup" ) )
5264
5264
<< new QgsStaticExpressionFunction ( QStringLiteral ( " shortest_line" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry1" ) )
5265
5265
<< QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry2" ) ),
5266
- fcnShortestLine, QStringLiteral ( " GeometryGroup" ) )
5266
+ fcnShortestLine, QStringLiteral ( " GeometryGroup" ) )
5267
5267
<< new QgsStaticExpressionFunction ( QStringLiteral ( " line_interpolate_point" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry" ) )
5268
5268
<< QgsExpressionFunction::Parameter ( QStringLiteral ( " distance" ) ), fcnLineInterpolatePoint, QStringLiteral ( " GeometryGroup" ) )
5269
5269
<< new QgsStaticExpressionFunction ( QStringLiteral ( " line_interpolate_angle" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " geometry" ) )
@@ -5294,12 +5294,12 @@ const QList<QgsExpressionFunction *> &QgsExpression::Functions()
5294
5294
5295
5295
sFunctions
5296
5296
<< new QgsStaticExpressionFunction ( QStringLiteral ( " get_feature" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " layer" ) )
5297
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " attribute" ) )
5298
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " value" ) ),
5299
- fcnGetFeature, QStringLiteral ( " Record and Attributes" ), QString (), false , QSet<QString>(), false , QStringList () << QStringLiteral ( " QgsExpressionUtils::getFeature" ) )
5297
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " attribute" ) )
5298
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " value" ) ),
5299
+ fcnGetFeature, QStringLiteral ( " Record and Attributes" ), QString (), false , QSet<QString>(), false , QStringList () << QStringLiteral ( " QgsExpressionUtils::getFeature" ) )
5300
5300
<< new QgsStaticExpressionFunction ( QStringLiteral ( " get_feature_by_id" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " layer" ) )
5301
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " feature_id" ) ),
5302
- fcnGetFeatureById, QStringLiteral ( " Record and Attributes" ), QString (), false , QSet<QString>(), false );
5301
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " feature_id" ) ),
5302
+ fcnGetFeatureById, QStringLiteral ( " Record and Attributes" ), QString (), false , QSet<QString>(), false );
5303
5303
5304
5304
QgsStaticExpressionFunction *isSelectedFunc = new QgsStaticExpressionFunction (
5305
5305
QStringLiteral ( " is_selected" ),
@@ -5374,8 +5374,8 @@ const QList<QgsExpressionFunction *> &QgsExpression::Functions()
5374
5374
// **General** functions
5375
5375
sFunctions
5376
5376
<< new QgsStaticExpressionFunction ( QStringLiteral ( " layer_property" ), QgsExpressionFunction::ParameterList () << QgsExpressionFunction::Parameter ( QStringLiteral ( " layer" ) )
5377
- << QgsExpressionFunction::Parameter ( QStringLiteral ( " property" ) ),
5378
- fcnGetLayerProperty, QStringLiteral ( " General" ) )
5377
+ << QgsExpressionFunction::Parameter ( QStringLiteral ( " property" ) ),
5378
+ fcnGetLayerProperty, QStringLiteral ( " General" ) )
5379
5379
<< new QgsStaticExpressionFunction ( QStringLiteral ( " decode_uri" ),
5380
5380
QgsExpressionFunction::ParameterList ()
5381
5381
<< QgsExpressionFunction::Parameter ( QStringLiteral ( " layer" ) )
0 commit comments