From 016e23b85add0543bed7fdd5abcb0a75d70be6ab Mon Sep 17 00:00:00 2001 From: Vissarion Fisikopoulos Date: Tue, 30 Aug 2022 17:16:18 +0300 Subject: [PATCH] Add a todo for the geometry covered_by box suboptimal current implementation --- .../geometry/algorithms/detail/covered_by/implementation.hpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/boost/geometry/algorithms/detail/covered_by/implementation.hpp b/include/boost/geometry/algorithms/detail/covered_by/implementation.hpp index 06b60040f..0cf0e7c3c 100644 --- a/include/boost/geometry/algorithms/detail/covered_by/implementation.hpp +++ b/include/boost/geometry/algorithms/detail/covered_by/implementation.hpp @@ -68,6 +68,8 @@ struct geometry_covered_by_box using point_type = typename point_type::type; using box_type = model::box; + // TODO: this is not optimal since the process should be able to terminate if a point is found + // outside of the box without computing the whole envelope box_type box_areal; geometry::envelope(geometry, box_areal, strategy); return strategy.covered_by(box_areal, box).apply(box_areal, box);