Guest User

Untitled

a guest
Feb 25th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1. # main approach
  2. if lineShape.disjoint(point["shape"])==False or lineShape.touches(point["shape"]) :
  3. # found an intersecting point.
  4. else: # fallback approach.
  5. pointBuffer = point["shape"].buffer(1)
  6. isIntersect = pointBuffer.disjoint(lineShape) == False
  7. if isIntersect==True:
  8. # found an intersecting point.
Add Comment
Please, Sign In to add comment