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

  • Fiona==1.8.6
  • geopy==1.2.0
  • geopandas==0.4.0
  • networkx==2.3
  • numpy>=1.15.4
  • pyproj==1.9.6
  • rtree==0.8.3
  • scipy>=1.0.1
  • shapely>=1.2.18

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
  • Binary for PyProj 1.9.6 (mandatory version!)

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.

Files for geonetworkx, version 0.5
Filename, size File type Python version Upload date Hashes
Filename, size geonetworkx-0.5-py3-none-any.whl (339.2 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size geonetworkx-0.5.tar.gz (314.9 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page