Visualising dynamic spatial networks in Processing
Java
Switch branches/tags
Nothing to show
Latest commit cee172f Mar 7, 2011 @cavvia examples
Permalink
Failed to load latest commit information.
dat auto-detect networks in data directory Feb 18, 2011
ControlPanel.pde trails and debug buttons. deal with multiple trip files. Feb 22, 2011
Flowprint.pde trails hack Feb 22, 2011
Importer.pde Trips importer and associated classes Feb 20, 2011
Network.pde
NetworkImporter.pde trails and debug buttons. deal with multiple trip files. Feb 22, 2011
Point.pde initial commit of processing class files Feb 18, 2011
README.md
Route.pde playback timer showing time of day. calculate real vessel speeds for … Feb 20, 2011
Stop.pde trails and debug buttons. deal with multiple trip files. Feb 22, 2011
Trip.pde
TripComparator.pde playback timer showing time of day. calculate real vessel speeds for … Feb 20, 2011
TripsImporter.pde trails and debug buttons. deal with multiple trip files. Feb 22, 2011
TripsTimer.pde trips timer class for trip playback. Feb 22, 2011
Vessel.pde trails and debug buttons. deal with multiple trip files. Feb 22, 2011

README.md

Flowprint

Visualise dynamics of spatial networks in Processing. Originally produced to deal with urban networks.

Feature Summary

  • Import network representations in NCOL format, including weighted networks based on euclidean distances.
  • Import node locations (lat/long or northing/easting).
  • Visualise topology of spatial networks.
  • Visualise node attributes.
  • Visualise node labels.
  • Import and construct network routes.
  • Visualise flows of 'vessels' or 'passengers' on network routes.
  • Import real trip information for playback of flows.
  • Capture vector or video output.

Examples

See the London Bus Flowprint example. For trip playback, see the London Oyster Flows, for topology view, see the Boris Bikes flowprint.

Basic Setup

For basic topology and simulated flows functionality, you need two plain-text files:

  • Place an NCOL network representation in the 'dat' subfolder, with the naming convention MyNetworkName.ncol. In default mode, the third column of this file is a 'line' variable describing the route number an edge belongs to. This is useful for public transit networks. In attributes mode the third column can be an edge weight (see below).
  • Place a CSV file with "latitude", "longitude" (or alternatively, "northing"/"easting") and "id" headers describing the location of nodes in the 'dat' subfolder, with the naming convention MyNetworkName_stops.csv.
  • The station IDs in the previous two files should correspond.
  • Simulated flows will be based on routes constructed by Flowprint from your NCOL file. Flowprint doesn't support loops or forks in routes right now. You'll have to define them as new routes.

Trip Playback

  • Add a trips CSV file in the 'dat' subfolder, with the naming convention MyNetworkName.trips, of the format:

    TripID, originID, destID, startTime, endTime

  • The network will then try to load a shortest path description file. You can produce this using iGraph. This is a tab delimited (TSV) file of the form:

    [PATH1]\t[PATH2]\t[PATH3]

  • Where each path is a comma delimited list of node IDs. The file describes a matrix Tij where each entry describes the shortest path from node i to node j. New rows in the matrix are delimited by a newline. Node IDs should correspond to those in the previous two files.

  • This gives Flowprint the routing information required to visualise a trip from an origin to a destination.

  • Flowprint will search for your shortest paths file in the 'dat' subfolder, with naming convention MyNetworkName_shortest_paths.rdat

  • Support for multiple trip files exist. More doc on that soon.

Weighted Networks

  • You can use the third column in your NCOL file to represent edge weights for visualisation. Switch on the 'attribs' configuration variable to visualise these weights in topology view.
  • Other node attributes can be loaded in via CSV files of the form MyNetworkName_attribute.csv. More doc on this soon, although this functionality is generally covered by other network packages such as Gephi.

Configuration

  • Coming soon...

Dependencies

You'll need the Processing visualisation framework, as well as the ControlP5 and gicentre-utils libraries.