Open kongdd opened 3 weeks ago
So the problem is probably the Union of 2d/3d point types. But how does that even happen it's not allowed in the spec... So probably it's a bug.
This problem might root in the _convert_array_arguments
function.
But not sure whether it is the problem of GeoInterfaceMakie
or Makie
.
Adding a new interface for AbstractVector{<:MultiLineString{N,T}}
solved this issue.
import Makie: convert_arguments
function convert_arguments(PB::PointBased, linestring::AbstractVector{<:MultiLineString{N,T}}) where {N,T}
T_out = float_type(T)
arr = Point{N,T_out}[]
n = length(linestring)
for idx in 1:n
append!(arr, convert_arguments(PB, linestring[idx])[1])
if idx != n # don't add NaN at the end
push!(arr, Point{N,T_out}(NaN))
end
end
return (arr,)
end
https://github.com/JuliaGeo/GeoInterface.jl/blob/main/GeoInterfaceMakie/src/GeoInterfaceMakie.jl#L32
hyd1_4l.shp
is available at hyd1_4l.ziplines!(ax, shp)
gives the error: