How to check if a point is in a Multipolygon
Closed this issue · 4 comments
meyumeapps commented
Hi,
Do you have any thoughts on how I can use the library to check if a point is within a multipolygon?
Thanks
Scott
songjiahong commented
You can go through each polygon in the multipolygon and check whether the point is in the polygon with the function Polygon.IsPointInside(Point point)
meyumeapps commented
Thanks I will give that a go.
I think I might have to take into account this sort of multi polygon though outer and inner
daniel-rck commented
@meyumeapps The outer-inner case is correctly handled (see
). So if you check each point in a loop, the issue could be resolved.songjiahong commented
Add a method in multipolygon to check whether point is inside.