Subgroup: Vector
Class: QgsVectorLayerSelectedFeatureSource¶
-
class
qgis.core.
QgsVectorLayerSelectedFeatureSource
¶ Bases:
qgis._core.QgsFeatureSource
QgsFeatureSource subclass for the selected features from a
QgsVectorLayer
.New in version 3.0: Methods
allFeatureIds
Returns a list of all feature IDs for features present in the source. featureCount
fields
getFeatures
materialize
Materializes a request
(query) made against this feature source, by running it over the source and returning a new memory based vector layer containing the result.maximumValue
Returns the maximum value for an attribute column or an invalid variant in case of error. minimumValue
Returns the minimum value for an attribute column or an invalid variant in case of error. sourceCrs
sourceExtent
Returns the extent of all geometries from the source. sourceName
uniqueValues
Returns the set of unique values contained within the specified fieldIndex
from this source.wkbType
Attributes
-
featureCount
(self) → int¶
-
fields
(self) → QgsFields¶
-
getFeatures
(self, request: QgsFeatureRequest = QgsFeatureRequest()) → QgsFeatureIterator¶
-
sourceCrs
(self) → QgsCoordinateReferenceSystem¶
-
sourceName
(self) → str¶
-
wkbType
(self) → QgsWkbTypes.Type¶
-