Filter by Expression

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

Es folgen einige Beispiele für Anwendungsfälle für das Werkzeug:

  • 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

Beachten Sie beim Arbeiten mit dem Werkzeug Folgendes:

Parameters

Für das Werkzeug sind die folgenden Parameter verfügbar:

ParameterDescriptionData type

Input Layer

The layer in which features are filtered.

Features

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.