qgisred / QGISRed

GNU General Public License v2.0
23 stars 8 forks source link

problem with QGISRED execution #129

Open apprenti1973 opened 3 months ago

apprenti1973 commented 3 months ago

hello I have this error when I apply de RUN EPANET under QGISRED . Please help me

2024-03-25T11:53:28 WARNING Traceback (most recent call last): File "C:\Users/HP/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QGISRed\qgisred_plugins.py", line 2530, in runModel self.ResultDockwidget.simulate(self.ProjectDirectory, self.NetworkName) File "C:\Users/HP/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QGISRed\ui\qgisred_results_dock.py", line 800, in simulate self.saveCurrentRender() File "C:\Users/HP/AppData/Roaming/QGIS/QGIS3\profiles\default/python/plugins\QGISRed\ui\qgisred_results_dock.py", line 272, in saveCurrentRender dictSce[openedLayerPath] = renderer.rootRule().clone() AttributeError: 'QgsSingleSymbolRenderer' object has no attribute 'rootRule'

fmartine commented 2 months ago

For those who want to use QGISRed with new QGIS versions after 3.28 and avoid the previous error you can download a new testing beta version 0.16.11 of QGISRed from the following link: https://qgisred.upv.es/files/plugin/QGISRed_v0.16.11.zip

If you have a previous version (included 0.16.0):

Uninstall the QGISRed plugin from the QGis plugin manager. Close QGis Go to Windows Applications and Features and uninstall the application named QGISRed (I guess version 1.0.16.0)). Follow the next steps. If you have installed a version greater or equal than 0.16.1:

Download the zip from previous link Open QGis and go to the Plugin Manager Install the QGISRed plugin from ZIP (use the downloaded zip file) When using it for first time, it will ask to install the new dependencies. After installing them the webpage of QGISRed will be shown Subscribe to the newsletter if desired and close de page. If QGISRed icons are not shown in the toolbars, go again to the Plugin Manager, select the Installed tab and ensure that the checkbox of QGISRed is activated. Good luck

massimiliano-cannata commented 1 month ago

Hi There, I've been using the ZIP for a course with about 30 students and it works. I only have the issue that sometime pipes are not rendered in the canvas (e.g. when I split one pipe it disappears) but then zooming out they are show: re-zooming in make them disappear again...

--> UPDATE: this seems a bug of QGIS, after deleting the .qix file pipes and nodes came back

fmartine commented 4 weeks ago

Indeed, the problem is due to the automatic creation of .qix files, a kind of spatial index designed to speed up the rendering of large-shape themes. Although this is an option in the theme properties (Source, Geometry, Create Spatial Index), it seems the .qix files are created randomly because QGISRed does not create the themes with the QGIS tools, but directly from the shapelib library. So far we have not been able to find out how to avoid the automatic creation of .qix files. Any suggestion is welcome.