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.1.1.tar.gz (8.1 MB view details)

Uploaded Source

Built Distributions

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

sphersgeo-0.1.1-cp311-abi3-musllinux_1_2_x86_64.whl (673.8 kB view details)

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

sphersgeo-0.1.1-cp311-abi3-manylinux_2_28_x86_64.whl (599.9 kB view details)

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

sphersgeo-0.1.1-cp311-abi3-macosx_11_0_arm64.whl (548.8 kB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

File details

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

File metadata

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

File hashes

Hashes for sphersgeo-0.1.1.tar.gz
Algorithm Hash digest
SHA256 51a1a9b76b77cc6015e504da173f38648b083cd489002f2e33eaa0ef209807a8
MD5 553faf137c3ab0661a5b359a6d81232c
BLAKE2b-256 8776d16d793a11b839e0cd2ccb77b9c5ef9741e4ef70db52376f05bc25b2d4e4

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphersgeo-0.1.1.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.1.1-cp311-abi3-musllinux_1_2_x86_64.whl.

File metadata

File hashes

Hashes for sphersgeo-0.1.1-cp311-abi3-musllinux_1_2_x86_64.whl
Algorithm Hash digest
SHA256 039aba4e91c8c0129c1917ce6fa802ce9c76ef77ee3f68b2b5e862f7b9e1a9ae
MD5 8e78bb53f4648cae8aecf7c64babb012
BLAKE2b-256 70f856dfcb903b90c0aca02eb76fec4c2a3957cc4c549464da4acfad27384cdb

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphersgeo-0.1.1-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.1.1-cp311-abi3-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for sphersgeo-0.1.1-cp311-abi3-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 6fa15f0211603af4315d46d5254190cfd39c5b0ba23da9c57ce33fd804c1ddfc
MD5 80687f21dd5254e3a2e19c04f9a758c1
BLAKE2b-256 99638ab4ddc3933e4799af57d2d619810e4502792aaf6df0841ab3c8a4aa7b53

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphersgeo-0.1.1-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.1.1-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for sphersgeo-0.1.1-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 33be9d73a42b1121baab6d54fc9cd1e5228a38f962016b17c2f46358fb3fb4ed
MD5 dba9217a1da3300ac4b901ffb062ecb3
BLAKE2b-256 41d735ff2c013682e76db1ae8b48f2feff03afc1c275abd86680da9d92196197

See more details on using hashes here.

Provenance

The following attestation bundles were made for sphersgeo-0.1.1-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