#NEWLINE# def __eq__( self , other ) : #NEWLINE# #INDENT# '\n        Equivalence testing, a Geometry may be compared with another Geometry\n        or a WKT representation.\n        ' #NEWLINE# if isinstance ( other , basestring ) : #NEWLINE# #INDENT# return ( self . wkt == other ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# if isinstance ( self , GEOSGeometry ) : #NEWLINE# #INDENT# return self . equals_exact ( other ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False