Check if polygon is inside a polygon

后端 未结 5 1116
鱼传尺愫
鱼传尺愫 2020-12-01 06:35

Yesterday I was looking to check if a point was inside a polygon and found this great script: https://github.com/tparkin/Google-Maps-Point-in-Polygon

But today at wo

5条回答
  •  Happy的楠姐
    2020-12-01 07:16

    First check that one of the corner points in the polygon is inside the other polygon using the script. Then check if any of the lines in the polygon crosses any of the lines in the other polygon. If they don't, the polygon is inside the other polygon.

提交回复
热议问题