flexurba0.2.3 package

Construct Flexible Urban Delineations

apply_majority_rule

Apply the majority rule algorithm

apply_threshold

Identify urban areas by applying a threshold on grid cells

classify_grid_rural

Create the DEGURBA grid cell classification of rural cells

classify_grid_urban_centres

Create the DEGURBA grid cell classification of urban centres

classify_grid_urban_clusters

Create the DEGURBA grid cell classification of urban clusters

classify_grid_water

Create the DEGURBA grid cell classification of water cells

classify_grid

Create the DEGURBA grid cell classification

classify_units

Create the DEGURBA spatial units classification

convert_regions_to_grid

Convert regions to a grid

crop_GHSLdata

Crop GHSL data to the provided extent

DoU_classify_grid_rural

Create the DEGURBA grid cell classification of rural cells

DoU_classify_grid_urban_centres

Create the DEGURBA grid cell classification of urban centres

DoU_classify_grid_urban_clusters

Create the DEGURBA grid cell classification of urban clusters

DoU_classify_grid_water

Create the DEGURBA grid cell classification of water cells

DoU_classify_grid

Create the DEGURBA grid cell classification

DoU_classify_units

Create the DEGURBA spatial units classification

DoU_get_grid_parameters

Get the parameters for the DEGURBA grid cell classification

DoU_get_optimal_builtup

Get the optimal built-up area threshold

DoU_load_grid_data_belgium

Load the grid data for Belgium to reconstruct DEGURBA classification

DoU_plot_grid

Plot the grid cell classification

DoU_plot_units

Plot the spatial units classification

DoU_preprocess_grid

Preprocess the data for the DEGURBA grid cell classification

DoU_preprocess_units

Preprocess the data for the DEGURBA spatial units classification

download_GHSLdata

Download data products from the GHSL website

fill_gaps

Fill gaps in clusters of cells

get_adjacent

Identify adjacent cells

get_clusters

Identify clusters of cells that meet the criteria

get_grid_parameters

Get the parameters for the DEGURBA grid cell classification

get_optimal_builtup

Preprocess the data for the DEGURBA spatial units classification

get_patches

Detect patches of cells

load_grid_data_belgium

Load the grid data for Belgium to reconstruct DEGURBA classification

load_proxies_belgium

Load the data for three urban proxies for Belgium

pipe

Pipe operator

plot_grid

Plot the grid cell classification

plot_units

Plot the spatial units classification

preprocess_grid

Preprocess the data for the DEGURBA grid cell classification

preprocess_units

Preprocess the data for the DEGURBA spatial units classification

Enables the construction of flexible urban delineations that can be tailored to specific applications or research questions, see Van Migerode et al. (2024) <DOI:10.1177/23998083241262545> and Van Migerode et al. (2025) <DOI:10.5281/zenodo.15173220>. Originally developed to flexibly reconstruct the Degree of Urbanisation classification of cities, towns and rural areas developed by Dijkstra et al. (2021) <DOI:10.1016/j.jue.2020.103312>. Now it also support a broader range of delineation approaches, using multiple datasets – including population, built-up area, and night-time light grids – and different thresholding methods.

  • Maintainer: Céline Van Migerode
  • License: MIT + file LICENSE
  • Last published: 2026-01-11