It seems that there is an issue with GeoMakie.land():
GeoMakie.land(10)
ERROR: MethodError: no method matching to_multipoly(::Nothing, ::Vector{GeometryBasics.MultiPolygon{2, Float32}})
The function `to_multipoly` exists, but no method is defined for this combination of argument types.
Closest candidates are:
to_multipoly(::GeoInterface.MultiPolygonTrait, ::Any)
@ GeoMakie ~/.julia/packages/GeoMakie/QcBwP/src/geojson.jl:103
to_multipoly(::GeoInterface.PolygonTrait, ::Any)
@ GeoMakie ~/.julia/packages/GeoMakie/QcBwP/src/geojson.jl:102
to_multipoly(::GeoInterface.GeometryCollectionTrait, ::Any)
@ GeoMakie ~/.julia/packages/GeoMakie/QcBwP/src/geojson.jl:105
...
Stacktrace:
[1] _broadcast_getindex_evalf
@ ./broadcast.jl:699 [inlined]
[2] _broadcast_getindex
@ ./broadcast.jl:672 [inlined]
[3] _getindex
@ ./broadcast.jl:620 [inlined]
[4] getindex
@ ./broadcast.jl:616 [inlined]
[5] copy
@ ./broadcast.jl:933 [inlined]
[6] materialize
@ ./broadcast.jl:894 [inlined]
[7] to_multipoly(geom::Vector{Any})
@ GeoMakie ~/.julia/packages/GeoMakie/QcBwP/src/geojson.jl:101
[8] land(scale::Int64)
@ GeoMakie ~/.julia/packages/GeoMakie/QcBwP/src/data.jl:63
[9] top-level scope
@ none:1
I guess these two outputs should have the same type but they don’t:
julia> typeof(GeoMakie.geo2basic(NaturalEarth.naturalearth("land", 50)))
Vector{Any} (alias for Array{Any, 1})
julia> typeof(GeoMakie.geo2basic(NaturalEarth.naturalearth("land", 110)))
Vector{Polygon{2, Float32}} (alias for Array{GeometryBasics.Polygon{2, Float32}, 1})