inpolygon

mipylib.geolib.migeo.inpolygon(x, y, polygon)

Judge if a point is inside a polygon or not.

Parameters
  • x – (float) X coordinate of the point.

  • y – (float) Y coordinate of the point.

  • polygon – (PolygonShape) The polygon.

Returns

(boolean) Inside or not.