Skip to main content

object-oriented spherical geometry

Project description

STScI Logo STScI Name

sphersgeo

build tests readthedocs Powered by STScI

sphersgeo is an object-oriented spherical geometry package written in Rust with Python accessor classes and methods.

[!IMPORTANT] sphersgeo is still in development and does not currently implement all the robust functionality provided by planar geometry packages such as geo or Shapely.

[!NOTE] Intersections between geometries are NOT rigorous; the .intersection() function will ONLY return the lower order of geometry being compared, and does NOT handle degenerate cases / touching geometries.

pip install sphersgeo

Planar geometry packages typically classify geometries into points, linestrings (also called polylines), and polygons (along with multi-geometry collections: multi-points, multi-linestrings / multi-polylines, and multi-polygons). The spherical geometry analogues to these are spherical points, arcstrings, and spherical polygons.

Planar Spherical Planar Collection Spherical Collection
Point SphericalPoint MultiPoint MultiSphericalPoint
LineString ArcString MultiLineString MultiArcString
Polygon SphericalPolygon MultiPolygon MultiSphericalPolygon

Sources and Further Reading

  • Toddhunter, I. (1886). Article 99. In Spherical Trigonometry: For the Use of Colleges and Schools (pp. 73–74). print.
  • Miller, Robert D. Computing the area of a spherical polygon. Graphics Gems IV. p132. 1994. Academic Press. doi:10.5555/180895.180907. print.
  • Spinielli, Enrico. 2014. “Understanding Great Circle Arcs Intersection Algorithm.” October 19, 2014. https://enrico.spinielli.net/posts/2014-10-19-understanding-great-circle-arcs.
  • M.A, Jayaram & Fleyeh, Hasan. (2016). Convex Hulls in Image Processing: A Scoping Review. American Journal of Intelligent Systems. 2016. 48-58. 10.5923/j.ajis.20160602.03. pdf.
  • Klain, D. A. (2019). A probabilistic proof of the spherical excess formula (No. arXiv:1909.04505). arXiv. https://doi.org/10.48550/arXiv.1909.04505
  • spherical_geometry
  • s2geometry

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sphersgeo-0.2.0.tar.gz (486.0 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

sphersgeo-0.2.0-cp311-abi3-musllinux_1_2_x86_64.whl (693.1 kB view details)

Uploaded CPython 3.11+musllinux: musl 1.2+ x86-64

sphersgeo-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl (616.7 kB view details)

Uploaded CPython 3.11+manylinux: glibc 2.28+ x86-64

sphersgeo-0.2.0-cp311-abi3-macosx_11_0_arm64.whl (561.9 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

Details for the file sphersgeo-0.2.0.tar.gz.

File metadata

  • Download URL: sphersgeo-0.2.0.tar.gz
  • Upload date:
  • Size: 486.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for sphersgeo-0.2.0.tar.gz
Algorithm Hash digest
SHA256 352f26a4459cbc44cfccb89290a63595a284f6bd823e1ad9701a52513bdd4f99
MD5 1db5e300fa5334e870624990b362b7bc
BLAKE2b-256 5f4b8b33a5009051cacc3f87f77af05179021806885656dd58c25eaf75cfbb37

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphersgeo-0.2.0.tar.gz:

Publisher: build.yml on spacetelescope/sphersgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphersgeo-0.2.0-cp311-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sphersgeo-0.2.0-cp311-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 aceff225a6a30d210f3c4ee8e7c9ed8c4af3aad9c6c43148ed242de210bd28da
MD5 77c2822754c6739f19cc2c7aded4d766
BLAKE2b-256 3f46a6ca9d06f7225fcaeb5d46ca062d640f7454108d1d13c746e4d9742c71c0

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphersgeo-0.2.0-cp311-abi3-musllinux_1_2_x86_64.whl:

Publisher: build.yml on spacetelescope/sphersgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphersgeo-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for sphersgeo-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 5cdd32ef3d84e52d279f913c319de80407e24c1eb6057f03bfa20d0d86ceb060
MD5 756cf22815f3740614b225fadf1236e2
BLAKE2b-256 2228ad7e81293bb71be91658f32c98b28cead2b60328b30002856fe156a49adb

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphersgeo-0.2.0-cp311-abi3-manylinux_2_28_x86_64.whl:

Publisher: build.yml on spacetelescope/sphersgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file sphersgeo-0.2.0-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sphersgeo-0.2.0-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 633017d44bd930c9b1851da4d6eba69a50df4e036a565aab01692a82c953b814
MD5 a4e1122a016995d48a3969415762aa41
BLAKE2b-256 95234ec8e13aa6925f12efd1269787c54f1978dc048e19d13c6d9d395f64a799

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphersgeo-0.2.0-cp311-abi3-macosx_11_0_arm64.whl:

Publisher: build.yml on spacetelescope/sphersgeo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page