Code Monkey home page Code Monkey logo

qgis-epanet's Introduction

QGIS epanet plugin

Extends processing framework to models the hydraulic and water quality behavior of water distribution piping systems

This plugin lets you model hydraulic network for water and run simulations to get water pressure informations and more.

See a demo screencast here :

https://vimeo.com/87754967

Requirements

You need :

  • A working version of Epanet (english version mandatory)
  • QGIS > 2.0
  • The QGIS Processing framework
  • Python module matplotlib

Installation

You need to have epanet as a command line tool for the plugin to work.

Install Epanet for Windows

Download and run https://www.epa.gov/sites/production/files/2014-06/en2setup_0.exe

Compile Epanet for linux

Download Epanet sources from http://www2.epa.gov/sites/production/files/2014-06/en2source.zip

For linux:

mkdir epanet
cd epanet
wget http://www2.epa.gov/sites/production/files/2014-06/en2source.zip
unzip en2source.zip
unzip -n epanet2.zip 
unzip -n makefiles.ZIP
unzip -n GNU_EXE.ZIP

Open the file epanet.c, comment out the line

#define DLL

and uncomment the line

#define CLE

The file should look afterwards like:

#define CLE     /* Compile as a command line executable */
//#define SOL     /* Compile as a shared object library */
//#define DLL       /* Compile as a Windows DLL */

Open the file Makefile and replace the line

cc -o epanet2 -lm $(objs)

by

cc -o epanet2 $(objs) -lm 

Then run:

make

Install the plugin

Simply put this directory in the plugin directory. On linux:

cd ~/.qgis2/python/plugins
git clone https://github.com/Oslandia/qgis-epanet.git

You then need to run QGIS, install the processing plugin and configure the path to the epanet executable in QGIS menu Processsing->Options and configuration.

Note: On Windows, choose epanet2d.exe.

Testing

The file simple_network.zip contains an example of a tank emptying on a pipe. Unzip the directory en follow intructions in simple_network/README.md

Notes

This plugin has been tested on real data on a real use case. This use case cannot be made publicly available.

We are currently looking for a use case with data that can be published alongside the code.

Credits

This plugin has been developed by Oslandia ( http://www.oslandia.com ).

Oslandia provides support and assistance for QGIS and associated tools, including this plugin.

This work has been funded by European funds. Thanks to the GIS Office of Apavil, Valcea County (Romania)

License

This work is free software and licenced under the GNU GPL version 2 or any later version. See LICENSE file.

qgis-epanet's People

Contributors

tudorbarascu avatar vmora avatar vpicavet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

qgis-epanet's Issues

Bug: The timeplot works only when layers name are standard

For the simplest example, tank emptying in a pipe, if the layers name are other than junctions, tanks & pipes, the simulation runs by matching in the algorithm options which is who.
However, if the layer names are not standard, the timeplot graph doesn't work.

PROBLEM with qgis-epanet aplication

Hi,
I new user with qgis-epanet application.
The last day I have some problem with the application under windows8 and ubuntu 14.
The first problem was when I run the simulation in qgis return to me the next message...
Algorithm Simulate flow in drinking water network starting...

The next, I decided to use the example "simple_network" and qgis returned to me the same message.

Well, now I tried to rewrite the code and qgis return the new error message:

Algorithm Simulate flow in drinking water network starting...
No simulation named 'Epanet Simulation' in TIMES

I changed the name but I don't have found any error and possible solution.

Thank for see this message,
I wait the ask for my problem.

Best regards community!

[Error 5] Access is denied See log for more details

Running the tool on the test data and getting an error;

Algorithm Simulate flow in drinking water network starting...
running simulation

[Error 5] Access is denied See log for more details

I have EPANET2 installed and the plugin set to my install directory for EPANET2 where the .exe file resides. I don't see a commandline tool in this directory, or anywhere on my PC. This might be the issue but the only EPANET tool I could find was here...
https://www.epa.gov/water-research/epanet#downloads

Is there something else I am too have installed? The link on the readme takes me to a 404 error.
Thanks
Tyler

Couldn't load plugin 'qgis-epanet'

I followed the installation instructions and can not run the plugin.
QGIS message:

Couldn't load plugin 'qgis-epanet' from ['/usr/share/qgis/python/plugins/processing', '/usr/share/qgis/python', '/home/municipia/.qgis2/python', '/home/municipia/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/share/qgis/python/plugins/fTools/tools']

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 185, in loadPlugin
import(packageName)
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 460, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/municipia/.qgis2/python/plugins/qgis-epanet/init.py", line 3, in
from gui import Gui
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 460, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/municipia/.qgis2/python/plugins/qgis-epanet/gui.py", line 3, in
from EpanetAlgorithmProvider import EpanetAlgorithmProvider
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 460, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/municipia/.qgis2/python/plugins/qgis-epanet/EpanetAlgorithmProvider.py", line 33, in
from EpanetAlgorithm import EpanetAlgorithm
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 460, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
File "/home/municipia/.qgis2/python/plugins/qgis-epanet/EpanetAlgorithm.py", line 44, in
from processing.parameters.ParameterVector import ParameterVector
File "/usr/lib/python2.7/dist-packages/qgis/utils.py", line 460, in _import
mod = _builtin_import(name, globals, locals, fromlist, level)
ImportError: No module named parameters.ParameterVector

Python version:
2.7.6 (default, Mar 22 2014, 23:03:41)
[GCC 4.8.2]

QGIS version:
2.5.0-Master Master, exported

Python path: ['/usr/share/qgis/python/plugins/processing', '/usr/share/qgis/python', u'/home/municipia/.qgis2/python', u'/home/municipia/.qgis2/python/plugins', '/usr/share/qgis/python/plugins', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/usr/lib/python2.7/lib-old', '/usr/lib/python2.7/lib-dynload', '/usr/local/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages', '/usr/lib/python2.7/dist-packages/PILcompat', '/usr/lib/python2.7/dist-packages/gtk-2.0', '/usr/lib/pymodules/python2.7', '/usr/lib/python2.7/dist-packages/ubuntu-sso-client', '/usr/share/qgis/python/plugins/fTools/tools']

Input Error 201

I keep getting this error when I try run the imported Coimbra sample files to Postgis.
I can't see the difference between Postgis and spatiallite data.
Am I missing something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.