Skip to main content

Python wrapper for DGGRID

Project description

Build Status Documentation Status


A wrapper for DGGRID in python



Build From source

On Unix (Linux, OS X)

  • clone this repository
  • pip install ./pydggrid

or you can easily call

  • python install

How To Use In order to use this library use following example. (more updates are comming on documentations section)

#import librarry
import pydggrid as m
#Construct a dggs object
#getting Q2di index for a (lat,long) point
#[4, 71, 211]
#getting Q2dd index for a (lat,long) point
#[4.0, -0.1427860170187444, 0.7514696738643607]
#getting ProjTri index for a (lat,long) point
#[3.0, 0.5793988192307712, 0.4993911549756102]`


  • Add suport for lastest version of DGGRID
  • Supporting All DGGRID functions
  • Adding Boost Geometry Support

Building the documentation

Documentation for the project is generated using Sphinx. Sphinx has the ability to automatically inspect the signatures and documentation strings in the extension module to generate beautiful documentation in a variety formats. The following command generates HTML-based reference documentation; for other formats please refer to the Sphinx manual:

  • cd pydggrid/docs
  • make html

Run tests

To run all tests for the package call folowing command in package directory

python3 -m unittest discover


By using, distributing, or contributing to this project, you agree to the terms and conditions of this license.

Based on Kevin Sahr's DGGRID library (

Developed on top of the R package which was developed by Richard Barnes (

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 pydggrid, version 0.0.3
Filename, size File type Python version Upload date Hashes
Filename, size pydggrid-0.0.3-cp36-cp36m-win_amd64.whl (308.8 kB) File type Wheel Python version cp36 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 DigiCert DigiCert EV certificate StatusPage StatusPage Status page