vibespatial.constructive.clip_rect

Attributes

Classes

RectClipResult

Result of a rectangle clip operation.

RectClipBenchmark

Functions

clip_by_rect_owned(→ RectClipResult)

evaluate_geopandas_clip_by_rect(...)

benchmark_clip_by_rect(→ RectClipBenchmark)

Module Contents

vibespatial.constructive.clip_rect.EMPTY
class vibespatial.constructive.clip_rect.RectClipResult(*, geometries: numpy.ndarray | None = None, geometries_factory: object | None = None, row_count: int, candidate_rows: numpy.ndarray, fast_rows: numpy.ndarray, fallback_rows: numpy.ndarray, runtime_selection: vibespatial.runtime.RuntimeSelection, precision_plan: vibespatial.runtime.precision.PrecisionPlan, robustness_plan: vibespatial.runtime.robustness.RobustnessPlan, owned_result: vibespatial.geometry.owned.OwnedGeometryArray | None = None)

Result of a rectangle clip operation.

geometries is lazily materialized from owned_result when accessed for the first time on the GPU point path, avoiding D->H->Shapely overhead unless a caller actually needs Shapely objects.

row_count
candidate_rows
fast_rows
fallback_rows
runtime_selection
precision_plan
robustness_plan
owned_result = None
property geometries: numpy.ndarray
class vibespatial.constructive.clip_rect.RectClipBenchmark
dataset: str
rows: int
candidate_rows: int
fast_rows: int
fallback_rows: int
owned_elapsed_seconds: float
shapely_elapsed_seconds: float
property speedup_vs_shapely: float
vibespatial.constructive.clip_rect.clip_by_rect_owned(values: collections.abc.Sequence[object | None] | numpy.ndarray | vibespatial.geometry.owned.OwnedGeometryArray, xmin: float, ymin: float, xmax: float, ymax: float, *, dispatch_mode: vibespatial.runtime.ExecutionMode | str = ExecutionMode.AUTO, precision: vibespatial.runtime.precision.PrecisionMode | str = PrecisionMode.AUTO) RectClipResult
vibespatial.constructive.clip_rect.evaluate_geopandas_clip_by_rect(values: numpy.ndarray, xmin: float, ymin: float, xmax: float, ymax: float, *, prebuilt_owned: vibespatial.geometry.owned.OwnedGeometryArray | None = None) tuple[numpy.ndarray | None, vibespatial.runtime.ExecutionMode]
vibespatial.constructive.clip_rect.benchmark_clip_by_rect(values: collections.abc.Sequence[object | None] | numpy.ndarray | vibespatial.geometry.owned.OwnedGeometryArray, xmin: float, ymin: float, xmax: float, ymax: float, *, dataset: str) RectClipBenchmark