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
Some features available in s2geography that could be implemented in spherely with relatively little effort (i.e., straightforward functions returning simple types like bool, float, etc.):
Returns True if A and B share any portion of space.
Intersects implies that overlaps, touches and within are True.
Parameters
----------
a, b : :py:class:`Geography` or array_like
Geography object(s)
)pbdoc");
For predicates that are not directly implemented in s2geography but that can be easily derived from another predicate, it is possible to use a lambda, like for within:
Some features available in s2geography that could be implemented in spherely with relatively little effort (i.e., straightforward functions returning simple types like bool, float, etc.):
Predicates:
Measurement:
One example with
intersects
s2geography API:
https://github.com/paleolimbot/s2geography/blob/764682d60f757383e5853a45a12404c84f3e5961/src/s2geography/predicates.h#L10-L12
spherely bindings:
spherely/src/predicates.cpp
Lines 37 to 51 in e874e60
For predicates that are not directly implemented in s2geography but that can be easily derived from another predicate, it is possible to use a lambda, like for
within
:spherely/src/predicates.cpp
Lines 84 to 100 in e874e60
Documentation:
https://github.com/benbovy/spherely/blob/main/docs/api.rst#predicates
Typing annotations:
spherely/src/spherely.pyi
Line 104 in 0b7d3bb
The text was updated successfully, but these errors were encountered: