Simplify header-only point-in-polygon API #707
Labels
improvement
Improvement / enhancement to an existing function
libcuspatial
Relates to the cuSpatial C++ library
tech debt
Related to improving software quality
Milestone
With introduction of
multi*_range
classes, point-in-polygon API can be simplified to just accepting amultipoint_range
and amultipolygon_range
.Note that this refactor will "augment" the existing API to support multi* geometries.
For
pairwise_point_in_polygon
, a simple way is to add additional loops on top of the current kernel. This can allow the API to support geometry collections, while maintaining performance for non-multi geometry inputs.For
point_in_polygon
, theall-pairs
version, it can be simplified to amultipoint_ref
to amultipolygon_ref
. Inmultipolygon
we require that the input to be order-aware. Alternatively it can be amultipoint_range
andmultipolygon_range
, while limiting the geometry offset iterators to be only counting iterators.The text was updated successfully, but these errors were encountered: