漏洞 ID 编号 |
BUG-000150440 |
已提交 | June 29, 2022 |
上次修改时间 | May 8, 2025 |
适用范围 | ArcGIS Velocity |
找到的版本 | N/A |
操作系统 | Windows OS |
操作系统版本 | 10.0 64 Bit |
状态 | As Designed
经开发团队审核,已确定此行为符合设计。 有关详细信息,请参阅“其他信息”部分。
|
附加信息
In ArcGIS Velocity, the 'Filter by Expression' tool retains features when the Arcade expression evaluates to true. If the Arcade expression evaluates to false, the feature is dropped. In the supplied reproduction expression, Arcade returns the last boolean of the expression. This behavior is as designed by Arcade, reproducible in the Arcade playground, and independent of ArcGIS Velocity.
Instead, the Arcade expression must be designed to combine multiple expressions using the && operator only to retain features with a value of true for all expressions:
$feature.fieldValue > 70 && $feature.fieldValue != '15' && $feature.fieldValue != 'AB'
Alternatively, multi-line expressions can be utilized but the Arcade expression must return a boolean value of true or false for the 'Filter by Expression' tool.
解决办法
When utilizing the Filter by Expression tool, create a new filter for each expression.
重现步骤