QGIS API Documentation  3.4.15-Madeira (e83d02e274)
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

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 84 of file qgsserverfeatureid.cpp.

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.

QString QgsServerFeatureId::pkSeparator ( )

Returns the primary keys separator.

Returns
@ the primary keys separator
Since
QGIS 3.4.9

Definition at line 112 of file qgsserverfeatureid.cpp.

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 40 of file qgsserverfeatureid.cpp.