|
| QgsVectorLayerJoinBuffer (QgsVectorLayer *layer=nullptr) |
|
bool | addFeatures (QgsFeatureList &features, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags()) override |
| Adds a list of features in joined layers. More...
|
|
bool | addJoin (const QgsVectorLayerJoinInfo &joinInfo) |
| Joins another vector layer to this layer. More...
|
|
bool | changeAttributeValue (QgsFeatureId fid, int field, const QVariant &newValue, const QVariant &oldValue=QVariant()) |
| Changes attribute value in joined layers. More...
|
|
bool | changeAttributeValues (QgsFeatureId fid, const QgsAttributeMap &newValues, const QgsAttributeMap &oldValues=QgsAttributeMap()) |
| Changes attributes' values in joined layers. More...
|
|
QgsVectorLayerJoinBuffer * | clone () const |
| Create a copy of the join buffer. More...
|
|
bool | containsJoins () const |
| Quick way to test if there is any join at all. More...
|
|
void | createJoinCaches () |
| Calls cacheJoinLayer() for all vector joins. More...
|
|
bool | deleteFeature (QgsFeatureId fid, QgsVectorLayer::DeleteContext *context=nullptr) const |
| Deletes a feature from joined layers. More...
|
|
bool | deleteFeatures (const QgsFeatureIds &fids, QgsVectorLayer::DeleteContext *context=nullptr) const |
| Deletes a list of features from joined layers. More...
|
|
bool | isAuxiliaryJoin (const QgsVectorLayerJoinInfo &info) const |
| Returns true if the join information is about auxiliary layer, false otherwise. More...
|
|
QgsFeature | joinedFeatureOf (const QgsVectorLayerJoinInfo *info, const QgsFeature &feature) const |
| Returns the joined feature corresponding to the feature. More...
|
|
int | joinedFieldsOffset (const QgsVectorLayerJoinInfo *info, const QgsFields &fields) |
| Find out what is the first index of the join within fields. More...
|
|
const QgsVectorLayerJoinInfo * | joinForFieldIndex (int index, const QgsFields &fields, int &sourceFieldIndex) const |
| Finds the vector join for a layer field index. More...
|
|
QList< const QgsVectorLayerJoinInfo * > | joinsWhereFieldIsId (const QgsField &field) const |
| Returns joins where the field of a target layer is considered as an id. More...
|
|
void | readXml (const QDomNode &layer_node) |
| Reads joins from project file. More...
|
|
bool | removeJoin (const QString &joinLayerId) |
| Removes a vector layer join. More...
|
|
void | resolveReferences (QgsProject *project) |
| Resolves layer IDs of joined layers using given project's available layers. More...
|
|
QgsFeature | targetedFeatureOf (const QgsVectorLayerJoinInfo *info, const QgsFeature &feature) const |
| Returns the targeted feature corresponding to the joined feature. More...
|
|
void | updateFields (QgsFields &fields) |
| Updates field map with joined attributes. More...
|
|
const QgsVectorJoinList & | vectorJoins () const |
|
void | writeXml (QDomNode &layer_node, QDomDocument &document) const |
| Saves mVectorJoins to xml under the layer node. More...
|
|
virtual | ~QgsFeatureSink ()=default |
|
virtual bool | addFeature (QgsFeature &feature, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags()) |
| Adds a single feature to the sink. More...
|
|
virtual bool | addFeatures (QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags()) |
| Adds all features from the specified iterator to the sink. More...
|
|
virtual bool | addFeatures (QgsFeatureList &features, QgsFeatureSink::Flags flags=QgsFeatureSink::Flags())=0 |
| Adds a list of features to the sink. More...
|
|
virtual bool | flushBuffer () |
| Flushes any internal buffer which may exist in the sink, causing any buffered features to be added to the sink's destination. More...
|
|
virtual QString | lastError () const |
| Returns the most recent error encountered by the sink, e.g. More...
|
|