Summary
Urban drainage network models (UDMs) contain pipe and manhole information for drainage networks in urban areas. When driven by precipitation timeseries data, they can be used to simulate the flow of water through the network, which is useful for a variety of purposes, most notably simulating and alleviating pluvial flooding. Despite the clear usefulness of UDMs, they are often not used owing to the difficulty and expense of creating them. This creates a significant gap for users attempting to generate UDMs if they are not able to perform an expensive underground survey. SWMManywhere automates the full workflow of UDM synthesis, from global data acquisition and preprocessing through to hydraulically plausible model generation. No previous expertise with hydraulic modelling is required, only a bounding box is needed, however, users may tune a variety of parameters to better understand UDM synthesis for their case (Dobson et al., 2025)1.
Statement of need
A variety of literature exists to derive UDMs from GIS data, producing hydraulically feasible models that closely approximate real-world systems (Blumensaat, Wolfram, & Krebs, 2012; Chahinian et al., 2019; Chegini & Li, 2022; Reyes-Silva, Novoa, Helm, & Krebs, 2022)2 3 4 5. We identify some key limitations of these approaches, most notably the lack of automatic data acquisition and preprocessing, that all approaches are closed-source to date, and that a key feature of such an approach should be to facilitate extension and customisation. An open-source approach exists for sanitary sewer systems, however it does not provide automatic data acquisition (Sanne, Khurelbaatar, Despot, Afferden, & Friesen, 2024)6.
SWMManywhere is an open-source Python package designed for the global synthesis of urban drainage networks. SWMManywhere integrates publicly available geospatial data and automates data acquisition and preprocessing, reducing the technical burden on users. Designed for both researchers and practitioners in urban water management, SWMManywhere responds to the limitations of existing methods by providing an end-to-end, open-source, and customisable solution. Although SWMManywhere has been used in research applications (Dobson et al., 2025)1, currently missing is a description focussed on the software implementation and key features, which we provide below.
Features
SWMManywhere includes a variety of key features aimed to improve useability and usefulness. A command line interface (CLI) offers a flexible workflow, providing an accessible entry point to using and customising synthesis. Its parameterized design enables detailed sensitivity analyses, allowing users to understand and manage uncertainties inherent in urban drainage modelling (Dobson et al., 2025)1. By emphasizing user control, SWMManywhere allows tuning of outputs with parameters to meet local requirements, making it adaptable to a wide range of scenarios. We provide further details on the data and general approach below.
Data
A variety of datasets were selected to enable SWMManywhere to be applied globally, \autoref{table:table1}.
: SWMManywhere data sources. \label{table:table1}
| Data Source | Description | Reference |
|---|---|---|
| OpenStreetMap (OSM) | Provides global street and river data, used to define potential pipe locations and outfall points for drainage networks. | (Boeing, 2017; OpenStreetMap contributors, 2017)9 10 |
| Google-Microsoft Open Buildings | A dataset of global building footprints, used for estimating impervious surfaces essential for runoff calculations. | (OpenStreetMap contributors, 2024; VIDA, 2023)11 12 |
| NASADEM | Provides 30m resolution global digital elevation model (DEM) data to support sub-catchment delineation and slope calculation. | (Crippen et al., 2016)13 |
These datasets are global in their coverage, and we consider them of sufficient quality in locations that we have tested (Dobson et al., 2025)1, however, we urge users to check data in their specific case study.
Approach and customisation
The core task in SWMManywhere is to begin with a 'starting graph' (e.g., an OSM street graph), refine this graph first into manhole locations and potential pipe locations, eliminate pipes from unnecessary locations, and then dimension the resulting pipe network which is then simulated in the software SWMM using the pyswmm package (McDonnell, Ratliff, Tryby, Wu, & Mullapudi, 2020)7. These operations take place in an iterative approach, where each function takes a graph, and returns the transformed graph, thus each operation is referred to as a 'graph function'. The use of graph functions in SWMManywhere enables modular packaging of functions, easy customisation of the approach (e.g., by adding/removing/reordering graph functions), and explicit definition of parameters for each graph function. Explanations for making these customisations are available in the documentation. Ultimately, this customisability facilitates exploring uncertainty in urban drainage modelling in a way that reflects not just the model itself but the model creation process, as is demonstrated in (Dobson et al., 2025)1.
We visualise the example from the extended demonstration in the documentation to illustrate how changing relatively few parameter values in a strategic way can dramatically change the nature of the synthesised network \autoref{fig:fig1}.

