style_set_rule_based
Apply rule-based symbology to a vector layer by defining rules with QGIS expressions, colors, and labels; features use the first matching rule, with an empty expression as a catch-all.
Instructions
Style a vector layer with rule-based symbology.
rules is a list of {"expression", "color", "label"} - each feature is
styled by the first rule whose QGIS expression matches. Use an empty
string expression for a catch-all/ELSE rule.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rules | Yes | ||
| layer_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||