27 QgsFeatureList::iterator it = mFeatures.begin();
28 for ( ; it != mFeatures.end(); ++it )
30 ( *it ).setFields( mFields );
38 mFeatures.append( f );
44 QgsFeatureList::iterator fIt =
features.begin();
45 for ( ; fIt !=
features.end(); ++fIt )
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.
QgsCoordinateReferenceSystem crs() const
Returns the store's coordinate reference system.
QgsFeatureStore()=default
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