Calculate Road Length - Advanced

QGIS plugin to calculate total length and length by category of linear features.

Allows calculating total feature length, creating additional fields with individual values, and exporting results in Shapefile or CSV.

Calculate Road Length - Main Screen

About the Project

The Calculate Road Length - Advanced plugin is a Python QGIS plugin that automates linear feature length calculation. It allows:

Calculations use the EPSG:31982 coordinate system, ensuring metric accuracy even if the original layer is in another CRS.

Main Features:

Why I Created This Plugin

In my work, we had to manually calculate road lengths and group by category, which was time-consuming and error-prone. To automate this, I created Calculate Road Length, allowing:

Technologies Used

Python QGIS PyQt5 Shapefile / Vector Layers CRS EPSG:31982

How to Use

  1. Install the plugin by copying the folder into the QGIS plugins folder or using the GitHub repository.
  2. Open QGIS and load the vector layer containing linear features.
  3. Open the plugin from the Calculate Road Length menu.
  4. Select the desired layer and choose between Total Calculation or By Category.
  5. View the results in the text area shown in the plugin window.
  6. If needed, export the resulting layer to Shapefile or CSV.

Technical Information

Screenshots

Plugin Interface

Results by Category

Plugin Results

Overall Results

Export Example

Example of CSV Export

← Back to Portfolio