laptop and a wrench

Bogue

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

Dernière publication: July 13, 2022 No Product Found
Numéro d’ID de bogue BUG-000147645
EnvoiMarch 16, 2022
Dernière modificationJune 8, 2025
S’applique àNo Product Found
Version trouvéeN/A
Système d’exploitationWindows OS
Version du système d’exploitation10.0 64 Bit
Version de correction1.23
StatutFixed

Informations supplémentaires

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.

Solution de contournement

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

Étapes pour reproduire

ID de bogue: BUG-000147645

Logiciel:

  • No Product Found

Recevoir une notification lorsque le statut d’un bogue change

Télécharger l’application Esri Support

En savoir plus sur ce sujet

Obtenir de l’aide auprès des experts ArcGIS

Contacter le support technique

Télécharger l’application Esri Support

Accéder aux options de téléchargement