15 #ifndef QGSFEATURESTORE_H 16 #define QGSFEATURESTORE_H 18 #include "qgis_core.h" 51 void setFields(
const QgsFields &fields );
71 int count()
const {
return mFeatures.size(); }
80 sipRes = sipCpp->count();
93 void setParams(
const QMap<QString, QVariant> ¶meters ) { mParams = parameters; }
99 QMap<QString, QVariant>
params()
const {
return mParams; }
109 QMap<QString, QVariant> mParams;
A container for features with the same fields and crs.
QList< QgsFeatureStore > QgsFeatureStoreList
QList< QgsFeature > QgsFeatureList
An interface for objects which accept features via addFeature(s) methods.
void setParams(const QMap< QString, QVariant > ¶meters)
Sets a map of optional parameters for the store.
Container of fields for a vector layer.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Q_DECLARE_METATYPE(QModelIndex)
void setCrs(const QgsCoordinateReferenceSystem &crs)
Sets the store's crs.
virtual bool addFeature(QgsFeature &feature, QgsFeatureSink::Flags flags=nullptr)
Adds a single feature to the sink.
virtual bool addFeatures(QgsFeatureList &features, QgsFeatureSink::Flags flags=nullptr)=0
Adds a list of features to the sink.
QgsFields fields() const
Returns the store's field list.
This class represents a coordinate reference system (CRS).
QMap< QString, QVariant > params() const
Returns the map of optional parameters.
QgsCoordinateReferenceSystem crs() const
Returns the store's coordinate reference system.
QgsFeatureList features() const
Returns the list of features contained in the store.
int count() const
Returns the number of features contained in the store.