QGIS API Documentation
2.18.21-Las Palmas (9fba24a)
|
Container for features with the same fields and crs. More...
#include <qgsfeaturestore.h>
Public Member Functions | |
QgsFeatureStore () | |
Constructor. More... | |
QgsFeatureStore (const QgsFields &fields, const QgsCoordinateReferenceSystem &crs) | |
Constructor. More... | |
void | addFeature (const QgsFeature &feature) |
Add feature. More... | |
QgsCoordinateReferenceSystem | crs () const |
Get crs. More... | |
QgsFeatureList & | features () |
Get features list reference. More... | |
QgsFields & | fields () |
Get fields list. More... | |
QMap< QString, QVariant > | params () const |
Get map of optional parameters. More... | |
void | setCrs (const QgsCoordinateReferenceSystem &crs) |
Set crs. More... | |
void | setFields (const QgsFields &fields) |
Set fields. More... | |
void | setParams (const QMap< QString, QVariant > &theParams) |
Set map of optional parameters. More... | |
Container for features with the same fields and crs.
Definition at line 30 of file qgsfeaturestore.h.
QgsFeatureStore::QgsFeatureStore | ( | ) |
Constructor.
Definition at line 18 of file qgsfeaturestore.cpp.
QgsFeatureStore::QgsFeatureStore | ( | const QgsFields & | fields, |
const QgsCoordinateReferenceSystem & | crs | ||
) |
Constructor.
Definition at line 22 of file qgsfeaturestore.cpp.
void QgsFeatureStore::addFeature | ( | const QgsFeature & | feature | ) |
Add feature.
Feature's fields will be set to pointer to the store fields.
feature |
Definition at line 38 of file qgsfeaturestore.cpp.
|
inline |
Get crs.
Definition at line 46 of file qgsfeaturestore.h.
|
inline |
Get features list reference.
Definition at line 58 of file qgsfeaturestore.h.
|
inline |
Get fields list.
Definition at line 40 of file qgsfeaturestore.h.
Get map of optional parameters.
Definition at line 64 of file qgsfeaturestore.h.
|
inline |
Set crs.
Definition at line 49 of file qgsfeaturestore.h.
void QgsFeatureStore::setFields | ( | const QgsFields & | fields | ) |
Set fields.
Resets feature's fields to pointer to new internal fields.
Definition at line 28 of file qgsfeaturestore.cpp.
Set map of optional parameters.
Definition at line 61 of file qgsfeaturestore.h.