22#include <rmm/cuda_stream_view.hpp>
23#include <rmm/device_uvector.hpp>
24#include <rmm/mr/device/per_device_resource.hpp>
26#include <thrust/pair.h>
30enum IntersectionTypeCode : uint8_t { POINT = 0, LINESTRING = 1 };
41template <
typename T,
typename OffsetType>
43 using point_t = vec_2d<T>;
44 using segment_t = segment<T>;
45 using types_t = uint8_t;
46 using index_t = OffsetType;
53 std::unique_ptr<rmm::device_uvector<index_t>> offset_buffer;
63 std::unique_ptr<rmm::device_uvector<index_t>> lhs_segment_id;
64 std::unique_ptr<rmm::device_uvector<index_t>> rhs_linestring_id;
65 std::unique_ptr<rmm::device_uvector<index_t>> rhs_segment_id;
85 typename MultiLinestringRange1,
86 typename MultiLinestringRange2>
87linestring_intersection_result<T, index_t> pairwise_linestring_intersection(
88 MultiLinestringRange1 multilinestrings1,
89 MultiLinestringRange2 multilinestrings2,
90 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource(),
91 rmm::cuda_stream_view stream = rmm::cuda_stream_default);
95#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.