Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

Compute geodesic distances

Project description

External Library Geodesic

The gdist module is a Cython interface to a C++ library (http://code.google.com/p/geodesic/) for computing geodesic distance which is the length of shortest line between two vertices on a triangulated mesh in three dimensions, such that the line lies on the surface.

The algorithm is due Mitchell, Mount and Papadimitriou, 1987; the implementation is due to Danil Kirsanov and the Cython interface to Gaurav Malhotra and Stuart Knock.

Original library (published under MIT license): http://code.google.com/p/geodesic/

We added a python wrapped and made small fixes to the original library, to make it compatible with cython.

To install this, either run pip install gdist or download sources from Github and run python setup.py install in current folder.

Basic test could be:

python
import gdist

Python 2.7, Cython, and a C++ compiler are required.

Debian package

In order to produce a Debian package, assuming you have the requisite tools installed (apt-get install devscripts python-all-dev python-stdeb):

cd debian
debuild -us -uc
cd ../../

and you should find a suitable deb file for your system.

Project details


Download files

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

Files for tvb-gdist, version 1.5.8
Filename, size File type Python version Upload date Hashes
Filename, size tvb_gdist-1.5.8-cp27-cp27m-macosx_10_9_x86_64.whl (78.3 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size tvb_gdist-1.5.8-cp27-cp27m-win_amd64.whl (92.6 kB) File type Wheel Python version cp27 Upload date Hashes View hashes
Filename, size tvb-gdist-1.5.8.tar.gz (42.6 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page