Hi, On Fri, Aug 29, 2014 at 12:09 PM, Francesco Liva <[email protected]> wrote:
> Hi > > I have done the correction with TEXT WRANGLER. THankyou I could open the > file and correct it. GOOD. > > Than running QGIS with the new command Path, I get the following error: > > Algorithm Simulate flow in drinking water network starting... > running simulation > There are errors, please check processing logs or open file > /var/folders/46/cgd0h9jj7f96wkbrf0v_y4h00000gn/T/processing/epanet.out for > details > > Yes, that is the error I mentioned above. If you open up the /var/folders/46/cgd0h9jj7f96wkbrf0v_y4h00000gn/T/processing/epanet.out file you should see something like: Error 305: can not open Hydraulics file. Don't know how to fix that yet. I assume it will be resolved with a standard installation of the epanet2d binary, e.g. once completed as a Homebrew formula. In the meantime, the GHydraulics plugin should be functional for you. Beyond those items, I do not know enough about water supply software to help further with either plugin's usage. Any errors or issues should be reported to those projects respectively. Regards, Larry > Best Regards > Francesco Liva > > ______________________________ > 27, Triq Ix-Xatt, Kalkara, Malta > ☎ +356 99 38 01 68 mobile > ☎ +356 27 32 76 78 home > > Via Tevere 13-A, 00198 Rome > ☎ +39 06 841 32 64 home > ☎ +39 333 750 99 83 mobile > > 30, Rue V. Contesso, Villefranche/S/M > ☎ +33 (0) 4 93 80 67 21 > > Tsintsadze Str. > Tbilisi Georgia > +995 577 17 70 81 > > [email protected] > ☏ Francesco.Liva > > > > > > On 29 Aug 2014, at 18:15, Larry Shaffer <[email protected]> wrote: > > Hi, > > On Fri, Aug 29, 2014 at 7:45 AM, Francesco Liva <[email protected]> wrote: > >> Hi Larry >> Thank you for your e-mail. I am trying to change the instances as you >> mentioned, writing in TERMINAL the: >> ~/.qgis2/python/plugins/ghydraulic/GHydraulicsModelMaker.py >> >> But the answer is: >> >> -bash: >> /Users/francescoliva/.qgis2/python/plugins/ghydraulic/GHydraulicsModelMaker.py: >> Permission denied >> F-Liva-Apple:~ francescoliva$ >> >> May be I did something wrong, How shall I change all the INSTANCES ? >> > > I meant open the .py file in a text editor and do a find/replace of all > instance of the text string. > > A good, free (though not open source) code editor is TextWrangler from > BareBones: > http://www.barebones.com/products/textwrangler/ > > Regards, > > Larry Shaffer > Dakota Cartography > Black Hills, South Dakota > > > >> Best Regards >> Francesco Liva >> >> ______________________________ >> 27, Triq Ix-Xatt, Kalkara, Malta >> ☎ +356 99 38 01 68 mobile >> ☎ +356 27 32 76 78 home >> >> Via Tevere 13-A, 00198 Rome >> ☎ +39 06 841 32 64 home >> ☎ +39 333 750 99 83 mobile >> >> 30, Rue V. Contesso, Villefranche/S/M >> ☎ +33 (0) 4 93 80 67 21 >> >> Tsintsadze Str. >> Tbilisi Georgia >> +995 577 17 70 81 >> >> [email protected] >> ☏ Francesco.Liva >> >> >> >> >> >> On 29 Aug 2014, at 15:16, Larry Shaffer <[email protected]> wrote: >> >> Hi Francesco, >> >> I have looked into this and wine is not needed. However, there are still >> some hurdles. I will list the steps so that it is as straightforward as can >> be (or as much as it can be from me :-) : >> >> 1. Install the GHydraulics plugin. This plugin actually contains command >> line binaries of epanet for Linux, Win, and Mac; though, it is actually >> against plugin policy to distribute pre-compiled binaries with plugins >> through the official QGIS repository. Nonetheless, it is a good thing for >> you and other Mac users. :-) >> >> This means GHydraulics actually works right out-of-the-box. There is a >> bug in one of the sources, though. >> >> In ~/.qgis2/python/plugins/ghydraulic/GHydraulicsModelMaker.py: >> >> Change ALL instances of >> QgsMapLayerRegistry().instance().mapLayers() >> to >> QgsMapLayerRegistry.instance().mapLayers() >> >> I'll be reporting this upstream to http://epanet.de/ >> >> NOTE: some of the reporting from the plugin is actually sent to the Log >> Messages Panel. Choose 'View -> Panels -> Log Messages' to ensure it is >> visible. >> >> See also: >> http://epanet.de/ghydraulics/index.html >> http://sdteffen.blogspot.com/search/label/GHydraulics >> >> 2. Since you already have an epanet2d command line binary for Mac, you >> can just use its path for the configuration of the 'qgis_epanet' plugin: >> >> /Users/<user>/.qgis2/python/plugins/ghydraulic/bin/osx/epanet2d >> >> NOTE: replace <user> with your short user name. >> >> There is some sample data to play with available in the github.com >> repository: >> https://github.com/Oslandia/qgis-epanet#testing >> >> I did have an issue when running a simulation, due to a missing >> Hydraulics file (could not resolve). >> >> 3. I think I will add epanet command line utilities to OSGeo4Mac, so this >> is simpler to set up. >> >> >> Regards, >> >> Larry Shaffer >> Dakota Cartography >> Black Hills, South Dakota >> >> >> On Wed, Aug 27, 2014 at 10:28 AM, Francesco Liva <[email protected]> >> wrote: >> >>> Hi Larry >>> Yes thankyou >>> >>> I have found something else which may be helpful. >>> >>> on: http://www.oslandia.com/qgis-plugin-for-water-management-en.html >>> >>> >>> Once the hydraulic model and simulation parameters are loaded in QGIS, >>> the simulation can be launched through the*Processing* toolbox. The >>> plugin uses the standalone command line interface of EPANET (CLI) which >>> path needs to be specified in processing Options and configuration. >>> The plugin assembles an EPANET input file, runs EPANET and parses its >>> output to generate result layers. >>> One interesting aspect with processing modules is that they can be used >>> for chained processing: the user can use other modules to do additional >>> transformations of simulation results, as feeding them into another >>> simulation model. >>> >>> Best Regards >>> Francesco Liva >>> >>> ______________________________ >>> 27, Triq Ix-Xatt, Kalkara, Malta >>> ☎ +356 99 38 01 68 mobile >>> ☎ +356 27 32 76 78 home >>> >>> >>> >>> >> > >
_______________________________________________ Qgis-user mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/qgis-user
