The Advanced Profile Tool generates cross-sections and long sections along a selected alignment, samples elevations from one or more DEM rasters, plots the resulting profiles, compares surfaces (cut/fill), and computes earthworks volumes. Results can be exported to GeoPackage, CSV, DXF and image/PDF formats. Three algorithms are also registered in the Processing Toolbox under Advanced Profile Tool → Profiles for scripted and batch use.
The dialog follows the run sequence from left to right:
{prefix}{number} {chainage}), prefix,
numbering, and the major-section frequency (every 5th by
default). Major sections draw with a heavier style.advanced_profile_outputs.gpkg), optionally
in timestamped runs and per-run subfolders.APT_) for CAD.| Format | Example (1240.5 m) |
|---|---|
Station 0+000 (default) | 1+240.50 |
CH 0+000 | CH 1+240.50 |
STA 0+000 | STA 1+240.50 |
| Plain | 1240.50 |
Chainage entry fields accept any of the above forms, including negative chainages ahead of the datum.
Offsets are signed distances perpendicular to the alignment: negative to the left, positive to the right, when looking in the direction of increasing chainage. Section lines are written left end → centre → right end, so the geometric start of each section line is its left end. A display option shows unsigned offsets with L/R suffixes instead.
| Method | Behaviour | Use |
|---|---|---|
| Nearest | Value of the nearest cell. | Categorical or already-smoothed data; exact cell values. |
| Bilinear (default) | Weighted mean of the 4 surrounding cells. | General terrain profiling. |
| Cubic | 16-cell cubic convolution. | Smooth surfaces where slope continuity matters; can slightly overshoot near sharp edges. |
NoData handling: by default NoData samples remain as gaps in the profile (nothing is invented) and a warning reports the count. Optionally, gaps shorter than a maximum length (default 5 m) can be bridged by linear interpolation across the gap; longer gaps always remain open. Gap lengths are excluded from comparison areas and reported separately.
Cross-section areas are converted to volumes between consecutive valid sections by the average end area method:
V = (A₁ + A₂) / 2 × L
where L is the chainage difference between the sections. Cut and fill are accumulated separately, with cumulative and net (mass-haul) totals reported. The prismoidal option applies the prismoidal correction where section shape changes significantly, which reduces the systematic overestimate of the average end area method on tapering earthworks. Sections invalidated by excessive NoData are skipped and the affected intervals flagged.
| Format | Content |
|---|---|
| GeoPackage | Section lines (with id, label, chainage, major flag), profile points, comparison and volume tables. |
| CSV | Profile samples (section, offset, elevation per surface), cut/fill areas, volume table. |
| DXF | Profile linework per surface on
APT_-prefixed layers with grid and annotation. |
| PNG / PDF | Plotted sections at the configured page size and vertical exaggeration. |
The alignment (or chosen calculation CRS) is in latitude/longitude, so distances would be computed in degrees. Reproject the alignment to a projected CRS (for example the local MGA/UTM zone) or select a projected calculation CRS. The plugin can suggest the UTM zone covering the layer extent.
Gaps indicate NoData cells or samples outside the DEM extent. Check raster coverage against the section extents and the declared NoData value. Enable gap interpolation only where short voids are acceptable to bridge; note that bridged spans are estimates, not measurements.
On tight bends, adjacent perpendicular sections can cross within the section width, double-counting terrain in volume results. The generator reports intersecting pairs. Remedies: use the averaged or smoothed tangent method, reduce section widths, or increase the interval through the bend. Review flagged sections before relying on volumes.
Confirm the alignment feature is selected, the chainage window lies within the alignment length, and the interval is smaller than the alignment length. Warnings on the Generate tab identify rejected or clamped inputs.
Advanced Profile Tool — Copyright © 2026 Nikhil Jacob.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the Licence, or (at your option) any later version. It is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for details.
Results depend on input data quality. Verify sampled surfaces, datums and volumes against survey control before using them for design or contractual quantities.