22#include <rmm/cuda_stream_view.hpp>
23#include <rmm/device_uvector.hpp>
24#include <rmm/mr/device/per_device_resource.hpp>
25#include <rmm/resource_ref.hpp>
27#include <thrust/pair.h>
31enum IntersectionTypeCode : uint8_t { POINT = 0, LINESTRING = 1 };
42template <
typename T,
typename OffsetType>
44 using point_t = vec_2d<T>;
45 using segment_t = segment<T>;
46 using types_t = uint8_t;
47 using index_t = OffsetType;
54 std::unique_ptr<rmm::device_uvector<index_t>> offset_buffer;
64 std::unique_ptr<rmm::device_uvector<index_t>> lhs_segment_id;
65 std::unique_ptr<rmm::device_uvector<index_t>> rhs_linestring_id;
66 std::unique_ptr<rmm::device_uvector<index_t>> rhs_segment_id;
86 typename MultiLinestringRange1,
87 typename MultiLinestringRange2>
88linestring_intersection_result<T, index_t> pairwise_linestring_intersection(
89 MultiLinestringRange1 multilinestrings1,
90 MultiLinestringRange2 multilinestrings2,
91 rmm::device_async_resource_ref mr = rmm::mr::get_current_device_resource(),
92 rmm::cuda_stream_view stream = rmm::cuda_stream_default);
96#include <cuspatial/detail/intersection/linestring_intersection.cuh>
Result of linestring intersections.
std::unique_ptr< rmm::device_uvector< segment_t > > segments_coords
Child 1: Segment Results.
std::unique_ptr< rmm::device_uvector< index_t > > geometry_collection_offset
List offsets to the union column.
std::unique_ptr< rmm::device_uvector< point_t > > points_coords
Child 0: Point Results.
std::unique_ptr< rmm::device_uvector< index_t > > lhs_linestring_id
Look-back Indices.
std::unique_ptr< rmm::device_uvector< types_t > > types_buffer
Union Column Results.