-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
1 parent
901cd29
commit b256075
Showing
3 changed files
with
61 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters