Skip to content

Commit 9210033

Browse files
committed
Define isspatialtree for FlatNoTree
1 parent d6c1ffc commit 9210033

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/utils/SpatialTreeInterface/SpatialTreeInterface.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import Extents
66
import GeoInterface as GI
77
import AbstractTrees
88

9-
# public isspatialtree, getchild, nchild, child_indices_extents, node_extent
9+
# public isspatialtree, isleaf, getchild, nchild, child_indices_extents, node_extent
1010
export query, do_query
1111

1212
# ## Interface
@@ -225,6 +225,7 @@ struct FlatNoTree{T}
225225
geometries::T
226226
end
227227

228+
isspatialtree(::Type{<: FlatNoTree}) = true
228229
isleaf(tree::FlatNoTree) = true
229230

230231
# NOTE: use pairs instead of enumerate here, so that we can support

0 commit comments

Comments
 (0)