-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Supporting GeometryBasics geometries #660
Comments
These are supported now |
MultiLineStrings are still not supported but I have an implementation floating around somewhere in GeoMakie I think. |
They are supported: Lines 211 to 221 in 2b5931e
|
There also need a function for 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 |
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?
The text was updated successfully, but these errors were encountered: