laptop and a wrench

Bogue

The arcgis.geometry.Polygon.is_valid() method for polygons does not work.

Dernière publication: February 26, 2019 ArcGIS API for Python
Numéro d’ID de bogue BUG-000119560
EnvoiJanuary 23, 2019
Dernière modificationJune 30, 2025
S’applique àArcGIS API for Python
Version trouvée1.5.1
Version de correction1.6.2
StatutFixed

Solution de contournement

Modify the _types.py file mentioned in errors. For example, in this case: /data/anaconda3/lib/python3.6/site-packages/arcgis/geometry/_types.pyEdit _types.py to include the following lines after the import statements:
list_types = (list, tuple)
number_type = (int, float, complex)Save the file. Restart the kernel if using Jupyter Notebook to reflect the update (i.e, click >>).

Étapes pour reproduire

ID de bogue: BUG-000119560

Logiciel:

  • ArcGIS API for Python

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