Skip to content

Commit 82301ea

Browse files
asinghvi17Rafael Schouten
andcommitted
Move imports to main file
Co-authored-by: Rafael Schouten <[email protected]>
1 parent b67f8c9 commit 82301ea

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

src/GeometryOps.jl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ include("utils/SpatialTreeInterface/SpatialTreeInterface.jl") # Utils for spatia
4444
include("utils/NaturalIndexing.jl") # Utils for natural indexing
4545
include("utils/utils.jl") # More general utility functions
4646

47+
# Load utility modules in
48+
using .NaturalIndexing, .SpatialTreeInterface, .LoopStateMachine
49+
4750
include("methods/angles.jl")
4851
include("methods/area.jl")
4952
include("methods/barycentric.jl")

src/utils/NaturalIndexing.jl

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import GeoInterface as GI
44
import Extents
55

66
using ..SpatialTreeInterface
7+
export NaturalTree, NaturallyIndexedRing, prepare_naturally
78

89
"""
910
NaturalLevel{E <: Extents.Extent}
@@ -228,8 +229,4 @@ function prepare_naturally(geom)
228229
end
229230
end
230231

231-
export NaturalTree, NaturallyIndexedRing, prepare_naturally
232-
233-
end # module NaturalIndexing
234-
235-
using .NaturalIndexing
232+
end # module NaturalIndexing

src/utils/SpatialTreeInterface/SpatialTreeInterface.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ import Extents
66
import GeoInterface as GI
77
import AbstractTrees
88

9+
# public isspatialtree, getchild, nchild, child_indices_extents
10+
export query, do_query
11+
912
# ## Interface
1013
# Interface definition for spatial tree types.
1114
# There is no abstract supertype here since it's impossible to enforce,
@@ -95,7 +98,6 @@ function do_query(f::F, predicate::P, node::N) where {F, P, N}
9598
end
9699
end
97100
end
98-
99101
function do_query(predicate, node)
100102
a = Int[]
101103
do_query(Base.Fix1(push!, a), predicate, node)
@@ -221,6 +223,4 @@ function child_indices_extents(tree::FlatNoTree{T}) where T
221223
end
222224
end
223225

224-
end # module SpatialTreeInterface
225-
226-
using .SpatialTreeInterface
226+
end # module SpatialTreeInterface

0 commit comments

Comments
 (0)