This project aims to provide a tool for urban boundary extraction based on the Degree of Urbanization (DEGURBA) algorithm. By integrating multi-source geospatial data, it offers a fast, flexible, and efficient method for extracting urban boundaries at specific times and locations, providing technical support and data for researchers.
(a) Gridded population of Beijing in 2020. (b) Grid cell level classification result by DEGURBA. (c) Local unit classification result by DEGURBA.- Multi-source Data Support: Supports downloading WorldPOP and GPWV4 grid population data.
- Grid Cell Classification: Classifies grid cells into urban centers, urban clusters, and rural grid units based on population density, continuity, and scale.
- Local Unit Classification: Overlays the grid cell classification results onto local spatial units and further classifies them into urban areas, semi-dense areas, and rural areas.
- Flexible and Efficient: Users can generate urban boundary data with different time, location, and classification accuracy requirements.
- Download and install QGIS, version 3.20 or higher.
- In the QGIS QSGeo4W Shell, run
pip install rasterio.
- Download the plugin ZIP file (
degurba_qgis.zip) from GitHub Releases. - Open QGIS, go to Plugins -> Manage and Install Plugins.
- Select the Install from ZIP tab on the left.
- Browse and select the downloaded
degurba_qgis.zipfile, then click Install Plugin. - Once installed, open the Processing Toolbox to find and use the DEGURBA tools.
You can install the package using pip:
pip install degurba
-
Download Population Data:
- Use the "download worldpop grid data" or "download gpwv4 grid data" tool to select the desired dataset, country, year, and clipping area (optional).
-
Grid Cell Classification:
- Use the "Grid Cell Classification" tool, input the population grid data, and output raster data.
-
Local Unit Classification:
- Use the "Local Units Classification" tool, input the grid cell classification result data, and output local unit data (vector data).
Using Beijing's data for the year 2020 as an example:
- Download the WorldPOP population grid data for Beijing, setting the MASK layer to Beijing's vector boundary.
- Perform grid cell classification on the downloaded population grid data.
- Overlay the classification results onto Beijing's local spatial units (such as districts) to complete the local unit classification.
- Ensure compatibility between QGIS version and the plugin.
- When downloading data, pay attention to selecting the correct dataset and parameters.
- When performing local unit classification, ensure that the input grid cell classification result data is complete and accurate.






