Skip to content

A QGIS Python script for automating geospatial data processing. It buffers road networks, converts to single parts, adds unique auto-incremental fields, and differences building footprints. The final layer is saved as a shapefile and loaded into QGIS. Ideal for importing to flood modelling software such as Infoworks ICM with no errors.

Notifications You must be signed in to change notification settings

ashainp/QGIS-Vector-Processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

This Python script automates the processing of geospatial data within QGIS. It is designed to facilitate the preparation of road network data for further analysis and integration with other spatial datasets. The processed vectors can be use to import to hydraulic modelling software with no overlapping errors. For example, I use the processed vectors to import as mesh zones, roughness zones and infiltration zones to Infoworks ICM software.

The script includes the following key steps:

  1. Buffering Road Networks: Creates a buffer around road centerlines with customizable parameters, including buffer distance and style options for end caps and joins. Road centrelines extracted from public GIS data from Australian councils can be buffered to user desired widths.

  2. Conversion to Single Parts: Splits multipart geometries into single-part geometries, ensuring that each feature is represented individually.

  3. Adding Auto-incremental Fields: Introduces unique identifiers for each feature, starting from a specified number, to aid in data management and analysis. This is to avoid errors of unique ID in modelling software.

  4. Difference Operation: Subtracts building footprint geometries from the buffered road data, removing overlaps and refining the dataset. This is to avoid overlap errors in modelling software.

Output as Shapefile: The final processed layer is saved as a shapefile, named "ICM_ROADS.shp", and is also loaded into the current QGIS session for immediate use.

This script is particularly useful for urban planning, flood modeling, and other geospatial analyses. It ensures compatibility and accuracy when importing data into specialized software such as InfoWorks ICM. The output is tailored to be error-free and ready for further modeling and analysis.

Instructions for Use:

-Modify the file paths and parameters as needed for your specific data and analysis requirements. -Run the script within the QGIS Python Console or as a standalone script, ensuring that QGIS and necessary dependencies are installed. Make sure you save your file before running the script.

About

A QGIS Python script for automating geospatial data processing. It buffers road networks, converts to single parts, adds unique auto-incremental fields, and differences building footprints. The final layer is saved as a shapefile and loaded into QGIS. Ideal for importing to flood modelling software such as Infoworks ICM with no errors.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages