26 if ( mBackend->
addFeature( layer, defaultValues, defaultGeometry, f ) )
28 mAddedFeatures[layer].insert( f->
id() );
68 QMapIterator<QgsVectorLayer *, QgsFeatureIds> it( mAddedFeatures );
69 while ( it.hasNext() )
72 it.key()->deleteFeatures( it.value() );
75 mAddedFeatures.clear();
A geometry is the spatial representation of a feature.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QMap< int, QVariant > QgsAttributeMap
This class wraps a request for features to a vector layer (or directly its vector data provider)...
Represents a vector layer which manages a vector based data sets.