laptop and a wrench

漏洞

The Arcade documentation classifies the polyline type's paths property as a number but incorrectly returns a point type.

上次发布: July 13, 2022 No Product Found
漏洞 ID 编号 BUG-000147645
已提交March 16, 2022
上次修改时间June 8, 2025
适用范围No Product Found
找到的版本N/A
操作系统Windows OS
操作系统版本10.0 64 Bit
修正版本1.23
状态Fixed

附加信息

This is a documentation issue and not a bug in the code. The documentation for the geometry types and geometry functions is updated to properly reflect the ways geometries can be constructed and what the actual types of the rings and paths are within each type.

解决办法

  • Use the JavaScript Object Notation (JSON) directly or convert a polyline back to JSON. The code below returns the x-coordinate:

return polylineJSON.paths[0][0][0];

  • If working directly with the point objects within the polyline object, call the property of a point data type, instead of using an index. The code below returns the x-coordinate:

return poly.paths[0][0].x;

重现步骤

漏洞 ID: BUG-000147645

软件:

  • No Product Found

当漏洞状态发生变化时获得通知

下载 Esri 支持应用程序

发现关于本主题的更多内容

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项