qgisred / QGISRed

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

Main model network disappearing after a modification #27

Open GROMldra opened 3 years ago

GROMldra commented 3 years ago

Hi, today I came across this issue: when I try to add some geometries like pipes to an existing network the visualization of the entire network, after the plugin has updated the network, look like a graphic artefact. Nodes disappear and pipes looks like thin lines or disappear all together, vectors layers do not update anymore in shape and also text. Solving this issue is only possible by closing the program and re opening the projet all together. Here I've added the node in red (this screenshot is taken after re opening the project):

before problem

Here what happen after the update process of the network:

problem

When the visualization is like that the model still work properly, I can compute the model without any problem and also generate the results layer that cant be vizualized becuase the layer, if checked or unchecked , do not respon anymore. When I reopen the project the geometry is saved correctly.

Just found out that this issue happen when adding new junctions with the SPLIT tooland pipes. Does not happen when deleting existing elements.

neslerel commented 3 years ago

Hi @GROMldra,

We detected this problem when we were developing the plugin. However, it is, more or less, randomly and we think the problem is QGis visualization. Maybe this error refreshing the map in QGis is caused when we delete and reopen the project layers. We'll try to investigate it more.

Thanks!

GROMldra commented 3 years ago

Hi @GROMldra,

We detected this problem when we were developing the plugin. However, it is, more or less, randomly and we think the problem is QGis visualization. Maybe this error refreshing the map in QGis is caused when we delete and reopen the project layers. We'll try to investigate it more.

Thanks!

A little update that can confirm what you just said about visualization in QGIS: doing a modification and alt tabbig to another window (so you are not watching the map updating) seems to "fix" the problem and update the map with no problem.

neslerel commented 3 years ago

Thanks @GROMldra for your last comment.

Anyway, I'm leaving the issue open to deal with it at some moment.