Returns the expressions of a condition of a style rule.
Required role: ORG_VIEWER, and the current user must have the VIEW permission on the project.
Locale (locale)
locale)Without locale, the attribute titles are objects by locale. With locale (en, fr, es), each title is a single string in that locale, or in the project's default language when it has no text in that locale. A code that isn't a known language returns 400.
What an expression is
An expression belongs to a condition of a style rule. It compares an attribute of the layer with a value; a feature matches the condition when all its expressions match. A condition without expressions matches every feature.
| Field | Content |
|---|---|
attribute | The layer attribute compared (in the responses; attributeName in the requests) |
operator | EQUALS, NOT_EQUALS, IS_NULL, IS_NOT_NULL (any type), GREATER_THAN, LOWER_THAN, GREATER_OR_EQUALS_TO, LOWER_OR_EQUALS_TO (numbers, dates and times), EMPTY, NOT_EMPTY (text) |
value | The value compared, converted to the attribute's type. null is allowed only with EQUALS, NOT_EQUALS, IS_NULL and IS_NOT_NULL |
The order of the expressions isn't significant. The attributes they use are marked as bound on the layer (bound in its attributes).
A referenced layer uses the style rules of its source layer: style-rule must then be a rule of the source layer. Expressions can be listed on a reference, but can't be created, changed or deleted there (400).
Organization
organization must be the organization of the access token, and the project must belong to it; otherwise the request returns 404.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||