<div dir="ltr">Hi Nyall,<div><br></div><div>Thanks for testing.</div><div><br></div><div>I tried again and still observe the issue.</div><div>I have found worst issues with setting this virtual fields with expression "num_points( $geometry )"</div><div><div class="gmail_quote"><div dir="ltr"><br></div><div>- when adding a new feature and committing I get an error saying:</div><div>Feature has too many attributes (expecting 1, received 2) <br></div><div>although feature is correctly written to the provider</div><div><br></div><div>- the function seems to return actually 1 vertex more than there actually is in the geometry</div><div><br></div><div>- I do need to commit to get the changes</div><div><br></div><div>I tested both with geopkg and shapefiles.</div><div>And I did not started alcohol yet today.</div><div><br></div><div>Cheers,</div><div>Denis</div><div><br></div><div><br></div><div dir="ltr"><br></div><div dir="ltr"><br></div><div dir="ltr">Le mar. 13 mars 2018 à 16:47, Nyall Dawson <<a href="mailto:nyall.dawson@gmail.com">nyall.dawson@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On 14 March 2018 at 03:19, Denis Rouzaud <<a href="mailto:denis.rouzaud@gmail.com" target="_blank">denis.rouzaud@gmail.com</a>> wrote:<br>
> Hi again,<br>
><br>
> I'd like to bump this issue once more to the list....<br>
<br>
>><br>
>> If I set a virtual field with the vertex count (i.e. num_points(<br>
>> $geometry ) ), it does not consider changes in the edit buffer.<br>
>> In other words, I have to commit the changes so the expression is correct.<br>
>><br>
>> Is this an expected behavior?<br>
>> I would have expect to be updated directly.<br>
<br>
I can't reproduce -- it works fine here (testing through the attribute table).<br>
<br>
Nyall<br>
</blockquote></div></div></div>