Class: QgsFeatureStore¶
-
class
qgis.core.
QgsFeatureStore
¶ Bases:
qgis._core.QgsFeatureSink
Constructor
QgsFeatureStore(fields: QgsFields, crs: QgsCoordinateReferenceSystem) Constructor
QgsFeatureStore(QgsFeatureStore)
A container for features with the same fields and crs.
Enums
Methods
Returns the number of features contained in the store.
Returns the store’s coordinate reference system.
Returns the list of features contained in the store.
Returns the store’s field list.
Returns the map of optional parameters.
Sets the store’s
crs
.Sets the store’s
fields
.Sets a map of optional
parameters
for the store.Signals
Attributes
-
addFeature
(self, feature: QgsFeature, flags: Union[QgsFeatureSink.Flags, QgsFeatureSink.Flag] = 0) → bool¶
-
addFeatures
(self, features: object, flags: Union[QgsFeatureSink.Flags, QgsFeatureSink.Flag] = 0) → bool¶
-
count
(self) → int¶ Returns the number of features contained in the store.
-
crs
(self) → QgsCoordinateReferenceSystem¶ Returns the store’s coordinate reference system.
See also
-
features
(self) → object¶ Returns the list of features contained in the store.
-
fields
(self) → QgsFields¶ Returns the store’s field list.
See also
-
params
(self) → Dict[str, Any]¶ Returns the map of optional parameters.
See also
-
setFields
(self, fields: QgsFields)¶ Sets the store’s
fields
. Every contained feature’s fields will be reset to matchfields
.See also
-