def _topology(self, func, other):
        if not isinstance(other, OGRGeometry):
            raise TypeError('Must use another OGRGeometry object for topology operations!')

        # Returning the output of the given function with the other geometry's
        # pointer.
        return func(self.ptr, other.ptr)
A generalized function for topology operations, takes a GDAL function and
dataset/ETHPy150Open django/django/django/contrib/gis/gdal/geometries.py/OGRGeometry._topology