QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
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 )
QgsFeatureList features() const
Returns the list of features contained in the store.
const QgsCoordinateReferenceSystem & crs
Container of fields for a vector layer.
bool addFeature(QgsFeature &feature, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags()) override
Adds a single feature to the sink.
void setFields(const QgsFields &fields, bool initAttributes=false)
Assign a field map with the feature to allow attribute access by attribute name.
void setFields(const QgsFields &fields)
Sets the store's fields.
QList< QgsFeature > QgsFeatureList
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.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
QgsFields fields() const
Returns the store's field list.
QgsFeatureStore()=default
Constructor.