Loading...
Searching...
No Matches
nearest_points.cuh
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022, 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
19#include <rmm/cuda_stream_view.hpp>
20
21namespace cuspatial {
22
83template <class Vec2dItA,
84 class Vec2dItB,
85 class OffsetIteratorA,
86 class OffsetIteratorB,
87 class OffsetIteratorC,
88 class OutputIt>
90 OffsetIteratorA points_geometry_offsets_first,
91 OffsetIteratorA points_geometry_offsets_last,
92 Vec2dItA points_first,
93 Vec2dItA points_last,
94 OffsetIteratorB linestring_geometry_offsets_first,
95 OffsetIteratorC linestring_part_offsets_first,
96 OffsetIteratorC linestring_part_offsets_last,
97 Vec2dItB linestring_points_first,
98 Vec2dItB linestring_points_last,
99 OutputIt output_first,
100 rmm::cuda_stream_view stream = rmm::cuda_stream_default);
101} // namespace cuspatial
102
103#include <cuspatial/detail/point_linestring_nearest_points.cuh>
OutputIt pairwise_point_linestring_nearest_points(OffsetIteratorA points_geometry_offsets_first, OffsetIteratorA points_geometry_offsets_last, Vec2dItA points_first, Vec2dItA points_last, OffsetIteratorB linestring_geometry_offsets_first, OffsetIteratorC linestring_part_offsets_first, OffsetIteratorC linestring_part_offsets_last, Vec2dItB linestring_points_first, Vec2dItB linestring_points_last, OutputIt output_first, rmm::cuda_stream_view stream=rmm::cuda_stream_default)
Compute the nearest points and geometry ID between pairs of multipoint and multilinestring.