Loading...
Searching...
No Matches
intersection.hpp
1/*
2 * Copyright (c) 2023-2024, NVIDIA CORPORATION.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
20
21#include <cudf/column/column.hpp>
22
23#include <rmm/mr/device/device_memory_resource.hpp>
24#include <rmm/resource_ref.hpp>
25
26namespace cuspatial {
36 std::unique_ptr<cudf::column> geometry_collection_offset;
37
39 std::unique_ptr<cudf::column> types_buffer;
40 std::unique_ptr<cudf::column> offset_buffer;
41
43 std::unique_ptr<cudf::column> points;
44
46 std::unique_ptr<cudf::column> segments;
47
49 std::unique_ptr<cudf::column> lhs_linestring_id;
50 std::unique_ptr<cudf::column> lhs_segment_id;
51 std::unique_ptr<cudf::column> rhs_linestring_id;
52 std::unique_ptr<cudf::column> rhs_segment_id;
53};
54
55linestring_intersection_column_result pairwise_linestring_intersection(
56 geometry_column_view const& multilinestrings_lhs,
57 geometry_column_view const& multilinestrings_rhs,
58 rmm::device_async_resource_ref mr = rmm::mr::get_current_device_resource());
59
60} // namespace cuspatial
A non-owning, immutable view of a geometry column.
Result of linestring intersections.
std::unique_ptr< cudf::column > segments
Child 1: Segment Results as List Type Column.
std::unique_ptr< cudf::column > geometry_collection_offset
List offsets to the union column.
std::unique_ptr< cudf::column > lhs_linestring_id
Look-back Indices.
std::unique_ptr< cudf::column > points
Child 0: Point Results as List Type Column.
std::unique_ptr< cudf::column > types_buffer
Union Column Results.