laptop and a wrench

漏洞

ArcGIS Maps SDK for JavaScript - simplifyOperators.isSimple() method outputs True for polyline graphics that self-intersect when it should output False

ArcGIS Maps SDK for JavaScript
漏洞 ID 编号 BUG-000174679
已提交March 1, 2025
上次修改时间July 7, 2025
适用范围ArcGIS Maps SDK for JavaScript
找到的版本4.32
操作系统Windows OS
操作系统版本10.0 64 Bit
状态As Designed

附加信息

The SDK documentation for geometryEngine.simplify(), geometryEngineAsync.simplify() and simplifyOperator, at versions 4.31 and prior, incorrectly stated that these methods treated self-intersecting polylines as not simple. The esri/rest/geometryService simplify() method also uses the same functionality internally. We are in the process of updating the documentation to clarify that these methods are non-OGC compliant. This means these methods treat self-intersecting polyline paths as simple (simple = true). Using these methods to simplify polylines will not break up the polyline paths at self-intersection points. An important clarification: these methods do treat self-intersecting polygon rings as not simple (simple = false). We are considering adding an OGC-compliant operator to accommodate this use case.

解决办法

Depending on the use case, a possible workaround is to utilize the Arcade function IsSelfIntersecting, which can be found at this link: https://developers.arcgis.com/arcade/function-reference/geometry_functions/#isselfintersecting. You can implement this function through the following resource: https://developers.arcgis.com/javascript/latest/api-reference/esri-arcade.html.

重现步骤

漏洞 ID: BUG-000174679

软件:

  • ArcGIS Maps SDK for JavaScript

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

下载 Esri 支持应用程序

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

获取来自 ArcGIS 专家的帮助

联系技术支持部门

下载 Esri 支持应用程序

转至下载选项