Skip to main content

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 GDAL
  • 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

Release files for geonetworkx 0.5.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for geonetworkx 0.5.3
File Size Uploaded
geonetworkx-0.5.3.tar.gz 315.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for geonetworkx 0.5.3
File Interpreter ABI Platform
geonetworkx-0.5.3-py3-none-any.whl Python 3 none any Details

Total release size: 655.8 kB

Release files / geonetworkx-0.5.3.tar.gz

Download URL geonetworkx-0.5.3.tar.gz
Size 315.8 kB
Tags Source
SHA-256 checksum
How to use checksums
484852e9e33d7e8bc6552ae6c32409ff7a19a028766989096aaa158d90f4d612
BLAKE2b-256 checksum
How to use checksums
10cd0ee1eb64338c5b7c8e2e23c2ccdc255696a5226bf3cffd54f1fdbf0103a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.4

Release files / geonetworkx-0.5.3-py3-none-any.whl

Download URL geonetworkx-0.5.3-py3-none-any.whl
Size 340.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9c8aad59224dd5df9a919a5ee2dbad2ff4f4304e6baece85e050cbc27cc33a8d
BLAKE2b-256 checksum
How to use checksums
25bf2747d027d6155fcf89d41938f9ef5104f14e11dc0a29537572e5e464c533
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/2.0.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.4

Release history Release notifications | RSS feed

This release

0.5.3 This release

2 release files

0.5.2

1 release file

0.5

2 release files

0.4.1

2 release files

0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page