-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fix get_dimensions() #87
base: main
Are you sure you want to change the base?
Conversation
Return values that are consistent with shapely for collections.
Note: the I wonder if we shouldn't remove the Geography |
(It was probably a bad name in s2geography...it's useful to know if everything is a single dimension, but easy to get confused with |
Sorry it wasn't clear, I meant remove those properties from the Python public API. (And maybe expose another function to besides |
I think it would indeed be good to remove that attribute for now, because it probably will only be confusing (and we can always add it later again if we want to do so) FWIW, I think the name of this function should actually be |
Agreed. non-plural form makes more sense and is used in R's s2 and bigquery. Maybe we could have a temporary alias here for compatibility with Shapely? And at the same time try to suggest changing the name of the function in shapely (with some deprecation cycle)? |
Yeah, I was also thinking that and would be supportive of at least adding such an alias in shapely (we can still see if we actually deprecate the other long term). If we would add an alias on the shapely side, not sure if it's needed to have both aliases here, though (on the short term, I don't think anyone is going to write code where they expect they can exactly swap |
Closes #57.
Return values that are consistent with shapely for collections.