QGIS Plugin

The cityseer QGIS plugin provides a Processing algorithm for computing localised network centrality metrics (closeness and betweenness) directly within QGIS. It uses a dual graph representation where each road segment becomes a node connected to its neighbours, with support for multiple distance thresholds and deterministic distance-based sampling.

The plugin is experimental and requires QGIS 4.0+.

Installation

Install the plugin from the QGIS plugin repository: go to Plugins > Manage and Install Plugins, search for “Cityseer”, and click Install. Enable the “Show also experimental plugins” option in the Settings tab if the plugin is not visible.

On first load, the plugin will prompt to install the cityseer Python library if it is not already available in the QGIS Python environment.

Usage

The algorithm is accessible via Processing > Cityseer > Network Centrality.

Input Parameters

ParameterDescriptionDefault
Street network line layerA line layer in a projected metre-based CRS(required)
Distance thresholdsComma-separated distances in metres400,800
Betweenness tolerance %Controls betweenness spread across near-shortest paths. 0 = exact shortest paths only. Keep below 1%.0.0
Boundary polygonOptional polygon layer. Nodes inside the boundary are used as centrality sources; nodes outside provide network context only.(none)
Use deterministic distance-based samplingExperimental. When enabled, sampling probability is computed per distance threshold. Distances where the probability is 1.0 are computed exactly; larger distances are sampled for speed.True

The input layer must be in a projected metre-based CRS (not geographic/degrees).

Metric Selection

The algorithm dialog provides a 2x2 grid of metric categories:

Shortest pathSimplest path (angular)
Closenessharmonic, density, farness, beta, cycles, hillierharmonic, density, farness, hillier
Betweennessbetweenness, betweenness_betabetweenness, betweenness_beta

Each category can be toggled on or off, and individual metrics within each category can be selected independently. By default, harmonic closeness and betweenness are enabled for shortest paths.

Output

The output is a line layer with the original street segments and computed centrality values as attributes. Output fields follow the naming convention:

cc_<metric>_<distance>[_ang]

For example, with distances 400,800:

  • cc_harmonic_400, cc_harmonic_800
  • cc_betweenness_400, cc_betweenness_800
  • cc_harmonic_400_ang (if simplest path closeness is enabled)

Sampling

Deterministic distance-based sampling is enabled by default. Sampling probability depends only on the distance threshold: smaller distances run exactly while larger distances are sampled for a speed-up. The following table shows approximate sampling rates:

Distance (m)Sampled sourcesApprox. speed-up
400100%1x
800100%1x
1600100%1x
3200100%1x
500058.7%1.7x
800024.9%4.0x
1000016.6%6.0x
150007.8%12.7x
200004.6%21.7x

Disable sampling for exact computation at all distances.