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
Les exemples suivants illustrent des cas d’utilisation de l’outil :
- 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
Gardez les points suivants à l’esprit lorsque vous utilisez l’outil :
- Filter data by defining Arcade expressions.
- This tool does not require geometry.
Parameters
Les paramètres de l’outil sont les suivants :
| Parameter | Description | Data type |
|---|---|---|
Input Layer | The layer in which features are filtered. | Entités |
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.
Vous avez un commentaire à formuler concernant cette rubrique ?