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.

Methods

addFeature
addFeatures
count Returns the number of features contained in the store.
crs Returns the store’s coordinate reference system.
features Returns the list of features contained in the store.
fields Returns the store’s field list.
params Returns the map of optional parameters.
setCrs Sets the store’s crs.
setFields Sets the store’s fields.
setParams 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

setCrs()

features(self) → object

Returns the list of features contained in the store.

fields(self) → QgsFields

Returns the store’s field list.

See also

setFields()

params(self) → Dict[str, Any]

Returns the map of optional parameters.

See also

setParams()

setCrs(self, crs: QgsCoordinateReferenceSystem)

Sets the store’s crs.

See also

crs()

setFields(self, fields: QgsFields)

Sets the store’s fields. Every contained feature’s fields will be reset to match fields.

See also

fields()

setParams(self, parameters: Dict[str, Any])

Sets a map of optional parameters for the store.

See also

params()