Skip to main content

verify_interior_point

Function verify_interior_point 

Source
pub fn verify_interior_point(
    point: Option<Coord<f64>>,
    geometry: Option<&Geometry<f64>>,
) -> Verification
Expand description

Reports where point sits relative to geometry.

Both arguments are optional because both callers already hold optionals: interior_point returns None for an empty input, and a GeoJSON Feature may carry a null geometry. Either None is Unverifiable.

Dispatch is on dimension_non_empty, the same function interior_point dispatches on, and not on the adapter’s dimension. The two disagree when a collection holds an empty element of higher dimension than its non-empty ones — GEOMETRYCOLLECTION (POINT (5 5), LINESTRING EMPTY) is dimension 1 and non-empty dimension 0 — and following dimension there would contradict the point that was actually computed.