Add a todo for the geometry covered_by box suboptimal current implementation

This commit is contained in:
Vissarion Fisikopoulos 2022-08-30 17:16:18 +03:00
parent 69069a2285
commit 016e23b85a

View File

@ -68,6 +68,8 @@ struct geometry_covered_by_box
using point_type = typename point_type<Geometry>::type;
using box_type = model::box<point_type>;
// 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);