Skip to main content

Python tools for geographic graphs

Project description

GeoNetworkX

Python tools for geographic graphs

CircleCI Documentation Status PyPI Package latest release

Introduction

GeoNetworkX is a project to add support for geographic graphs to NetworkX (in the same way that GeoPandas support geographic data to Pandas). It currently implements four data structures that extends the networkx graph classes (Graph, MultiGraph, DiGraph, MultiDiGraph).

Install

Requirements

  • pyproj>=2.2
  • geopy>=1.12.0
  • geopandas>=0.7
  • networkx>=2.3
  • numpy>=1.12.0
  • pandas>=0.25.0
  • shapely>=1.2.18
  • scipy>=0.19.0rc2
  • nose>=1.3.7

Optional packages:

  • srtm (for elevation data)
  • pyvoronoi (for voronoi utils)
  • osmnx (for OSM data)

Installation

    pip install geonetworkx

Trouble when installing GeoNetworkX on Windows

If you are using conda on Windows, the binaries downloaded automatically are broken, and rtree is unable to work properly.

A workaround is to download manually the binary from this webpage. Please download the binary corresponding to your system and your Python version (3.6 or 3.7). You have notably to download:

  • Binary for Rtree
  • Binary for Fiona

Documentation

Online documentation is available here: https://geonetworkx.readthedocs.io

Tests

Tests can be launched with unittest with the following command:

python -m unittest discover -v geonetworkx

Or with nose like this:

nosetests geonetworkx -v --with-doctest

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

geonetworkx-0.5.2-py3-none-any.whl (339.1 kB view details)

Uploaded Python 3

File details

Details for the file geonetworkx-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: geonetworkx-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 339.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for geonetworkx-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b670735aeec902e74767a7c1f00f4eca03e34fd49bbe5cf868223540c1f3a6d0
MD5 2fe62419a9330b37033890a37e9e7bd3
BLAKE2b-256 0faedbc965247d04d230003240f2eed2f0caa02d2b9299e1dad0571df62a6405

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