Skip to main content

Some common gis math functions

Project description

gismath

安装

pip install gismath

示例

import gismath

lon, lat, alt = 121.57156751580956, 31.287623375403385, 0.15180000000691507

# c++ 实现
ecef_cpp = gismath.geodetic2ecef_cpp(lon, lat, alt)

# cython 实现
ecef_cy = gismath.geodetic2ecef_cy(lon, lat, alt)

print(ecef_cpp)
>>> [-2856298.1505069532, 4648013.005657461, 3293186.773949799]

print(ecef_cy)
>>> (-2856298.1505069532, 4648013.005657461, 3293186.773949799)

提供常用 GIS 算法的 CPP 版本和 Cython 版本

测试 CPP 版耗时 Cython 版耗时 numba.njit 耗时 numba.njit(fastmath=True) 耗时 Pure Python 3.11.3
经纬度转ECEF(50000000 条) 16.043000 秒 08.345999 秒 14.576452 秒 10.386999 秒 40.454000 秒

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

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

gismath-0.0.32-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (977.2 kB view details)

Uploaded CPython 3.13manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

gismath-0.0.32-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (981.5 kB view details)

Uploaded CPython 3.12manylinux: glibc 2.24+ x86-64manylinux: glibc 2.28+ x86-64

gismath-0.0.32-cp311-cp311-win_amd64.whl (130.1 kB view details)

Uploaded CPython 3.11Windows x86-64

gismath-0.0.32-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl (1.0 MB view details)

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

File details

Details for the file gismath-0.0.32-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gismath-0.0.32-cp313-cp313-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 9d02799ff41509001ebdded0b539db2cc7dab874ff81e635305e8ebd340bcaa0
MD5 9a1ec4bce33b8c92fb7c12877dbc8173
BLAKE2b-256 a1fa09a1a9e223c084fb129135b1e20dbd76fecb9e3b31bde3b4c5a01f061d51

See more details on using hashes here.

File details

Details for the file gismath-0.0.32-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gismath-0.0.32-cp312-cp312-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 909bb531506c19ff5347d476b00d6e892e0600cb9bd6899d6edd62f5708d46c6
MD5 94fde6def94fea56c6e0c4e1eeb43ce2
BLAKE2b-256 925f1d67406cdc68384c67b885500e6e88a4b9b54518f85099aa411050258dad

See more details on using hashes here.

File details

Details for the file gismath-0.0.32-cp311-cp311-win_amd64.whl.

File metadata

  • Download URL: gismath-0.0.32-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 130.1 kB
  • Tags: CPython 3.11, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for gismath-0.0.32-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 519eefd756bf62bb71097cf6da0104facc7e09cb56d445c970c643f41eed6eda
MD5 76ac0663f07fb273da780147255e1c81
BLAKE2b-256 9d694193eff94298a196f6cb13d760c868c7ad5003c8f126f1591c9657034d74

See more details on using hashes here.

File details

Details for the file gismath-0.0.32-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for gismath-0.0.32-cp311-cp311-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 293f69ad3adfd68ec5f52ba49c59cde8f3fc419d7ed4aa7b53608953d27eec96
MD5 71d5f2cecbfca042b8b2eed492366903
BLAKE2b-256 9f6c5454c32dee194c101156c11bbf7abbe829fd3f9cc7bc1c59b1997111aa56

See more details on using hashes here.

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