Class: QgsEsriArcadeConverter¶
Converts an Esri Arcade script to a QgsExpression.
Added in version 4.4.
List of all members, including inherited members
Constructor
Enums
Results of converting the Arcade script. |
Methods
Returns the descriptive error message, if an error was obtained while converting the script. |
|
Returns the QGIS expression equivalent of the Arcade script, if conversion was successful. |
|
Returns the result of converting the script. |
- class qgis.core.QgsEsriArcadeConverter[source]¶
Bases:
object- __init__(script: str | None)¶
Constructor for QgsEsriArcadeConverter for converting the specified
script.- Parameters:
script (str|None)
- __init__(a0: QgsEsriArcadeConverter)
- Parameters:
- class Result(*values)¶
Bases:
EnumResults of converting the Arcade script.
Success: Script was successfully convertedParserError: Script could not be parsedInvalidScriptMultiStatements: Scripts containing multiple statements cannot be convertedInvalidScriptIncompatible: Script is incompatible with conversion to a QGIS expressionUnknownError: An unknown error occurred while converting the script
- InvalidScriptIncompatible = 3¶
- InvalidScriptMultiStatements = 2¶
- ParserError = 1¶
- Success = 0¶
- UnknownError = 4¶
- errorMessage(self) str[source]¶
Returns the descriptive error message, if an error was obtained while converting the script.
See also
- Return type:
str
- expression(self) str[source]¶
Returns the QGIS expression equivalent of the Arcade script, if conversion was successful.
- Return type:
str
- result(self) QgsEsriArcadeConverter.Result[source]¶
Returns the result of converting the script.
If the conversion was not successful, a descriptive error can be retrieved by
errorMessage().See also
- Return type: