Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add column API for pairwise_point_polygon_distance #984

Merged
Changes from 1 commit
Commits
Show all changes
40 commits
Select commit Hold shift + click to select a range
965b80a
initial
isVoid Feb 28, 2023
38af8e6
Merge branch 'branch-23.04' of https://github.com/rapidsai/cuspatial …
isVoid Mar 1, 2023
02f61fe
add pragma once for floating_point.cuh
isVoid Mar 7, 2023
7bd797f
add polygon_ref structure
isVoid Mar 7, 2023
0968c15
add multipolygon_ref class
isVoid Mar 7, 2023
a659eab
update multipolygon_range class
isVoid Mar 7, 2023
c274070
update multipoint_range class
isVoid Mar 7, 2023
12ffa53
update is_point_in_polygon usage with polygon_ref
isVoid Mar 7, 2023
7490333
update multilinestring_range
isVoid Mar 7, 2023
f665287
add point to polygon kernel
isVoid Mar 7, 2023
291f6e6
add segment deduction guide
isVoid Mar 7, 2023
efa6883
add owning object type to vector factories
isVoid Mar 7, 2023
23146ef
add tests
isVoid Mar 7, 2023
ead160a
add helper files
isVoid Mar 7, 2023
09bd35f
add more tests
isVoid Mar 8, 2023
92760d1
bug fixes
isVoid Mar 8, 2023
8acb5dc
cleanups
isVoid Mar 8, 2023
a2b94fe
fix tests
isVoid Mar 8, 2023
46a67fe
optimize single point range input
isVoid Mar 8, 2023
b725b52
docs, type checks in range ctor
isVoid Mar 8, 2023
cb5706a
Merge branch 'branch-23.04' into feature/polygon_distances
isVoid Mar 8, 2023
ab59e7d
use range based for loop in is_point_in_polygon
isVoid Mar 8, 2023
ddcd5d2
initial column API
isVoid Mar 9, 2023
b136c0b
Apply suggestions from code review
isVoid Mar 9, 2023
744f32f
add docs
isVoid Mar 9, 2023
bb6c637
style
isVoid Mar 9, 2023
756650b
Merge branch 'branch-23.04' of https://github.com/rapidsai/cuspatial …
isVoid Mar 9, 2023
ec23d6e
add column API tests, augment column_factories
isVoid Mar 10, 2023
8319e7c
fix bug in PiP tests
isVoid Mar 10, 2023
85fab66
Merge branch 'feature/polygon_distances' into feature/point_polygon_d…
isVoid Mar 10, 2023
43cc02a
add validation checks
isVoid Mar 10, 2023
386ad1f
Merge branch 'branch-23.04' of https://github.com/rapidsai/cuspatial …
isVoid Mar 21, 2023
402a8e3
remove unused code pieces and files
isVoid Mar 21, 2023
67c931b
Merge branch 'branch-23.04' into feature/point_polygon_distance_colum…
isVoid Mar 21, 2023
3f1da02
address docs review
isVoid Mar 21, 2023
4b33176
Merge branch 'feature/point_polygon_distance_column_api' of github.co…
isVoid Mar 21, 2023
961f6ce
Merge branch 'branch-23.04' into feature/point_polygon_distance_colum…
isVoid Mar 21, 2023
50b6c6b
style
isVoid Mar 21, 2023
375fae1
Merge branch 'feature/point_polygon_distance_column_api' of github.co…
isVoid Mar 21, 2023
16379c2
address reviews
isVoid Mar 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
update multilinestring_range
  • Loading branch information
isVoid committed Mar 7, 2023
commit 749033340a81e816f30f95ce3a0b401d17ee8eb1
Original file line number Diff line number Diff line change
@@ -1,6 +1,22 @@
/*
* Copyright (c) 2023, NVIDIA CORPORATION.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

#pragma once

#include "cuspatial/cuda_utils.hpp"
#include <cuspatial/cuda_utils.hpp>
#include <cuspatial/detail/iterator.hpp>
#include <cuspatial/experimental/geometry/linestring_ref.cuh>

@@ -22,6 +38,9 @@ struct to_linestring_functor {

CUSPATIAL_HOST_DEVICE auto operator()(difference_type i)
{
printf("In to_linestring_functor: %d %d\n",
static_cast<int>(part_begin[i]),
static_cast<int>(part_begin[i + 1]));
return linestring_ref{point_begin + part_begin[i], point_begin + part_begin[i + 1]};
}
};