laptop and a wrench

Bug

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

Last Published: February 26, 2019 ArcGIS API for Python
Bug ID Number BUG-000119560
SubmittedJanuary 23, 2019
Last ModifiedJune 30, 2025
Applies toArcGIS API for Python
Version found1.5.1
Version Fixed1.6.2
StatusFixed

Workaround

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 >>).

Steps to Reproduce

Bug ID: BUG-000119560

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options