[general]
name=Stormwater Drainage Plot and Design
qgisMinimumVersion=3.40
qgisMaximumVersion=4.99
supportsQt6=True
description=Plot TUFLOW pipe and pit layers as a long section, and design new stormwater pipe runs on it.
about=Dockable long-section plotting and design tool for stormwater drainage networks, built around TUFLOW 1d_nwk pipe and pit attributes.
    <br><br>
    <b>Plot</b> — Reads TUFLOW-style pipe and pit layers (ID, Type, US_Invert, DS_Invert, Width, Height, Number_of, Inlet_Type, Conn_1D_2D). Select the downstream pipe, trace upstream through the network (branching into one Path per tributary), and plot the ground line sampled from a DEM together with the conduit band, invert line and pits. Multiple pipe and pit layers are supported at once, with cross-layer connectivity.
    <br><br>
    <b>Interact</b> — Hover a pipe for its full attribute popup, hover the ground line to track that position on the map, and click a pipe in the chart to highlight and zoom to it, just like Identify. An optional crosshair gives a live chainage/elevation readout. Charts are rendered with Plotly inside the dock.
    <br><br>
    <b>Design</b> — Start a pipe layer carrying the design schema, then draw pipes with QGIS's normal digitising tools and snapping; every line becomes one pipe. Inverts are graded automatically from a minimum ground cover, pipe diameter and slope, and can be edited live in a table that stays in sync with the layer. Recalculate the whole chain after moving the alignment or changing the design settings.
    <br><br>
    <b>Export</b> — Send the plotted profile to CSV: paired X/Y series (ground, invert, obvert, pits) ready to chart, plus a per-pipe band table with chainage, levels, grade, cover and depth to invert for long-section drafting.
version=1.0
author=Irene Jaya
email=irenejaya1@gmail.com

tracker=https://github.com/irenejaya/stormwater-drainage-plot-design/issues
repository=https://github.com/irenejaya/stormwater-drainage-plot-design
homepage=https://github.com/irenejaya/stormwater-drainage-plot-design

tags=python,stormwater,drainage,pipe,pipes,culvert,culverts,pit,pits,sewer,long section,longitudinal section,long-section,profile,invert,chainage,network,trace,flow trace,design,grade,cover,dem,elevation,hydrology,hydraulics,tuflow,1d_nwk,plotly

category=Plugin
icon=icon.svg
experimental=True
deprecated=False
hasProcessingProvider=no
server=False

changelog=
    1.0 - Stormwater design
        * Design mode: start a pipe layer, draw pipes with QGIS digitising and snapping
        * Inverts graded automatically from minimum ground cover, diameter and slope
        * Live design table kept in sync with the layer, including deletions
        * Automatic layer styling: flow-direction arrows and ID (Width) labels
        * Export the plotted profile to CSV for long-section drafting
        * Trace pipe/culvert networks upstream from a selected pipe, branching per tributary
        * Ground + invert long-section plotting via Plotly, embedded in the dock
        * Multi-layer pipe and pit support, with TUFLOW pit top/bottom rules
        * Click-through highlight and zoom to a pipe on the map
        
