How giswater/plugin works
Giswater is a QGIS plugin for managing water and sewer networks, backed by PostgreSQL/PostGIS, with hydraulic-modeling integrations. The user workflow begins in QGIS, loads a project and role-appropriate tools, then supports network operations, planning, analysis, and administration through database-backed features. A separate Python admin CLI provides database and schema commands. The graph preserves documented product areas and sampled module boundaries; some subsystems are represented by their exact directories because their implementation was not excerpted, so uncertain connections are omitted.
Main entry points: tools_gw.py Backend Helpers · load_project.py Project Loading · main.py Plugin Entry · admin_btn.py Project Administration
Components 23
QGIS Plugin
- Plugin Entry
main.py - Project Loading
core/load_project.py - UI Management
core/ui/ui_manager.py - Backend Helpers
core/utils/tools_gw.py - Map Selection
core/utils/select_manager.py - Map Snapping
core/utils/snap_manager.py
Network Operations
- Network Information
core/shared/info.py - Field Visits
core/shared/visit.py - Maintenance Tools
core/toolbars/am - Campaigns and Lots
core/toolbars/cm
Planning and Analysis
- Planning Sectors
core/shared/psector.py - Network Scenarios
core/toolbars/epa/dscenario_manager_btn.py - Hydraulic Analysis
core/toolbars/epa - Reports and Toolbox
core/toolbars/utilities/toolbox_btn.py
Administration
- Project Administration
core/admin/admin_btn.py - Language Management
core/admin/i18n
Admin CLI
- CLI Entry
giswater_admin/cli/main.py - CLI Context
giswater_admin/cli/context.py - Admin Commands
giswater_admin/commands - Schema Engine
giswater_admin/engine
Other components
- QGIS User
- PostgreSQL / PostGIS
- EPANET / SWMM
Connections 21
- QGIS User → Plugin Entry: opens plugin
README.md - Plugin Entry → Project Loading: loads project
main.py - Plugin Entry → Project Administration: opens administration
main.py - Project Loading → UI Management: configures interface
core/load_project.py - Project Loading → Planning Sectors: initializes planning
core/load_project.py - Project Loading → Backend Helpers: uses helpers
core/load_project.py - Network Information → Field Visits: uses visit features
core/shared/info.py - Network Information → Backend Helpers: calls helpers
core/shared/info.py - Map Selection → Map Snapping: uses snapping
core/utils/select_manager.py - Map Selection → Backend Helpers: calls helpers
core/utils/select_manager.py - Planning Sectors → Reports and Toolbox: uses toolbox
core/shared/psector.py - Network Scenarios → Backend Helpers: calls procedures
core/toolbars/epa/dscenario_manager_btn.py - Reports and Toolbox → Backend Helpers: calls helpers
core/toolbars/utilities/toolbox_btn.py - Project Administration → Language Management: opens language tools
core/admin/admin_btn.py - Project Administration → Backend Helpers: calls helpers
core/admin/admin_btn.py - Backend Helpers → PostgreSQL / PostGIS: queries database
- Hydraulic Analysis → EPANET / SWMM: integrates with
README.md - CLI Entry → CLI Context: creates context
giswater_admin/cli/main.py - CLI Entry → Admin Commands: dispatches commands
giswater_admin/cli/main.py - Admin Commands → Schema Engine: uses engine
- Schema Engine → PostgreSQL / PostGIS: manages schemas
README.md