You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the case where a collection contains features of different dimensions, the default value returned via s2geography (-1) is not consistent with the value returned by shapely (max dimension value found).
I am not entirely sure why s2geography returns -1 (cc @paleolimbot?), because AFAIK R's s2 returns the max dimension of the parts (except for an empty collection): https://r-spatial.github.io/s2/reference/s2_is_collection.html (see the examples).
And I suppose this is then also consistent with bigquery (I assume, based on the description, but didn't test that)
Yes I think we rather want the result from the s2geography::s2_dimension() function here, which returns values that are consistent with shapely.
IIUC bigquery's ST_DIMENSION always returns -1 for empty geography objects? Whereas shapely.get_dimensions() and s2geography::s2_dimension() both return 0, 1, 2 for empty point, linestring and polygon geography objects, respectively.
In the case where a collection contains features of different dimensions, the default value returned via s2geography (-1) is not consistent with the value returned by shapely (max dimension value found).
Which one do we want?
Originally posted by @jorisvandenbossche in #51 (comment)
The text was updated successfully, but these errors were encountered: