16 #ifndef QGSVECTORLAYERUTILS_H 17 #define QGSVECTORLAYERUTILS_H 19 #include "qgis_core.h" 57 QList<QgsVectorLayer *> layers()
const;
67 QMap<QgsVectorLayer *, QgsFeatureIds> mDuplicatedFeatures;
130 static QList< QVariant > getValues(
const QgsVectorLayer *layer,
const QString &fieldOrExpression,
bool &ok,
bool selectedOnly =
false,
QgsFeedback *feedback =
nullptr );
145 static QList< double > getDoubleValues(
const QgsVectorLayer *layer,
const QString &fieldOrExpression,
bool &ok,
bool selectedOnly =
false,
int *nullCount =
nullptr,
QgsFeedback *feedback =
nullptr );
160 static QVariant createUniqueValue(
const QgsVectorLayer *layer,
int fieldIndex,
const QVariant &seed = QVariant() );
168 static QVariant createUniqueValueFromCache(
const QgsVectorLayer *layer,
int fieldIndex,
const QSet<QVariant> &existingValues,
const QVariant &seed = QVariant() );
200 const QgsFeaturesDataList &featuresData,
227 static std::unique_ptr<QgsVectorLayerFeatureSource> getFeatureSource( QPointer<QgsVectorLayer> layer,
QgsFeedback *feedback =
nullptr )
SIP_SKIP;
325 #endif // QGSVECTORLAYERUTILS_H Wrapper for iterator of features from vector data provider or vector layer.
QSet< QgsFeatureId > QgsFeatureIds
Contains mainly the QMap with QgsVectorLayer and QgsFeatureIds do list all the duplicated features...
QList< QgsFeature > QgsFeatureList
ConstraintOrigin
Origin of constraints.
Container of fields for a vector layer.
A geometry is the spatial representation of a feature.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Base class for feedback objects to be used for cancellation of something running in a worker thread...
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Encapsulate geometry and attributes for new features, to be passed to createFeatures.
QMap< int, QVariant > QgsAttributeMap
Encapsulates a QGIS project, including sets of map layers and their styles, layouts, annotations, canvases, etc.
Contains utility methods for working with QgsVectorLayers.
ConstraintStrength
Strength of constraints.
Represents a vector layer which manages a vector based data sets.
We may need stable references to symbol layers, when pointers to symbol layers is not usable (when a ...
QList< QgsVectorLayerUtils::QgsFeatureData > QgsFeaturesDataList
Alias for list of QgsFeatureData.