-
Notifications
You must be signed in to change notification settings - Fork 15
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
Makie plotting empty LibGEOS polygon fails #81
Comments
So this is a problem with the GeometryBasics.jl Needs to be changed to: So the vector type is set even when its empty. In fact most of the vectors in the file need that treatement, e.g. |
I looked into this: we need to think about what to do with empty geometries in It's currently not clear what to return as we don't know the eltype. We may need to implement at better iterator that has a know eltype even when its empty. |
Maybe we could explicitly create an empty geometry But now I am a bit puzzled what the dimension should be since |
Yeah, there are a lot of issues with zero length polygons and other geometries. Base julia uses some dark arts like return value inference to make zero length iterators make sense. We probably don't want to do that. But I think this might need some serious design work to solve this in a general way. But: does plotting zero length polygons even work in Makie.jl with |
|
Ok so what you want isn't possible in Makie unless we do that NaN point hack. @SimonDanisch any ideas here? should Makie be able to plot zero length polygons? |
gives
with
The text was updated successfully, but these errors were encountered: