laptop and a wrench

Error

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

Última publicación: July 13, 2022 No Product Found
Número de ID del error BUG-000147645
EnviadoMarch 16, 2022
Última modificaciónJune 8, 2025
Relacionado conNo Product Found
Versión encontradaN/A
Sistema operativoWindows OS
Versión de sistema operativo10.0 64 Bit
Versión corregida1.23
EstadoFixed

Información adicional

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.

Solución alternativa

  • 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;

Pasos para reproducir

ID del error: BUG-000147645

Software:

  • No Product Found

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