QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
32 #define QSTR_COMPARE( str, lit )\
33 (str.compare( QLatin1String( lit ), Qt::CaseInsensitive ) == 0)
53 : mServerIface( serverIface )
56 QString
name()
const override {
return QStringLiteral(
"WFS" ); }
65 QString versionString = params.
version();
66 if ( versionString.isEmpty() )
72 const QString req = params.
request();
76 QStringLiteral(
"Please add or check the value of the REQUEST parameter" ), 501 );
93 writeGetFeature( mServerIface, project, versionString, request, response );
108 writeTransaction( mServerIface, project, versionString, request, response );
115 QStringLiteral(
"Request %1 is not supported" ).arg( req ), 501 );
137 QgsDebugMsg( QStringLiteral(
"WFSModule::registerSelf called" ) );
Class defining the service module interface for QGIS server services.
void writeDescribeFeatureType(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WFS GetCapabilities response.
QString version() const override
QGISEXTERN QgsServiceModule * QGS_ServiceModule_Init()
QString name() const override
QString request() const
Returns REQUEST parameter as a string or an empty string if not defined.
Module specialized for WFS service.
QgsService Class defining interfaces for QGIS server services.
void registerService(QgsService *service)
Register a service by its name and version.
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
Service(QgsServerInterface *serverIface)
Constructor for WFS service.
#define QSTR_COMPARE(str, lit)
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
QGISEXTERN void QGS_ServiceModule_Exit(QgsServiceModule *)
QString version() const
Returns VERSION parameter as a string or an empty string if not defined.
void writeTransaction(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WFS transaction response.
Exception class for WFS service exceptions.
Provides an interface to retrieve and manipulate WFS parameters received from the client.
void writeGetCapabilities(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WFS GetCapabilities response.
void registerSelf(QgsServiceRegistry ®istry, QgsServerInterface *serverIface) override
Asks the module to register all provided services.
void writeGetCapabilities(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WFS GetCapabilities response.
void executeRequest(const QgsServerRequest &request, QgsServerResponse &response, const QgsProject *project) override
Execute the requests and set result in QgsServerRequest.
QString implementationVersion()
Returns the highest version supported by this implementation.
QgsServiceRegistry Class defining the registry manager for QGIS server services.
void writeTransaction(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WFS transaction response.
void writeGetFeature(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WFS GetFeature response.
OGC web service specialized for WFS.
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins.
QgsServerResponse Class defining response interface passed to services QgsService::executeRequest() m...