QGIS API Documentation
3.14.0-Pi (9f7028fd23)
|
Go to the documentation of this file.
36 #define QSTR_COMPARE( str, lit )\
37 (str.compare( QLatin1String( lit ), Qt::CaseInsensitive ) == 0)
59 , mServerIface( serverIface )
62 QString
name()
const override {
return QStringLiteral(
"WMS" ); }
63 QString
version()
const override {
return mVersion; }
85 const QString req = parameters.
request();
89 QStringLiteral(
"Please add or check the value of the REQUEST parameter" ), 501 );
92 if ( ( mVersion.compare( QLatin1String(
"1.1.1" ) ) == 0 \
101 version = QStringLiteral(
"1.3.0" );
152 QStringLiteral(
"Request %1 is not supported" ).arg( req ), 501 );
173 QgsDebugMsg( QStringLiteral(
"WMSModule::registerSelf called" ) );
void writeGetMap(QgsServerInterface *serverIface, const QgsProject *project, const QString &, const QgsServerRequest &request, QgsServerResponse &response)
Output GetMap response in DXF format.
Class defining the service module interface for QGIS server services.
Provides an interface to retrieve and manipulate WMS parameters received from the client.
void writeDescribeLayer(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output GetMap response in DXF format.
Exception class for WMS service exceptions.
void writeAsDxf(QgsServerInterface *serverIface, const QgsProject *project, const QString &, const QgsServerRequest &request, QgsServerResponse &response)
Output GetMap response in DXF format.
QString wmtver() const
Returns WMTVER parameter or an empty string if not defined.
QString request() const
Returns REQUEST parameter as a string or an empty string if not defined.
#define QSTR_COMPARE(str, lit)
Service(const QString &version, QgsServerInterface *serverIface)
Constructor for WMS service.
void registerService(QgsService *service)
Register a service by its name and version.
void writeGetFeatureInfo(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output GetFeatureInfo response.
void writeGetSchemaExtension(QgsServerResponse &response)
Output GetSchemaExtension response.
QString version() const override
QString version() const
Returns VERSION parameter as a string or an empty string if not defined.
void executeRequest(const QgsServerRequest &request, QgsServerResponse &response, const QgsProject *project) override
Execute the requests and set result in QgsServerRequest.
OGC web service specialized for WMS.
void writeGetStyle(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output GetStyle response.
void writeGetCapabilities(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response, bool projectSettings)
Output GetCapabilities response.
void registerSelf(QgsServiceRegistry ®istry, QgsServerInterface *serverIface) override
Asks the module to register all provided services.
QGISEXTERN void QGS_ServiceModule_Exit(QgsServiceModule *)
QGISEXTERN QgsServiceModule * QGS_ServiceModule_Init()
QString name() const override
void writeGetContext(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output GetContext response.
void writeGetLegendGraphics(QgsServerInterface *serverIface, const QgsProject *project, const QString &, const QgsServerRequest &request, QgsServerResponse &response)
Output GetLegendGRaphics response.
void writeGetPrint(QgsServerInterface *serverIface, const QgsProject *project, const QString &, const QgsServerRequest &request, QgsServerResponse &response)
Output GetPrint response.
@ OGC_OperationNotSupported
QString formatAsString() const
Returns FORMAT parameter as a string.
void writeGetStyles(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output GetStyles response.
bool versionIsValid(const QString version) const
Returns true if version is valid, false otherwise.
Module specialized for WMS service.