1

I've set up my water network layers to create an EPANET model using the gHydraulics plugin for QGIS 2.8: pipes, junctions, and a reservoir. The pipes have unique IDs, with their corresponding junctions' IDs as Node 1 and Node 2. When trying to make the EPANET model, however, I get a Python error:

TypeError: qgis._core.QgsMapLayerRegistry cannot be instantiated or sub-classed

This does not happen with QGIS 2.0.

  • You can try giswater (giswater.org) for windows (XP and Linux are not supported). It works well with QGIS 2.8. Download the testing version of Giswater all-in-one installer (you don't need Postgres+Postgis installed in your system). The EPANET USER'S GUIDE is in: giswater.org/documentation/chapter3. – xunilk May 16 '15 at 10:15
2

problem solved here: http://sourceforge.net/p/ghydraulic/bugs/32/ by Jorge Almério

in GHydraulicsModelMaker.py replace

maplayers = QgsMapLayerRegistry().instance().mapLayers()

with

maplayers = QgsMapLayerRegistry.instance().mapLayers()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.