Feature request #1482

Add accessors to QgsVectorLayer

Added by oliviert - about 8 years ago. Updated over 1 year ago.

Status:Closed Start Date:
Priority:Low Due date:
Assigned to:- % Done:


Target version:Future Release - Nice to have
Platform:All Resolution:fixed/implemented
Platform version: Pull Request or Patch supplied:No
Status info:0 Tag:


I think it will be useful to add accessors in the QgsVectorLayer class for private members. For instance :

const [[QgsFeatureIds]]& getDeletedFeaturesIds() const { return mDeletedFeatureIds; }
const [[QgsFeatureList]]& getAddedFeatures() const { return mAddedFeatures; }
const [[QgsGeometryMap]]& getChangedGeometries() const { return mChangedGeometries; }

Maybe it will also be a good idea for other members ...


Updated by Paolo Cavallini almost 7 years ago

Still true?

Updated by Giovanni Manghi over 5 years ago

  • Target version changed from Version 1.7.0 to Version 1.7.4

Updated by Giovanni Manghi almost 5 years ago

  • Target version changed from Version 1.7.4 to Version 2.0.0

Updated by Pirmin Kalberer over 4 years ago

  • Target version changed from Version 2.0.0 to Future Release - Nice to have

Updated by Médéric RIBREUX over 1 year ago

  • Status changed from Open to Closed
  • Assigned to deleted (nobody -)
  • % Done changed from 0 to 100
  • Resolution set to fixed/implemented
  • Pull Request or Patch supplied set to No

Hello, bug triage...

since QGIS 2.0, you can access those attributes by using a QgsVectorLayerEditBuffer from the QgsVectorLayer. There are the following public methods:

  • addedFeatures()
  • deletedFeatureIds()
  • changedGeometries()

I am closing this old feature request (feel free to reopen it if you think there is still need to have a private access directly in QgsVectorLayer) !

Also available in: Atom