QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
qgsserverfeatureid.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsserverfeatureid.h
3 -----------------------
4 begin : May 17, 2019
5 copyright : (C) 2019 by René-Luc DHONT
6 email : rldhont at 3liz dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18#ifndef QGSSERVERFEATUREID_H
19#define QGSSERVERFEATUREID_H
20
21#include <QString>
22#include <QHash>
23
24#include "qgis_server.h"
25#include "qgsfield.h"
26
28class QgsFeature;
30
31
32#ifdef SIP_RUN
33% ModuleHeaderCode
34#include "qgsserverfeatureid.h"
35 % End
36#endif
37
38
46{
54 SERVER_EXPORT QString getServerFid( const QgsFeature &feature, const QgsAttributeList &pkAttributes );
55
64 SERVER_EXPORT QgsFeatureRequest updateFeatureRequestFromServerFids( QgsFeatureRequest & featureRequest, const QStringList &serverFids, const QgsVectorDataProvider *provider );
65
73 SERVER_EXPORT QString getExpressionFromServerFid( const QString &serverFid, const QgsVectorDataProvider *provider );
74
80 SERVER_EXPORT QString pkSeparator();
81};
82
83#endif
This class wraps a request for features to a vector layer (or directly its vector data provider).
The feature class encapsulates a single feature including its unique ID, geometry and a list of field...
Definition qgsfeature.h:58
This is the base class for vector data providers.
The QgsServerFeatureId namespace provides a way to use primary keys for feature id.
SERVER_EXPORT QString getExpressionFromServerFid(const QString &serverFid, const QgsVectorDataProvider *provider)
Returns the expression feature id based on primary keys.
SERVER_EXPORT QString pkSeparator()
Returns the primary keys separator.
SERVER_EXPORT QgsFeatureRequest updateFeatureRequestFromServerFids(QgsFeatureRequest &featureRequest, const QStringList &serverFids, const QgsVectorDataProvider *provider)
Returns the feature request based on feature ids build with primary keys.
SERVER_EXPORT QString getServerFid(const QgsFeature &feature, const QgsAttributeList &pkAttributes)
Returns the feature id based on primary keys.
QList< int > QgsAttributeList
Definition qgsfield.h:27