Loading...
Searching...
No Matches
bounding_boxes.hpp
Go to the documentation of this file.
1/*
2 * Copyright (c) 2020-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
19#include <cudf/types.hpp>
20
21#include <rmm/mr/device/per_device_resource.hpp>
22#include <rmm/resource_ref.hpp>
23
24#include <memory>
25
26namespace cuspatial {
27
52std::unique_ptr<cudf::table> linestring_bounding_boxes(
53 cudf::column_view const& linestring_offsets,
54 cudf::column_view const& x,
55 cudf::column_view const& y,
56 double expansion_radius,
57 rmm::device_async_resource_ref mr = rmm::mr::get_current_device_resource());
58
79std::unique_ptr<cudf::table> polygon_bounding_boxes(
80 cudf::column_view const& poly_offsets,
81 cudf::column_view const& ring_offsets,
82 cudf::column_view const& x,
83 cudf::column_view const& y,
84 double expansion_radius = 0.0,
85 rmm::device_async_resource_ref mr = rmm::mr::get_current_device_resource());
86
91} // namespace cuspatial
BoundingBoxIterator linestring_bounding_boxes(LinestringOffsetIterator linestring_offsets_first, LinestringOffsetIterator linestring_offsets_last, VertexIterator linestring_vertices_first, VertexIterator linestring_vertices_last, BoundingBoxIterator bounding_boxes_first, T expansion_radius=T{0}, rmm::cuda_stream_view stream=rmm::cuda_stream_default)
Compute minimum bounding box for each linestring.
BoundingBoxIterator polygon_bounding_boxes(PolygonOffsetIterator polygon_offsets_first, PolygonOffsetIterator polygon_offsets_last, RingOffsetIterator polygon_ring_offsets_first, RingOffsetIterator polygon_ring_offsets_last, VertexIterator polygon_vertices_first, VertexIterator polygon_vertices_last, BoundingBoxIterator bounding_boxes_first, T expansion_radius=T{0}, rmm::cuda_stream_view stream=rmm::cuda_stream_default)
Compute minimum bounding box for each polygon.