Skip to content
This repository has been archived by the owner on Jun 3, 2020. It is now read-only.

Update SwmmAlgorithm.py #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@ Open QGIS, click on 'Add Postgis Layer', configure a new connection to swmm_test
- timeseries
- xsections

Open the processing toobox and double-click on the incon Swmm... -> Simulation -> Simulate...
Open the processing toolbox and double-click on the icon Swmm... -> Simulation -> Simulate...

If you are running a fresh buid from QGIS master, the name of the parameters are already set (recognized from layer names). If you running an older version of QGIS, you must set the following parameter:
If you are running a fresh build from QGIS master, the name of the parameters are already set (recognized from layer names). If you running an older version of QGIS, you must set the following parameter:

- Analysis options -> options
- Output reporting instruction -> report
Expand All @@ -119,7 +119,7 @@ If you are running a fresh buid from QGIS master, the name of the parameters are
- x-y tabular data references in other sections -> curves
- Time series data referenced in other sections -> timeseries

Then click on Run. Three result layers should appear in the project once the simualtion is complete.
Then click on Run. Three result layers should appear in the project once the simulation is complete.


Credits
Expand Down
9 changes: 9 additions & 0 deletions SwmmAlgorithm.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,22 @@
from processing.core.GeoAlgorithmExecutionException import \
GeoAlgorithmExecutionException
from processing.core.ProcessingLog import ProcessingLog
# from processing.parameters import ParameterVector
# from processing.parameters import ParameterTable
# from processing.parameters import ParameterString
# from processing.parameters import ParameterNumber
# from processing.parameters import ParameterFile
# from processing.parameters import Parameter
# from processing.outputs import OutputVector
from processing.core.parameters import ParameterVector
from processing.core.parameters import ParameterTable
from processing.core.parameters import ParameterString
from processing.core.parameters import ParameterNumber
from processing.core.parameters import ParameterFile
from processing.core.parameters import Parameter
from processing.core.outputs import OutputVector

# from processing.outputs import OutputTable
from processing.core.outputs import OutputTable
from processing.core.ProcessingConfig import ProcessingConfig
from processing.tools import dataobjects
Expand Down