Loading...
Searching...
No Matches
point_in_polygon.hpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020-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 <cudf/column/column.hpp>
20#include <cudf/column/column_view.hpp>
21#include <cudf/types.hpp>
22
23#include <rmm/mr/device/per_device_resource.hpp>
24
25#include <memory>
26
27namespace cuspatial {
28
74std::unique_ptr<cudf::column> point_in_polygon(
75 cudf::column_view const& test_points_x,
76 cudf::column_view const& test_points_y,
77 cudf::column_view const& poly_offsets,
78 cudf::column_view const& poly_ring_offsets,
79 cudf::column_view const& poly_points_x,
80 cudf::column_view const& poly_points_y,
81 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
82
123std::unique_ptr<cudf::column> pairwise_point_in_polygon(
124 cudf::column_view const& test_points_x,
125 cudf::column_view const& test_points_y,
126 cudf::column_view const& poly_offsets,
127 cudf::column_view const& poly_ring_offsets,
128 cudf::column_view const& poly_points_x,
129 cudf::column_view const& poly_points_y,
130 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
131
136} // namespace cuspatial
OutputIt pairwise_point_in_polygon(PointRange points, PolygonRange polygons, OutputIt results, rmm::cuda_stream_view stream=rmm::cuda_stream_default)
Given (point, polygon) pairs, tests whether the point in the pair is in the polygon in the pair.
OutputIt point_in_polygon(PointRange points, PolygonRange polygons, OutputIt output, rmm::cuda_stream_view stream=rmm::cuda_stream_default)
Tests whether the specified points are inside any of the specified polygons.