Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • I don’t typically work with Python, but I decided to give it a try in the Python console. The layer updates correctly, behaving the same way as expressions. However, I encountered an error message about a wrong data type (QString). Since I’m using integers, I don’t quite understand the issue. Additionally, there’s a strange behavior with the fid (or sub_fids) field. Initially, it contains unique values, but after execution, I end up with array values like '[83, 84, 154, 156, 329, 332, 339, 342, 346, 367]'. Commented Jan 23 at 3:15
  • Edit: It does what you said actually. This is not en issue. Commented Jan 23 at 7:14
  • Glad I could help. I expended and commented the script. Commented Jan 24 at 12:41