laptop and a wrench

Bug

The compare() method fails and returns the error message "TypeError: '<' not supported between instances of 'Point' and 'Point'" when comparing geometries in ArcGIS API for Python 2.4.1.

ArcGIS API for Python
Bug ID Number BUG-000177928
SubmittedJuly 16, 2025
Last ModifiedJuly 23, 2025
Applies toArcGIS API for Python
Version found2.4.1
Operating SystemWindows OS
Operating System Version11.0 64 bit
Version Fixed2.4.2
StatusFixed

Workaround

# Geometry comparison

geom_difference= ~sdf1['SHAPE'].equals(sdf2['SHAPE']) # gives True if they are unequal

geom_difference

Steps to Reproduce

Bug ID: BUG-000177928

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