The Filter by Expression tool
filters features by an attribute expression using ArcGIS Arcade. Each feature is evaluated by the defined expression. Features that the expression evaluates as true are retained.
Examples
Ниже приведены примеры использования для инструмента:
- A real-time analytic uses the Filter by Expression tool to retain only the incoming records from a feed in which $feature.horizontal_accuracy < 15.
- A real-time analytic uses the Filter by Expression tool to retain only features in which $feature.description == 'Excellent Condition'.
Usage notes
При работе с инструментом следует учитывать следующее:
- Filter data by defining Arcade expressions.
- This tool does not require geometry.
Parameters
Ниже приведены параметры этого инструмента:
| Parameter | Description | Data type |
|---|---|---|
Input Layer | The layer in which features are filtered. | Возможности |
Expression | An attribute expression that evaluates features to filter the incoming data. The expression is configured in the Arcade expression builder, accessed by clicking Configure an Arcade Expression. All feature records are evaluated. Records that result true are retained, and false results are discarded. | String (Arcade expression) |
Output layer
The Filter by Expression tool does not alter incoming features; the output layer contains the same fields and attribute values as the incoming features.