Comparisons with real networks
Because manhole and pipe locations rarely coincide between a synthetic and survey-derived UDM, direct element-by-element comparisons are infeasible (Chahinian et al., 2019)3. SWMManywhere therefore implements a comprehensive suite of metrics mapped to each stage of the synthesis pipeline: system description (e.g., pipe lengths, counts), topological structure (e.g., Laplacian and vertex–edge distances, betweenness distributions), hydraulic design (e.g., diameter and depth statistics), and simulation performance (e.g., outfall flows and network flooding volumes). This multi‐tiered approach validates model realism against observed networks and facilitates understanding of where in the SWMManywhere workflow the synthetic and real UDM diverge, thereby transforming UDM synthesis into an explicit, uncertainty‐driven workflow.
Outlook
While we believe that SWMManywhere is a useful tool it has a variety of current limitations that present an exciting outlook for future research. Key improvements to the overall realism of the approach may be made in the future, in particular,
- Based on the findings of a sensitivity analysis (Dobson et al., 2025)1, better identification of manhole locations and outfalls will be critical to narrowing uncertainty in simulation outputs and improving realism.
- Capturing the gradual evolution of a network over time is known to be important in UDM synthesis (Rauch et al., 2017)8, and further illustrated by SWMManywhere results (Dobson et al., 2025)1. We do not know of a global database that provides the information that would be necessary to capture this, but it may exist in the future or for local applications.
Acknowledgements
BD is funded through the Imperial College Research Fellowship scheme, which also funded the software development. We acknowledge computational resources and support provided by the Imperial College Research Computing Service.
References
-
Dobson, B., Jovanovic, T., Alonso-Álvarez, D., & Chegini, T. (2025). [SWMManywhere: A Workflow for Generation and Sensitivity Analysis of Synthetic Urban Drainage Models, Anywhere]{.nocase}. Environmental Modelling\ & Software. https://doi.org/10.1016/j.envsoft.2025.106358 ↩↩↩↩↩↩↩
-
Blumensaat, F., Wolfram, M., & Krebs, P. (2012). Sewer model development under minimum data requirements. Environ. Earth Sci., 65(5), 1427--1437. https://doi.org/10.1007/s12665-011-1146-1 ↩
-
Chahinian, N., Delenne, C., Commandré, B., Derras, M., Deruelle, L., & Bailly, J.-S. (2019). Automatic mapping of urban wastewater networks based on manhole cover locations. Comput. Environ. Urban Syst., 78(101370), 101370. https://doi.org/10.1016/j.compenvurbsys.2019.101370 ↩↩
-
Reyes-Silva, J. D., Novoa, D., Helm, B., & Krebs, P. (2022). An evaluation framework for urban pluvial flooding based on open-access data. Water (Basel), 15(1), 46. https://doi.org/10.3390/w15010046 ↩
-
Chegini, T., & Li, H.-Y. (2022). An algorithm for deriving the topology of belowground urban stormwater networks. Hydrol. Earth Syst. Sci., 26(16), 4279--4300. https://doi.org/10.5194/hess-26-4279-2022 ↩
-
Sanne, M., Khurelbaatar, G., Despot, D., Afferden, M. van, & Friesen, J. (2024). Pysewer: A python library for sewer network generation in data scarce regions. Journal of Open Source Software, 9(104), 6430. https://doi.org/10.21105/joss.06430 ↩
-
McDonnell, B. E., Ratliff, K., Tryby, M. E., Wu, J. J. X., & Mullapudi, A. (2020). PySWMM: The python interface to stormwater management model (SWMM). Journal of Open Source Software, 5(52), 1. https://doi.org/10.21105/joss.02292 ↩
-
Rauch, W., Urich, C., Bach, P. M., Rogers, B. C., Haan, F. J. de, Brown, R. R., ... Deletic, A. (2017). Modelling transitions in urban water systems. Water Res., 126, 501--514. https://doi.org/10.1016/j.watres.2017.09.039 ↩
-
Boeing, G. (2017). [OSMnx: New methods for acquiring, constructing, analyzing, and visualizing complex street networks]{.nocase}. Computers, Environment and Urban Systems, 65, 126--139. https://doi.org/10.1016/j.compenvurbsys.2017.05.004 ↩
-
OpenStreetMap contributors. (2017). [Planet dump retrieved from https://planet.osm.org ]{.nocase}. https://www.openstreetmap.org{.uri}. ↩
-
OpenStreetMap contributors. (2024). Overture Maps Foundation. https://overturemaps.org/{.uri}. ↩
-
VIDA. (2023). Google-Microsoft Open Buildings. Retrieved from https://beta.source.coop/repositories/vida/google-microsoft-open-buildings ↩
-
Crippen, R., Buckley, S., Agram, P., Belz, E., Gurrola, E., Hensley, S., ... Tung, W. (2016). NASADEM GLOBAL ELEVATION MODEL: METHODS AND PROGRESS. The International Archives of the Photogrammetry, Remote Sensing and Spatial Information Sciences, XLI-B4, 125--128. https://doi.org/10.5194/isprs-archives-XLI-B4-125-2016 ↩