libcuspatial  24.04.00
Loading...
Searching...
No Matches
bounding_boxes.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/types.hpp>
20
21#include <rmm/mr/device/per_device_resource.hpp>
22
23#include <memory>
24
25namespace cuspatial {
26
51std::unique_ptr<cudf::table> linestring_bounding_boxes(
52 cudf::column_view const& linestring_offsets,
53 cudf::column_view const& x,
54 cudf::column_view const& y,
55 double expansion_radius,
56 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
57
78std::unique_ptr<cudf::table> polygon_bounding_boxes(
79 cudf::column_view const& poly_offsets,
80 cudf::column_view const& ring_offsets,
81 cudf::column_view const& x,
82 cudf::column_view const& y,
83 double expansion_radius = 0.0,
84 rmm::mr::device_memory_resource* mr = rmm::mr::get_current_device_resource());
85
90} // 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.