vibespatial.constructive.point

Functions

point_owned_from_xy(...)

Create a point-only OwnedGeometryArray directly from x/y coordinate arrays.

point_owned_from_xy_device(...)

Create a device-resident point OwnedGeometryArray from host x/y arrays.

clip_points_rect_owned(...)

point_buffer_owned_array(...)

point_buffer_native_tabular_result(points, distance, *)

Return point-buffer output as a private native constructive carrier.

Module Contents

vibespatial.constructive.point.point_owned_from_xy(x: numpy.ndarray, y: numpy.ndarray) vibespatial.geometry.owned.OwnedGeometryArray

Create a point-only OwnedGeometryArray directly from x/y coordinate arrays.

Avoids Shapely round-trip. Both arrays must be 1-D float64 of equal length.

vibespatial.constructive.point.point_owned_from_xy_device(x: numpy.ndarray, y: numpy.ndarray) vibespatial.geometry.owned.OwnedGeometryArray

Create a device-resident point OwnedGeometryArray from host x/y arrays.

Uploads coordinate data directly to the GPU and builds a device-resident OwnedGeometryArray. Host-side x/y arrays are kept in the family buffer for backward compatibility with code that reads buffer.x directly (e.g. predicates/support.py:extract_point_coordinates).

Both arrays must be 1-D float64 of equal length.

vibespatial.constructive.point.clip_points_rect_owned(points: vibespatial.geometry.owned.OwnedGeometryArray, xmin: float, ymin: float, xmax: float, ymax: float, *, dispatch_mode: vibespatial.runtime.ExecutionMode = ExecutionMode.AUTO, boundary_inclusive: bool = True) vibespatial.geometry.owned.OwnedGeometryArray
vibespatial.constructive.point.point_buffer_owned_array(points: vibespatial.geometry.owned.OwnedGeometryArray, distance: float | numpy.ndarray, *, quad_segs: int = 1, dispatch_mode: vibespatial.runtime.ExecutionMode = ExecutionMode.AUTO) vibespatial.geometry.owned.OwnedGeometryArray
vibespatial.constructive.point.point_buffer_native_tabular_result(points: vibespatial.geometry.owned.OwnedGeometryArray, distance: float | numpy.ndarray, *, quad_segs: int = 1, dispatch_mode: vibespatial.runtime.ExecutionMode = ExecutionMode.AUTO, crs=None, geometry_name: str = 'geometry', source_rows=None, source_tokens: tuple[str, Ellipsis] = ())

Return point-buffer output as a private native constructive carrier.