qwat / QWAT

TEKSI Water module (project QWAT) - QGIS project
https://www.teksi.ch
GNU General Public License v2.0
58 stars 31 forks source link

[QGIS] Snapping on invisible feature #193

Open dsavary opened 7 years ago

dsavary commented 7 years ago

In QGIS, we can snap on invisible features even if the snapping options have been defined as "snap on all visible layers". The snapping options don't take into accoount the layer style.
Will this be fixed for QGIS 3.0 ?

Démo GIF : https://share.oslandia.net/public/b91c8e

haubourg commented 7 years ago

Hi @dsavary let's split it in two phases:

For unchecked classes, that would make sense not to have a snapping index. For the others, we'll need to discuss this largely with the community.

dsavary commented 7 years ago

I tested with QGIS 2.99 3 week ago. The bug is still not fixed. I talk about invisible feature that are unchecked classes . The snapping options check only if the layer are checked. Perhaps, it's not a bug, but a new feature request .

haubourg commented 7 years ago

Ok, this case is probably an issue. Let's raise the issue on the mailing list.

haubourg commented 7 years ago

thread opened here http://osgeo-org.1560.x6.nabble.com/issue-with-snapping-on-unchecked-legend-classes-td5322685.html

ponceta commented 7 years ago

About snapping in QGIS 3 https://github.com/QGEP/QGEP/issues/330

dsavary commented 7 years ago

For Lausanne, this issue is important. In the priority, it should be fix for QGIS 3.0 , ideally for QGIS 2.18 LTR if it's still possible. I don't understand the use cases where you would snap the new feature to invisible features on the map ...

haubourg commented 7 years ago

ticket created upstream https://issues.qgis.org/issues/16838

My guess is that the whole snapping workflow deserves something consistent. We have quite a bunch of good issues and feature requests in that area

haubourg commented 7 years ago

@dsavary backporting a change to 2.18 seems not possible according to @wonder-sk, it's a little bit more than only a bugfix. @qwat-psc: what is the priority of this issue when compared to all other issues with snapping? I have in mind the following needs:

ponceta commented 7 years ago

IMHO, Snapping on invisible features is a feature.

Removing it completely would be wrong. I suggest to set it optionnal in the same way that snapping on intersections is optionnal.

Default could be set to visible only.

haubourg commented 6 years ago

@wonder-sk Hi Martin, I have 2 days available in the end of 2017 budget to fix that in QGIS 3 or 3.2. Would you be available to work on that?

haubourg commented 6 years ago

@wonder-sk Hi in case you had some time left, We are out of budget for 2017. Would you be interested in that for 2018 ?

wonder-sk commented 6 years ago

Sorry for the delayed response... Sure we can do it in 2018 if you are interested in this feature.

haubourg commented 6 years ago

@wonder-sk well, let's keep that in standby that until I get a clearance for the 2018 actions. Any time estimate on that task?

wonder-sk commented 6 years ago

Cool... My estimate for this is ~2 days

haubourg commented 6 years ago

We have an external contributor funding that fix. Work starting soon, thanks!

dsavary commented 6 years ago

Good news ! planned for QGIS 3.1 (2018) ? I think not for QGIS 2.18 :) ...

haubourg commented 6 years ago

Planned for 3.2. 3.1 is the current master development version.

2.18 was investigated by Martin and needed API changes >> NoGO

haubourg commented 6 years ago

@lbartoletti hub cleanup, I assign you to the task you are already working on

lbartoletti commented 6 years ago

PR Merged https://github.com/qgis/QGIS/pull/6750

haubourg commented 6 years ago

Please keep it opened until we have a green light from the testers :)

lbartoletti commented 5 years ago

Could be closed now?

lbartoletti commented 5 years ago

The main bug was fixed one year ago. I fixed a related bug for tracing.

FYI, there is a last related bug https://github.com/qgis/QGIS/issues/26733

Do you want me to take care of it?

haubourg commented 5 years ago

Do you want me to take care of it?

are you talking to me? ;-) Please go ahaed and close qgis/QGIS#26733 and https://github.com/qwat/QWAT/issues/193 if everything is OK: