laptop and a wrench

Error

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
Número de ID del error BUG-000174679
EnviadoMarch 1, 2025
Última modificaciónJuly 7, 2025
Relacionado conArcGIS Maps SDK for JavaScript
Versión encontrada4.32
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
EstadoAs Designed

Información adicional

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.

Solución alternativa

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.

Pasos para reproducir

ID del error: BUG-000174679

Software:

  • ArcGIS Maps SDK for JavaScript

Recibir notificaciones cuando cambie el estado de un error

Descargar la aplicación de soporte de Esri

Descubrir más sobre este tema

Obtener ayuda de expertos en ArcGIS

Contactar con el soporte técnico

Descargar la aplicación de soporte de Esri

Ir a opciones de descarga