Subgroup: other
Class: QgsProxyFeatureSink¶
-
class
qgis.core.
QgsProxyFeatureSink
¶ Bases:
qgis._core.QgsFeatureSink
A simple feature sink which proxies feature addition on to another feature sink.
This class is designed to allow factory methods which always return new QgsFeatureSink objects. Since it is not always possible to create an entirely new QgsFeatureSink (e.g. if the feature sink is a layer’s data provider), a new
QgsProxyFeatureSink
can instead be returned which forwards features on to the destination sink. The proxy sink can be safely deleted without affecting the destination sink.New in version 3.0: Methods
addFeature
addFeatures
addFeatures(self, iterator: QgsFeatureIterator, flags: Union[QgsFeatureSink.Flags, QgsFeatureSink.Flag] = 0) -> bool destinationSink
Returns the destination QgsFeatureSink which the proxy will forward features to. flushBuffer
Flushes any internal buffer which may exist in the sink, causing any buffered features to be added to the sink’s destination. Attributes
FastInsert
-
addFeature
(self, feature: QgsFeature, flags: Union[QgsFeatureSink.Flags, QgsFeatureSink.Flag] = 0) → bool¶
-
addFeatures
(self, features: object, flags: Union[QgsFeatureSink.Flags, QgsFeatureSink.Flag] = 0) → bool¶ addFeatures(self, iterator: QgsFeatureIterator, flags: Union[QgsFeatureSink.Flags, QgsFeatureSink.Flag] = 0) -> bool
-
destinationSink
(self) → QgsFeatureSink¶ Returns the destination QgsFeatureSink which the proxy will forward features to.
-