Please sign in to comment.
Add a base class implemention for QgsVectorDataProvider::changeFeatures
Previously this method would only succeed for providers which explicitly implement it. Now, providers which do not implement changeFeatures but do support both ChangeAttributeValues and ChangeGeometries capabilities will use a non-optimised version of changeFeatures which calls changeAttributeValues and changeGeometries in turn. This makes QgsVectorDataProvider::changeFeatures easier to use in scripts - instead of writing manual fallbacks for providers which do not implement it you can instead safely call this method regardless of the provider and it will succeed wherever both the attributes/geometries can be changed. Also add a provider unit test covering this.
- Loading branch information
Showing with 61 additions and 5 deletions.