@@ -2,7 +2,7 @@ using Test
2
2
3
3
using GeometryOps. SpatialTreeInterface
4
4
using GeometryOps. SpatialTreeInterface: isspatialtree, isleaf, getchild, nchild, child_indices_extents, node_extent
5
- using GeometryOps. SpatialTreeInterface: query, do_query, do_dual_query
5
+ using GeometryOps. SpatialTreeInterface: query, depth_first_search, dual_depth_first_search
6
6
using GeometryOps. SpatialTreeInterface: FlatNoTree
7
7
using Extents
8
8
using GeoInterface: GeoInterface as GI
@@ -81,13 +81,13 @@ function test_dual_query_functionality(TreeType)
81
81
# Test dual query with a predicate that matches all
82
82
all_pred = (x, y) -> true
83
83
results = Tuple{Int, Int}[]
84
- do_dual_query ((i, j) -> push! (results, (i, j)), all_pred, tree1, tree2)
84
+ dual_depth_first_search ((i, j) -> push! (results, (i, j)), all_pred, tree1, tree2)
85
85
@test length (results) == 4 # 2 points in tree1 * 2 points in tree2
86
86
87
87
# Test dual query with a specific predicate
88
88
intersects_pred = (x, y) -> Extents. intersects (x, y)
89
89
results = Tuple{Int, Int}[]
90
- do_dual_query ((i, j) -> push! (results, (i, j)), intersects_pred, tree1, tree2)
90
+ dual_depth_first_search ((i, j) -> push! (results, (i, j)), intersects_pred, tree1, tree2)
91
91
@test sort (results) == [(1 ,1 ), (2 ,1 ), (2 ,2 )]
92
92
end
93
93
end
0 commit comments