object-oriented spherical geometry
Project description
sphersgeo
sphersgeo is an object-oriented spherical geometry package written in Rust with Python accessor classes and methods.
[!IMPORTANT]
sphersgeois still in development and does not currently implement all the robust functionality provided by planar geometry packages such asgeoor 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_geometrys2geometry
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
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
51a1a9b76b77cc6015e504da173f38648b083cd489002f2e33eaa0ef209807a8
|
|
| MD5 |
553faf137c3ab0661a5b359a6d81232c
|
|
| BLAKE2b-256 |
8776d16d793a11b839e0cd2ccb77b9c5ef9741e4ef70db52376f05bc25b2d4e4
|
Provenance
The following attestation bundles were made for sphersgeo-0.1.1.tar.gz:
Publisher:
build.yml on spacetelescope/sphersgeo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphersgeo-0.1.1.tar.gz -
Subject digest:
51a1a9b76b77cc6015e504da173f38648b083cd489002f2e33eaa0ef209807a8 - Sigstore transparency entry: 1574418106
- Sigstore integration time:
-
Permalink:
spacetelescope/sphersgeo@973c54038032e7cf83e9333e56052f335e4145ee -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/spacetelescope
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@973c54038032e7cf83e9333e56052f335e4145ee -
Trigger Event:
release
-
Statement type:
File details
Details for the file sphersgeo-0.1.1-cp311-abi3-musllinux_1_2_x86_64.whl.
File metadata
- Download URL: sphersgeo-0.1.1-cp311-abi3-musllinux_1_2_x86_64.whl
- Upload date:
- Size: 673.8 kB
- Tags: CPython 3.11+, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
039aba4e91c8c0129c1917ce6fa802ce9c76ef77ee3f68b2b5e862f7b9e1a9ae
|
|
| MD5 |
8e78bb53f4648cae8aecf7c64babb012
|
|
| BLAKE2b-256 |
70f856dfcb903b90c0aca02eb76fec4c2a3957cc4c549464da4acfad27384cdb
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphersgeo-0.1.1-cp311-abi3-musllinux_1_2_x86_64.whl -
Subject digest:
039aba4e91c8c0129c1917ce6fa802ce9c76ef77ee3f68b2b5e862f7b9e1a9ae - Sigstore transparency entry: 1574418128
- Sigstore integration time:
-
Permalink:
spacetelescope/sphersgeo@973c54038032e7cf83e9333e56052f335e4145ee -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/spacetelescope
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@973c54038032e7cf83e9333e56052f335e4145ee -
Trigger Event:
release
-
Statement type:
File details
Details for the file sphersgeo-0.1.1-cp311-abi3-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: sphersgeo-0.1.1-cp311-abi3-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 599.9 kB
- Tags: CPython 3.11+, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6fa15f0211603af4315d46d5254190cfd39c5b0ba23da9c57ce33fd804c1ddfc
|
|
| MD5 |
80687f21dd5254e3a2e19c04f9a758c1
|
|
| BLAKE2b-256 |
99638ab4ddc3933e4799af57d2d619810e4502792aaf6df0841ab3c8a4aa7b53
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphersgeo-0.1.1-cp311-abi3-manylinux_2_28_x86_64.whl -
Subject digest:
6fa15f0211603af4315d46d5254190cfd39c5b0ba23da9c57ce33fd804c1ddfc - Sigstore transparency entry: 1574418143
- Sigstore integration time:
-
Permalink:
spacetelescope/sphersgeo@973c54038032e7cf83e9333e56052f335e4145ee -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/spacetelescope
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@973c54038032e7cf83e9333e56052f335e4145ee -
Trigger Event:
release
-
Statement type:
File details
Details for the file sphersgeo-0.1.1-cp311-abi3-macosx_11_0_arm64.whl.
File metadata
- Download URL: sphersgeo-0.1.1-cp311-abi3-macosx_11_0_arm64.whl
- Upload date:
- Size: 548.8 kB
- Tags: CPython 3.11+, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
33be9d73a42b1121baab6d54fc9cd1e5228a38f962016b17c2f46358fb3fb4ed
|
|
| MD5 |
dba9217a1da3300ac4b901ffb062ecb3
|
|
| BLAKE2b-256 |
41d735ff2c013682e76db1ae8b48f2feff03afc1c275abd86680da9d92196197
|
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
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sphersgeo-0.1.1-cp311-abi3-macosx_11_0_arm64.whl -
Subject digest:
33be9d73a42b1121baab6d54fc9cd1e5228a38f962016b17c2f46358fb3fb4ed - Sigstore transparency entry: 1574418168
- Sigstore integration time:
-
Permalink:
spacetelescope/sphersgeo@973c54038032e7cf83e9333e56052f335e4145ee -
Branch / Tag:
refs/tags/0.1.1 - Owner: https://github.com/spacetelescope
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
build.yml@973c54038032e7cf83e9333e56052f335e4145ee -
Trigger Event:
release
-
Statement type: