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" ); }
70 QString versionString = params.
version();
71 if ( versionString.isEmpty() )
77 const QString req = params.
request();
81 QStringLiteral(
"Please check the value of the REQUEST parameter" ), 501 );
98 writeGetFeature( mServerIface, project, versionString, request, response );
113 writeTransaction( mServerIface, project, versionString, request, response );
120 QStringLiteral(
"Request %1 is not supported" ).arg( req ), 501 );
142 QgsDebugMsg( QStringLiteral(
"WFSModule::registerSelf called" ) );
OGC web service specialized for WFS.
void writeGetFeature(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WFS GetFeature response.
Service(QgsServerInterface *serverIface)
Constructor for WFS service.
QString name() const override
Class defining the service module interface for QGIS server services.
QString version() const override
void writeDescribeFeatureType(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WFS GetCapabilities response.
Method
HTTP Method (or equivalent) used for the request.
QGISEXTERN QgsServiceModule * QGS_ServiceModule_Init()
bool allowMethod(QgsServerRequest::Method method) const override
Returns true if the given method is supported for that service.
QString version() const
Returns VERSION parameter as a string or an empty string if not defined.
Module specialized for WFS service.
QString request() const
Returns REQUEST parameter as a string or an empty string if not defined.
void writeGetCapabilities(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WFS GetCapabilities response.
void writeTransaction(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WFS transaction response.
Reads and writes project states.
QString implementationVersion()
Returns the highest version supported by this implementation.
#define QSTR_COMPARE(str, lit)
QGISEXTERN void QGS_ServiceModule_Exit(QgsServiceModule *)
void registerService(QgsService *service)
Register a service by its name and version.
QgsService Class defining interfaces for QGIS server services.
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins...
QgsServiceRegistry Class defining the registry manager for QGIS server services.
Exception class for WFS service exceptions.
void writeTransaction(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WFS transaction response.
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.
QgsServerResponse Class defining response interface passed to services QgsService::executeRequest() m...
Provides an interface to retrieve and manipulate WFS parameters received from the client...
void registerSelf(QgsServiceRegistry ®istry, QgsServerInterface *serverIface) override
Asks the module to register all provided services.