We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
isspatialtree
1 parent 81ef5b1 commit 3497894Copy full SHA for 3497894
src/utils/NaturalIndexing.jl
@@ -152,6 +152,9 @@ Extents.extent(node::NaturalTreeNode) = node.extent
152
# - `isleaf(node)` returns a boolean indicating whether the node is a leaf
153
# - `child_indices_extents(node)` returns an iterator over the indices and extents of the children of the node
154
155
+SpatialTreeInterface.isspatialtree(::Type{<: NaturalIndexing}) = true
156
+SpatialTreeInterface.isspatialtree(::Type{<: NaturalTreeNode}) = true
157
+
158
function SpatialTreeInterface.nchild(node::NaturalTreeNode)
159
start_idx = (node.index - 1) * node.parent_index.nodecapacity + 1
160
stop_idx = min(start_idx + node.parent_index.nodecapacity - 1, length(node.parent_index.levels[node.level+1].extents))
0 commit comments