Previous topic

inpolygon

Next topic

distance

This Page

arrayinpolygon

mipylib.geolib.migeo.arrayinpolygon(a, polygon, x=None, y=None)

Set array element value as 1 if inside a polygon or set value as -1.

Parameters:
  • a – (array_like) The array.
  • polygon – (PolygonShape) The polygon.
  • x – (float) X coordinate of the point. Default is None, for DimArray
  • y – (float) Y coordinate of the point. Default is None, for DimArray
Returns:

(array_like) Result array.