-
Notifications
You must be signed in to change notification settings - Fork 26
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
Return extent based on dimensionality. #319
Conversation
Lol I have an unfinished PR for this too. |
It should be possible to make this type stable? It could use |
As in having two functions and passing |
That won't be type stable cos I mean make |
Ok, will do, but then we need to wait on #316. |
We don't need to wait tho it doesn't change the types |
Your PR introduces the AbstractGeometry{T} right? So function GeoInterface.is3d(
::GeometryTraits,
geom::Union{map(T -> AbstractGeometry{T}, ztypes)...},
)
return true
end would require #316 |
Yeah you're right. My other PR for this just used a Union in the geometry types before I just changed the abstract types. I might add Edit: I guess even |
To be fair, I would opt for using |
Yeah that sounds like a good idea. But also it turns out to be not so easy to do this at all because there is no |
There's |
Yeah but no Z when there is ZM? I cant tell how its all mean to work. |
And to make it more confusing, for the extended geometries, they didn't use 25D, but Z again ( |
Yeah thats what threw me... there are Z geometries and 25D geometries. |
If @rafaqz agrees, this can now be merged as is. |
Yep let's do that. |
Note that I can't merge because we need at least 1 reviewer approving ;) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note that I can't merge because we need at least 1 reviewer approving ;)
Sorry I set it up per https://github.com/SciML/ColPrac/blob/b6cacb2942753a0bb6b721c81543b649f9765063/README.md?plain=1#L29
@rafaqz FYI I think you should have the requisite permissions to approve PRs through the github UI too :)
Thank you for this! |
Before we always returned the 3d extent, even on 2d geometries.