Loading...
Searching...
No Matches
intersection.hpp
1/*
2 * Copyright (c) 2023, 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
25namespace cuspatial {
35 std::unique_ptr<cudf::column> geometry_collection_offset;
36
38 std::unique_ptr<cudf::column> types_buffer;
39 std::unique_ptr<cudf::column> offset_buffer;
40
42 std::unique_ptr<cudf::column> points;
43
45 std::unique_ptr<cudf::column> segments;
46
48 std::unique_ptr<cudf::column> lhs_linestring_id;
49 std::unique_ptr<cudf::column> lhs_segment_id;
50 std::unique_ptr<cudf::column> rhs_linestring_id;
51 std::unique_ptr<cudf::column> rhs_segment_id;
52};
53
54linestring_intersection_column_result pairwise_linestring_intersection(
55 geometry_column_view const& multilinestrings_lhs,
56 geometry_column_view const& multilinestrings_rhs,
57 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
58
59} // 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.