You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The reason will be displayed to describe this comment to others. Learn more.
@wonder-sk this fixes a crash for me when selecting nodes on the canvas and having non-spatial (postgres) layers in the project.
I wonder why they even return features on line 429 a77f791#diff-cd44035d76fa6e1430345db6a8a0d57aL429 at all. Opinions?
Looking into QgsPostgresFeatureIterator constructor it seems that filter rect is simply ignored when the layer does not have geometries. Not sure how consistent is it with other providers, but ideally that should return closed iterator as such request does not make much sense for non-spatial layer...
The reason will be displayed to describe this comment to others. Learn more.
Not sure how consistent is it with other providers, but ideally that should return closed iterator as such request does not make much sense for non-spatial layer...
Yes, that's what I would have expected as well. @jef-n@nyalldawson any further considerations from your side?
a77f791
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@wonder-sk this fixes a crash for me when selecting nodes on the canvas and having non-spatial (postgres) layers in the project.
I wonder why they even return features on line 429 a77f791#diff-cd44035d76fa6e1430345db6a8a0d57aL429 at all. Opinions?
a77f791
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hi @m-kuhn - thanks for the fix!
Looking into QgsPostgresFeatureIterator constructor it seems that filter rect is simply ignored when the layer does not have geometries. Not sure how consistent is it with other providers, but ideally that should return closed iterator as such request does not make much sense for non-spatial layer...
a77f791
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, that's what I would have expected as well. @jef-n @nyalldawson any further considerations from your side?
a77f791
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1 for a closed iterator