Open Sov-trotter opened 4 years ago
These are supported now
MultiLineStrings are still not supported but I have an implementation floating around somewhere in GeoMakie I think.
There also need a function for AbstractVector{<:MultiLineString{N,T}}
Related with the issue of https://github.com/JuliaGeo/Shapefile.jl/issues/123.
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
Seems like we could just extend the existing function to include AbstractVector{<: MultiLineString{N, T}}
? Do you want to make a pr for this?
Hello folks! Currently Makie only supports plotting Point or MultiPoint geometry.
Other geometries like Linestring, polygon etc and their multi-geometry counterparts are not supported directly per se.
So it is clear that the
convert_arguments
method isn't defined for linestring yet.But this way we can get it to plot our linestring
So can the GeometryBasics geometries added to Makie? I'd be more than happy to make a PR. :) If yes, then is there any better way to do it?