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

以下是该工具的使用示例:

  • 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

使用该工具时,请谨记以下信息:

Parameters

以下是该工具的参数:

ParameterDescriptionData 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.