@@ -3221,7 +3221,7 @@ const QList<QgsExpression::Function*>& QgsExpression::Functions()
3221
3221
<< new StaticFunction ( " sqrt" , ParameterList () << Parameter ( " value" ), fcnSqrt, " Math" )
3222
3222
<< new StaticFunction ( " radians" , ParameterList () << Parameter ( " degrees" ), fcnRadians, " Math" )
3223
3223
<< new StaticFunction ( " degrees" , ParameterList () << Parameter ( " radians" ), fcnDegrees, " Math" )
3224
- << new StaticFunction ( " azimuth" , ParameterList () << Parameter ( " point_a" ) << Parameter ( " point_b" ), fcnAzimuth, " Math" )
3224
+ << new StaticFunction ( " azimuth" , ParameterList () << Parameter ( " point_a" ) << Parameter ( " point_b" ), fcnAzimuth, QStringList () << " Math" << " GeometryGroup " )
3225
3225
<< new StaticFunction ( " project" , ParameterList () << Parameter ( " point" ) << Parameter ( " distance" ) << Parameter ( " bearing" ), fcnProject, " GeometryGroup" )
3226
3226
<< new StaticFunction ( " abs" , ParameterList () << Parameter ( " value" ), fcnAbs, " Math" )
3227
3227
<< new StaticFunction ( " cos" , ParameterList () << Parameter ( " angle" ), fcnCos, " Math" )
@@ -3246,13 +3246,13 @@ const QList<QgsExpression::Function*>& QgsExpression::Functions()
3246
3246
<< new StaticFunction ( " floor" , 1 , fcnFloor, " Math" )
3247
3247
<< new StaticFunction ( " ceil" , 1 , fcnCeil, " Math" )
3248
3248
<< new StaticFunction ( " pi" , 0 , fcnPi, " Math" , QString (), false , QStringList (), false , QStringList () << " $pi" )
3249
- << new StaticFunction ( " to_int" , 1 , fcnToInt, " Conversions" , QString (), false , QStringList (), false , QStringList () << " toint" )
3250
- << new StaticFunction ( " to_real" , 1 , fcnToReal, " Conversions" , QString (), false , QStringList (), false , QStringList () << " toreal" )
3251
- << new StaticFunction ( " to_string" , 1 , fcnToString, " Conversions" , QString (), false , QStringList (), false , QStringList () << " tostring" )
3252
- << new StaticFunction ( " to_datetime" , 1 , fcnToDateTime, " Conversions" , QString (), false , QStringList (), false , QStringList () << " todatetime" )
3253
- << new StaticFunction ( " to_date" , 1 , fcnToDate, " Conversions" , QString (), false , QStringList (), false , QStringList () << " todate" )
3254
- << new StaticFunction ( " to_time" , 1 , fcnToTime, " Conversions" , QString (), false , QStringList (), false , QStringList () << " totime" )
3255
- << new StaticFunction ( " to_interval" , 1 , fcnToInterval, " Conversions" , QString (), false , QStringList (), false , QStringList () << " tointerval" )
3249
+ << new StaticFunction ( " to_int" , ParameterList () << Parameter ( " value " ) , fcnToInt, " Conversions" , QString (), false , QStringList (), false , QStringList () << " toint" )
3250
+ << new StaticFunction ( " to_real" , ParameterList () << Parameter ( " value " ) , fcnToReal, " Conversions" , QString (), false , QStringList (), false , QStringList () << " toreal" )
3251
+ << new StaticFunction ( " to_string" , ParameterList () << Parameter ( " value " ) , fcnToString, QStringList () << " Conversions" << " String " , QString (), false , QStringList (), false , QStringList () << " tostring" )
3252
+ << new StaticFunction ( " to_datetime" , ParameterList () << Parameter ( " value " ) , fcnToDateTime, QStringList () << " Conversions" << " Date and Time " , QString (), false , QStringList (), false , QStringList () << " todatetime" )
3253
+ << new StaticFunction ( " to_date" , ParameterList () << Parameter ( " value " ) , fcnToDate, QStringList () << " Conversions" << " Date and Time " , QString (), false , QStringList (), false , QStringList () << " todate" )
3254
+ << new StaticFunction ( " to_time" , ParameterList () << Parameter ( " value " ) , fcnToTime, QStringList () << " Conversions" << " Date and Time " , QString (), false , QStringList (), false , QStringList () << " totime" )
3255
+ << new StaticFunction ( " to_interval" , ParameterList () << Parameter ( " value " ) , fcnToInterval, QStringList () << " Conversions" << " Date and Time " , QString (), false , QStringList (), false , QStringList () << " tointerval" )
3256
3256
<< new StaticFunction ( " coalesce" , -1 , fcnCoalesce, " Conditionals" , QString (), false , QStringList (), false , QStringList (), true )
3257
3257
<< new StaticFunction ( " if" , 3 , fcnIf, " Conditionals" , QString (), False, QStringList (), true )
3258
3258
<< new StaticFunction ( " aggregate" , ParameterList () << Parameter ( " layer" ) << Parameter ( " aggregate" ) << Parameter ( " expression" )
@@ -3279,7 +3279,7 @@ const QList<QgsExpression::Function*>& QgsExpression::Functions()
3279
3279
<< new StaticFunction ( " max_length" , aggParams, fcnAggregateMaxLength, " Aggregates" , QString (), False, QStringList (), true )
3280
3280
<< new StaticFunction ( " concatenate" , aggParams << Parameter ( " concatenator" , true ), fcnAggregateStringConcat, " Aggregates" , QString (), False, QStringList (), true )
3281
3281
3282
- << new StaticFunction ( " regexp_match" , 2 , fcnRegexpMatch, " Conditionals" )
3282
+ << new StaticFunction ( " regexp_match" , ParameterList () << Parameter ( " string " ) << Parameter ( " regex " ) , fcnRegexpMatch, QStringList () << " Conditionals" << " String " )
3283
3283
<< new StaticFunction ( " now" , 0 , fcnNow, " Date and Time" , QString (), false , QStringList (), false , QStringList () << " $now" )
3284
3284
<< new StaticFunction ( " age" , 2 , fcnAge, " Date and Time" )
3285
3285
<< new StaticFunction ( " year" , 1 , fcnYear, " Date and Time" )
@@ -3300,7 +3300,7 @@ const QList<QgsExpression::Function*>& QgsExpression::Functions()
3300
3300
<< new StaticFunction ( " soundex" , 1 , fcnSoundex, " Fuzzy Matching" )
3301
3301
<< new StaticFunction ( " char" , 1 , fcnChar, " String" )
3302
3302
<< new StaticFunction ( " wordwrap" , ParameterList () << Parameter ( " text" ) << Parameter ( " length" ) << Parameter ( " delimiter" , true , " " ), fcnWordwrap, " String" )
3303
- << new StaticFunction ( " length" , 1 , fcnLength, " String" )
3303
+ << new StaticFunction ( " length" , ParameterList () << Parameter ( " text " , true , " " ), fcnLength, QStringList () << " String" << " GeometryGroup " )
3304
3304
<< new StaticFunction ( " replace" , 3 , fcnReplace, " String" )
3305
3305
<< new StaticFunction ( " regexp_replace" , 3 , fcnRegexpReplace, " String" )
3306
3306
<< new StaticFunction ( " regexp_substr" , 2 , fcnRegexpSubstr, " String" )
@@ -3313,7 +3313,7 @@ const QList<QgsExpression::Function*>& QgsExpression::Functions()
3313
3313
<< new StaticFunction ( " lpad" , 3 , fcnLPad, " String" )
3314
3314
<< new StaticFunction ( " format" , -1 , fcnFormatString, " String" )
3315
3315
<< new StaticFunction ( " format_number" , 2 , fcnFormatNumber, " String" )
3316
- << new StaticFunction ( " format_date" , 2 , fcnFormatDate, " String" )
3316
+ << new StaticFunction ( " format_date" , ParameterList () << Parameter ( " date " ) << Parameter ( " format " ) , fcnFormatDate, QStringList () << " String" << " Date and Time " )
3317
3317
<< new StaticFunction ( " color_rgb" , 3 , fcnColorRgb, " Color" )
3318
3318
<< new StaticFunction ( " color_rgba" , 4 , fncColorRgba, " Color" )
3319
3319
<< new StaticFunction ( " ramp_color" , 2 , fcnRampColor, " Color" )
0 commit comments