Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # main approach
- if lineShape.disjoint(point["shape"])==False or lineShape.touches(point["shape"]) :
- # found an intersecting point.
- else: # fallback approach.
- pointBuffer = point["shape"].buffer(1)
- isIntersect = pointBuffer.disjoint(lineShape) == False
- if isIntersect==True:
- # found an intersecting point.
Add Comment
Please, Sign In to add comment