Tag Info

Hot answers tagged


Have you seen this snippet: Modify Features It is possible to either change feature’s geometry or to change some attributes. The following example first changes values of attributes with index 0 and 1, then it changes the feature’s geometry fid = 100 # ID of the feature we will modify if caps & QgsVectorDataProvider.ChangeAttributeValues: ...

Only top voted, non community-wiki answers of a minimum length are eligible