Bug ID Number |
BUG-000174679 |
Submitted | March 1, 2025 |
Last Modified | July 7, 2025 |
Applies to | ArcGIS Maps SDK for JavaScript |
Version found | 4.32 |
Operating System | Windows OS |
Operating System Version | 10.0 64 Bit |
Status | As Designed
After review by the development team, it has been determined that this behavior is as designed. See the Additional Information section for details.
|
Additional Information
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.
Workaround
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.
Steps to Reproduce