vibespatial.spatial.segment_distance¶
Functions¶
|
Compute geometry-geometry distance on device. |
Return the set of geometry families supported by segment-distance kernels. |
Module Contents¶
- vibespatial.spatial.segment_distance.compute_segment_distance_gpu(query_owned: vibespatial.geometry.owned.OwnedGeometryArray, tree_owned: vibespatial.geometry.owned.OwnedGeometryArray, d_left, d_right, d_distances, pair_count: int, *, query_family: vibespatial.geometry.buffers.GeometryFamily, tree_family: vibespatial.geometry.buffers.GeometryFamily, exclusive: bool = False) bool¶
Compute geometry-geometry distance on device.
Covers all combinations of LINESTRING, MULTILINESTRING, POLYGON, MULTIPOLYGON on both sides. Uses canonical-pair normalisation with index swapping for symmetric pairs.
Writes results into d_distances. Returns True on success, False if the family pair is not supported.
- vibespatial.spatial.segment_distance.supported_segment_distance_families() frozenset[vibespatial.geometry.buffers.GeometryFamily]¶
Return the set of geometry families supported by segment-distance kernels.