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 Distribution

gismath-0.0.30-cp311-cp311-win_amd64.whl (122.0 kB view details)

Uploaded CPython 3.11 Windows x86-64

File details

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

File metadata

  • Download URL: gismath-0.0.30-cp311-cp311-win_amd64.whl
  • Upload date:
  • Size: 122.0 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.30-cp311-cp311-win_amd64.whl
Algorithm Hash digest
SHA256 c108e43fecab5ed35cdb54146662c5878ec6bc0f5dc5fe65455c926281ae1c49
MD5 bb0309c98a6cff423e6a29cbec7ef7b4
BLAKE2b-256 85b9f8e5ddcb03cd2c89d18368db680715de81db7cde648eb6558402f35887d2

See more details on using hashes here.

Supported by

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