28 QgsFeatureList::iterator it = mFeatures.begin();
29 for ( ; it != mFeatures.end(); ++it )
31 ( *it ).setFields( mFields );
39 mFeatures.append( f );
45 QgsFeatureList::iterator fIt =
features.begin();
46 for ( ; fIt !=
features.end(); ++fIt )
This class represents a coordinate reference system (CRS).
bool addFeatures(QgsFeatureList &features, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags()) override
Adds a list of features to the sink.
QgsFeatureList features() const
Returns the list of features contained in the store.
QgsFields fields() const
Returns the store's field list.
void setFields(const QgsFields &fields)
Sets the store's fields.
bool addFeature(QgsFeature &feature, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags()) override
Adds a single feature to the sink.
QgsFeatureStore()=default
Constructor.
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
void setFields(const QgsFields &fields, bool initAttributes=false)
Assigns a field map with the feature to allow attribute access by attribute name.
Container of fields for a vector layer.
QList< QgsFeature > QgsFeatureList
const QgsCoordinateReferenceSystem & crs