Giter Site home page Giter Site logo

us_tiger_roadgraph's Introduction

us_tiger_roadgraph

Work in progress - alpha version

Notebook to generate a RAPIDS cuGraph compatible road graph, with node table, from US Census Bureau TIGER/LINE Edge vector data

Requires cudf and pyshp

To install pyshp with anaconda, use the following command:

conda install -c conda-forge pyshp

Link to US Census Bureau TIGER/LINE data

US TIGER/LINE Documentation

Geographic Shapefile Concepts Overview

MAF/TIGER Feature Class Code (MTFCC) Definitions

New - added enumerated (MAF/TIGER Feature Class Code)

I've added enumerated mtfcc (MAF/TIGER Feature Class Code) to the road graph edges. This will allow the graph to be filterered with cudf query before applying cuGraph analysis.

Example to exclude primary roads (e.g. to build a walking graph):

qdf = gdf.query("mtfcc!=0")
G = cugraph.Graph()
G.add_edge_list(qdf["src"], qdf["dst"],qdf['dist'])
# Call cugraph.sssp to get the road distance from origin
start = 1000
# Filter on predecessor to elimate nodes excluded by the filter
df = cugraph.sssp(G,start).query("predecessor>=0")

Check output of mtfcc enumeration in notebook and refer to MTFCC documentation above for different roadtypes

us_tiger_roadgraph's People

Stargazers

Manolis avatar Cuong Ngo avatar  avatar Bryan Smith avatar Tomek Drabas avatar

Watchers

James Cloos avatar Tomek Drabas avatar John Murray avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.