Asked • 04/02/19

Check if polygon is inside a polygon?

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 work I was told that our client needs to check if one polygon is inside another polygon. I am wondering if there is a formula where I can take, let's say, two coordinates (instead of one to check a point), and from those two coordinates generate a rectangle and check if that rectangle is inside a polygon. I don't know if I'm asking a stupid question (a teacher in highschool used to say "there are no stupid questions, there are only fools who don't ask"), but if you don't understand me totally but just a bit, I'd be grateful if you just tell me where to start.

1 Expert Answer

By:

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.