@@ -3403,7 +3403,7 @@ const QList<QgsExpression::Function*>& QgsExpression::Functions()
3403
3403
<< new StaticFunction ( " sqrt" , ParameterList () << Parameter ( " value" ), fcnSqrt, " Math" )
3404
3404
<< new StaticFunction ( " radians" , ParameterList () << Parameter ( " degrees" ), fcnRadians, " Math" )
3405
3405
<< new StaticFunction ( " degrees" , ParameterList () << Parameter ( " radians" ), fcnDegrees, " Math" )
3406
- << new StaticFunction ( " azimuth" , ParameterList () << Parameter ( " point_a" ) << Parameter ( " point_b" ), fcnAzimuth, " Math" )
3406
+ << new StaticFunction ( " azimuth" , ParameterList () << Parameter ( " point_a" ) << Parameter ( " point_b" ), fcnAzimuth, QStringList () << " Math" << " GeometryGroup " )
3407
3407
<< new StaticFunction ( " project" , ParameterList () << Parameter ( " point" ) << Parameter ( " distance" ) << Parameter ( " bearing" ), fcnProject, " GeometryGroup" )
3408
3408
<< new StaticFunction ( " abs" , ParameterList () << Parameter ( " value" ), fcnAbs, " Math" )
3409
3409
<< new StaticFunction ( " cos" , ParameterList () << Parameter ( " angle" ), fcnCos, " Math" )
@@ -3428,13 +3428,13 @@ const QList<QgsExpression::Function*>& QgsExpression::Functions()
3428
3428
<< new StaticFunction ( " floor" , 1 , fcnFloor, " Math" )
3429
3429
<< new StaticFunction ( " ceil" , 1 , fcnCeil, " Math" )
3430
3430
<< new StaticFunction ( " pi" , 0 , fcnPi, " Math" , QString (), false , QSet<QString>(), false , QStringList () << " $pi" )
3431
- << new StaticFunction ( " to_int" , 1 , fcnToInt, " Conversions" , QString (), false , QSet<QString>(), false , QStringList () << " toint" )
3432
- << new StaticFunction ( " to_real" , 1 , fcnToReal, " Conversions" , QString (), false , QSet<QString>(), false , QStringList () << " toreal" )
3433
- << new StaticFunction ( " to_string" , 1 , fcnToString, " Conversions" , QString (), false , QSet<QString>(), false , QStringList () << " tostring" )
3434
- << new StaticFunction ( " to_datetime" , 1 , fcnToDateTime, " Conversions" , QString (), false , QSet<QString>(), false , QStringList () << " todatetime" )
3435
- << new StaticFunction ( " to_date" , 1 , fcnToDate, " Conversions" , QString (), false , QSet<QString>(), false , QStringList () << " todate" )
3436
- << new StaticFunction ( " to_time" , 1 , fcnToTime, " Conversions" , QString (), false , QSet<QString>(), false , QStringList () << " totime" )
3437
- << new StaticFunction ( " to_interval" , 1 , fcnToInterval, " Conversions" , QString (), false , QSet<QString>(), false , QStringList () << " tointerval" )
3431
+ << new StaticFunction ( " to_int" , ParameterList () << Parameter ( " value " ) , fcnToInt, " Conversions" , QString (), false , QSet<QString>(), false , QStringList () << " toint" )
3432
+ << new StaticFunction ( " to_real" , ParameterList () << Parameter ( " value " ) , fcnToReal, " Conversions" , QString (), false , QSet<QString>(), false , QStringList () << " toreal" )
3433
+ << new StaticFunction ( " to_string" , ParameterList () << Parameter ( " value " ) , fcnToString, QStringList () << " Conversions" << " String " , QString (), false , QSet<QString>(), false , QStringList () << " tostring" )
3434
+ << new StaticFunction ( " to_datetime" , ParameterList () << Parameter ( " value " ) , fcnToDateTime, QStringList () << " Conversions" << " Date and Time " , QString (), false , QSet<QString>(), false , QStringList () << " todatetime" )
3435
+ << new StaticFunction ( " to_date" , ParameterList () << Parameter ( " value " ) , fcnToDate, QStringList () << " Conversions" << " Date and Time " , QString (), false , QSet<QString>(), false , QStringList () << " todate" )
3436
+ << new StaticFunction ( " to_time" , ParameterList () << Parameter ( " value " ) , fcnToTime, QStringList () << " Conversions" << " Date and Time " , QString (), false , QSet<QString>(), false , QStringList () << " totime" )
3437
+ << new StaticFunction ( " to_interval" , ParameterList () << Parameter ( " value " ) , fcnToInterval, QStringList () << " Conversions" << " Date and Time " , QString (), false , QSet<QString>(), false , QStringList () << " tointerval" )
3438
3438
<< new StaticFunction ( " coalesce" , -1 , fcnCoalesce, " Conditionals" , QString (), false , QSet<QString>(), false , QStringList (), true )
3439
3439
<< new StaticFunction ( " if" , 3 , fcnIf, " Conditionals" , QString (), False, QSet<QString>(), true )
3440
3440
<< new StaticFunction ( " aggregate" , ParameterList () << Parameter ( " layer" ) << Parameter ( " aggregate" ) << Parameter ( " expression" )
@@ -3462,7 +3462,7 @@ const QList<QgsExpression::Function*>& QgsExpression::Functions()
3462
3462
<< new StaticFunction ( " collect" , aggParams, fcnAggregateCollectGeometry, " Aggregates" , QString (), False, QSet<QString>(), true )
3463
3463
<< new StaticFunction ( " concatenate" , aggParams << Parameter ( " concatenator" , true ), fcnAggregateStringConcat, " Aggregates" , QString (), False, QSet<QString>(), true )
3464
3464
3465
- << new StaticFunction ( " regexp_match" , 2 , fcnRegexpMatch, " Conditionals" )
3465
+ << new StaticFunction ( " regexp_match" , ParameterList () << Parameter ( " string " ) << Parameter ( " regex " ) , fcnRegexpMatch, QStringList () << " Conditionals" << " String " )
3466
3466
<< new StaticFunction ( " now" , 0 , fcnNow, " Date and Time" , QString (), false , QSet<QString>(), false , QStringList () << " $now" )
3467
3467
<< new StaticFunction ( " age" , 2 , fcnAge, " Date and Time" )
3468
3468
<< new StaticFunction ( " year" , 1 , fcnYear, " Date and Time" )
@@ -3483,7 +3483,7 @@ const QList<QgsExpression::Function*>& QgsExpression::Functions()
3483
3483
<< new StaticFunction ( " soundex" , 1 , fcnSoundex, " Fuzzy Matching" )
3484
3484
<< new StaticFunction ( " char" , 1 , fcnChar, " String" )
3485
3485
<< new StaticFunction ( " wordwrap" , ParameterList () << Parameter ( " text" ) << Parameter ( " length" ) << Parameter ( " delimiter" , true , " " ), fcnWordwrap, " String" )
3486
- << new StaticFunction ( " length" , 1 , fcnLength, " String" )
3486
+ << new StaticFunction ( " length" , ParameterList () << Parameter ( " text " , true , " " ), fcnLength, QStringList () << " String" << " GeometryGroup " )
3487
3487
<< new StaticFunction ( " replace" , 3 , fcnReplace, " String" )
3488
3488
<< new StaticFunction ( " regexp_replace" , 3 , fcnRegexpReplace, " String" )
3489
3489
<< new StaticFunction ( " regexp_substr" , 2 , fcnRegexpSubstr, " String" )
@@ -3496,7 +3496,7 @@ const QList<QgsExpression::Function*>& QgsExpression::Functions()
3496
3496
<< new StaticFunction ( " lpad" , 3 , fcnLPad, " String" )
3497
3497
<< new StaticFunction ( " format" , -1 , fcnFormatString, " String" )
3498
3498
<< new StaticFunction ( " format_number" , 2 , fcnFormatNumber, " String" )
3499
- << new StaticFunction ( " format_date" , 2 , fcnFormatDate, " String" )
3499
+ << new StaticFunction ( " format_date" , ParameterList () << Parameter ( " date " ) << Parameter ( " format " ) , fcnFormatDate, QStringList () << " String" << " Date and Time " )
3500
3500
<< new StaticFunction ( " color_rgb" , 3 , fcnColorRgb, " Color" )
3501
3501
<< new StaticFunction ( " color_rgba" , 4 , fncColorRgba, " Color" )
3502
3502
<< new StaticFunction ( " ramp_color" , 2 , fcnRampColor, " Color" )
0 commit comments