#NEWLINE# def distance( self , other ) : #NEWLINE# #INDENT# '\n        Returns the distance between the closest points on this Geometry\n        and the other. Units will be in those of the coordinate system of\n        the Geometry.\n        ' #NEWLINE# if ( not isinstance ( other , GEOSGeometry ) ) : #NEWLINE# #INDENT# raise TypeError ( 'distance() works only on other GEOS Geometries.' ) #NEWLINE# #UNINDENT# return capi . geos_distance ( self . ptr , self . ptr , byref ( c_double ( ) ) )