spherely icon indicating copy to clipboard operation
spherely copied to clipboard

Manipulation and analysis of geometric objects on the sphere.

Results 36 spherely issues
Sort by recently updated
recently updated
newest added

updates: - [github.com/pre-commit/pre-commit-hooks: v4.5.0 → v4.6.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.5.0...v4.6.0) - [github.com/psf/black: 24.2.0 → 24.4.2](https://github.com/psf/black/compare/24.2.0...24.4.2) - [github.com/pre-commit/mirrors-clang-format: v17.0.6 → v18.1.5](https://github.com/pre-commit/mirrors-clang-format/compare/v17.0.6...v18.1.5)

Pybind11 2.11.0 has proper support for numpy object dtype (`PyObject *`): https://github.com/pybind/pybind11/releases/tag/v2.11.0.

Currently we have a Geography base class and the Point, Linestring and Polygon subclasses. `s2geography` itself has in addition also a GeographyCollection. https://github.com/benbovy/spherely/pull/26 is adding more subclasses, and I questioned...

- [x] `LinearRing` - There is no corresponding class in s2geography (yet) and no class in s2geometry that we can use directly, but it was relatively (hopefully) easy to expose...

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: - [x] intersects -...

good first issue

Just putting it here as draft PR to show what I was experimenting with (this just projects a single point at the moment). The reason I started looking at this...

@benbovy feel free to close this if you are already aware of it and didn't want to consider it. I'm hoping to carve out a little time at some point...

It might be nice to get a better float (using some rounding) representation: ``` In [8]: spherely.LineString([(-1, -1), (1, 1)]) Out[8]: LINESTRING (-0.9999999999999998 -1, 0.9999999999999998 1) ```

The figures below show results from quick and naive benchmarks that compare the total (single thread) execution times for a few functions in shapely 2.0 vs. s2shapely. All benchmarks are...