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
