Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when showing an STRtree with only a single leaf node #3

Closed
asinghvi17 opened this issue Apr 18, 2024 · 3 comments
Closed

Error when showing an STRtree with only a single leaf node #3

asinghvi17 opened this issue Apr 18, 2024 · 3 comments

Comments

@asinghvi17
Copy link

When creating an STRtree with a single geometry I get the following error:

julia> r1  = STRtree(country_df.geometry)
STRtree
Error showing value of type STRtree{SortTileRecursiveTree.STRLeafNode{Vector{Extents.Extent{(:X, :Y), Tuple{Tuple{Float64, Float64}, Tuple{Float64, Float64}}}}}}:
ERROR: type STRLeafNode has no field extent
Stacktrace:
  [1] getproperty
    @ ./Base.jl:37 [inlined]
  [2] show(io::IOContext{Base.TTY}, tree::STRtree{SortTileRecursiveTree.STRLeafNode{Vector{Extents.Extent{(:X, :Y), Tuple{Tuple{Float64, Float64}, Tuple{Float64, Float64}}}}}})
    @ SortTileRecursiveTree ~/.julia/packages/SortTileRecursiveTree/OaYpZ/src/SortTileRecursiveTree.jl:39
  [3] show(io::IOContext{Base.TTY}, ::MIME{Symbol("text/plain")}, x::STRtree{SortTileRecursiveTree.STRLeafNode{Vector{Extents.Extent{(:X, :Y), Tuple{Tuple{Float64, Float64}, Tuple{Float64, Float64}}}}}})
    @ Base.Multimedia ./multimedia.jl:47
@maxfreu
Copy link
Owner

maxfreu commented Apr 18, 2024

Should work now on master, new version is tagged. Sorry, I saw your PR too late and had already merged an ugly runtime check (: So I'm closing your PR.

@asinghvi17
Copy link
Author

No worries :D, as long as it works!

@maxfreu
Copy link
Owner

maxfreu commented Apr 19, 2024

Should work now :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants