Hi Nyall, Thanks for testing.
I tried again and still observe the issue. I have found worst issues with setting this virtual fields with expression "num_points( $geometry )" - when adding a new feature and committing I get an error saying: Feature has too many attributes (expecting 1, received 2) although feature is correctly written to the provider - the function seems to return actually 1 vertex more than there actually is in the geometry - I do need to commit to get the changes I tested both with geopkg and shapefiles. And I did not started alcohol yet today. Cheers, Denis Le mar. 13 mars 2018 à 16:47, Nyall Dawson <nyall.daw...@gmail.com> a écrit : > On 14 March 2018 at 03:19, Denis Rouzaud <denis.rouz...@gmail.com> wrote: > > Hi again, > > > > I'd like to bump this issue once more to the list.... > > >> > >> If I set a virtual field with the vertex count (i.e. num_points( > >> $geometry ) ), it does not consider changes in the edit buffer. > >> In other words, I have to commit the changes so the expression is > correct. > >> > >> Is this an expected behavior? > >> I would have expect to be updated directly. > > I can't reproduce -- it works fine here (testing through the attribute > table). > > Nyall >
_______________________________________________ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer