def line_contains_point(line, point, buf=10e-5): p = Point(point).buffer(buf) return line.intersects(p)