QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
Functions
QgsServerFeatureId Namespace Reference

The QgsServerFeatureId namespace provides a way to use primary keys for feature id. More...

Functions

SERVER_EXPORT QString getExpressionFromServerFid (const QString &serverFid, const QgsVectorDataProvider *provider)
 Returns the expression feature id based on primary keys. More...
 
SERVER_EXPORT QString getServerFid (const QgsFeature &feature, const QgsAttributeList &pkAttributes)
 Returns the feature id based on primary keys. More...
 
SERVER_EXPORT QString pkSeparator ()
 Returns the primary keys separator. More...
 
SERVER_EXPORT QgsFeatureRequest updateFeatureRequestFromServerFids (QgsFeatureRequest &featureRequest, const QStringList &serverFids, const QgsVectorDataProvider *provider)
 Returns the feature request based on feature ids build with primary keys. More...
 

Detailed Description

The QgsServerFeatureId namespace provides a way to use primary keys for feature id.

Since
QGIS 3.4.9

Function Documentation

◆ getExpressionFromServerFid()

QString QgsServerFeatureId::getExpressionFromServerFid ( const QString &  serverFid,
const QgsVectorDataProvider provider 
)

Returns the expression feature id based on primary keys.

Parameters
serverFidthe feature id build with primary keys
providerthe vector layer provider to provide fields and primary keys list
Returns
the feature id based on primary keys
Since
QGIS 3.4.9

Definition at line 83 of file qgsserverfeatureid.cpp.

◆ getServerFid()

QString QgsServerFeatureId::getServerFid ( const QgsFeature feature,
const QgsAttributeList pkAttributes 
)

Returns the feature id based on primary keys.

Parameters
featurethe feature
pkAttributesthe primary keys list
Returns
the feature id based on primary keys
Since
QGIS 3.4.9

Definition at line 24 of file qgsserverfeatureid.cpp.

◆ pkSeparator()

QString QgsServerFeatureId::pkSeparator ( )

Returns the primary keys separator.

Returns
@ the primary keys separator
Since
QGIS 3.4.9

Definition at line 111 of file qgsserverfeatureid.cpp.

◆ updateFeatureRequestFromServerFids()

QgsFeatureRequest QgsServerFeatureId::updateFeatureRequestFromServerFids ( QgsFeatureRequest featureRequest,
const QStringList &  serverFids,
const QgsVectorDataProvider provider 
)

Returns the feature request based on feature ids build with primary keys.

Parameters
featureRequestthe feature request to update
serverFidsthe feature ids build with QgsServerFeatureId::getServerFid
providerthe vector layer provider to provide fields and primary keys list
Returns
the feature request updated
Since
QGIS 3.4.9

Definition at line 39 of file qgsserverfeatureid.cpp.