feature_contains_point


Description:

public bool feature_contains_point (double x, double y)

Determines whether the current feature contains the given point.

The point must be specified in tile space. See [method@VectorReaderIter.get_layer_extent] to get the range of the coordinates.

Only polygon or multipolygon features can contain a point. For all other feature types, this function returns false.

If the point is on the border of the polygon, this function may return either true or false.

Parameters:

this

A [class@VectorReaderIter].

Returns:

true if the feature contains the point, false otherwise.