pyinterp.geometry.geographic.algorithms.for_each_point_within

pyinterp.geometry.geographic.algorithms.for_each_point_within#

pyinterp.geometry.geographic.algorithms.for_each_point_within(source: pyinterp.core.geometry.geographic.MultiPoint, container: pyinterp.core.geometry.geographic.Box) numpy.ndarray[dtype=bool, shape=(*), order='C']#
pyinterp.geometry.geographic.algorithms.for_each_point_within(source: pyinterp.core.geometry.geographic.MultiPoint, container: pyinterp.core.geometry.geographic.Ring) numpy.ndarray[dtype=bool, shape=(*), order='C']
pyinterp.geometry.geographic.algorithms.for_each_point_within(source: pyinterp.core.geometry.geographic.MultiPoint, container: pyinterp.core.geometry.geographic.Polygon) numpy.ndarray[dtype=bool, shape=(*), order='C']
pyinterp.geometry.geographic.algorithms.for_each_point_within(source: pyinterp.core.geometry.geographic.MultiPoint, container: pyinterp.core.geometry.geographic.MultiPolygon) numpy.ndarray[dtype=bool, shape=(*), order='C']
pyinterp.geometry.geographic.algorithms.for_each_point_within(source: pyinterp.core.geometry.geographic.LineString, container: pyinterp.core.geometry.geographic.Box) numpy.ndarray[dtype=bool, shape=(*), order='C']
pyinterp.geometry.geographic.algorithms.for_each_point_within(source: pyinterp.core.geometry.geographic.LineString, container: pyinterp.core.geometry.geographic.Ring) numpy.ndarray[dtype=bool, shape=(*), order='C']
pyinterp.geometry.geographic.algorithms.for_each_point_within(source: pyinterp.core.geometry.geographic.LineString, container: pyinterp.core.geometry.geographic.Polygon) numpy.ndarray[dtype=bool, shape=(*), order='C']
pyinterp.geometry.geographic.algorithms.for_each_point_within(source: pyinterp.core.geometry.geographic.LineString, container: pyinterp.core.geometry.geographic.MultiPolygon) numpy.ndarray[dtype=bool, shape=(*), order='C']
pyinterp.geometry.geographic.algorithms.for_each_point_within(source: pyinterp.core.geometry.geographic.Ring, container: pyinterp.core.geometry.geographic.Box) numpy.ndarray[dtype=bool, shape=(*), order='C']
pyinterp.geometry.geographic.algorithms.for_each_point_within(source: pyinterp.core.geometry.geographic.Ring, container: pyinterp.core.geometry.geographic.Ring) numpy.ndarray[dtype=bool, shape=(*), order='C']
pyinterp.geometry.geographic.algorithms.for_each_point_within(source: pyinterp.core.geometry.geographic.Ring, container: pyinterp.core.geometry.geographic.Polygon) numpy.ndarray[dtype=bool, shape=(*), order='C']
pyinterp.geometry.geographic.algorithms.for_each_point_within(source: pyinterp.core.geometry.geographic.Ring, container: pyinterp.core.geometry.geographic.MultiPolygon) numpy.ndarray[dtype=bool, shape=(*), order='C']

Test if each point in a source geometry is within a container geometry.

A point is within a container if it lies in the interior of the container, not on its boundary.

Parameters:
  • source – Source geometry containing points (MultiPoint, LineString, or Ring).

  • container – Container geometry (Box, Polygon, Ring, or MultiPolygon).

Returns:

Boolean array indicating which points are within the container.

See also

for_each_point_covered_by: Include points on the boundary.