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" );
149 QgsDebugMsg( QStringLiteral(
"WMS GetPrint request called, but it has been disabled." ) );
151 QStringLiteral(
"Request %1 is not supported" ).arg( req ), 501 );
159 QStringLiteral(
"Request %1 is not supported" ).arg( req ), 501 );
180 QgsDebugMsg( QStringLiteral(
"WMSModule::registerSelf called" ) );
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins.
virtual QgsServerSettings * serverSettings()=0
Returns the server settings.
QString request() const
Returns REQUEST parameter as a string or an empty string if not defined.
QString version() const
Returns VERSION parameter as a string or an empty string if not defined.
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
QgsServerResponse Class defining response interface passed to services QgsService::executeRequest() m...
bool getPrintDisabled() const
Returns true if WMS GetPrint request is disabled and the project's reading flag QgsProject::ReadFlag:...
Class defining the service module interface for QGIS server services.
QgsServiceRegistry Class defining the registry manager for QGIS server services.
void registerService(QgsService *service)
Register a service by its name and version.
QgsService Class defining interfaces for QGIS server services.
Module specialized for WMS service.
void registerSelf(QgsServiceRegistry ®istry, QgsServerInterface *serverIface) override
Asks the module to register all provided services.
Exception class for WMS service exceptions.
@ OGC_OperationNotSupported
Provides an interface to retrieve and manipulate WMS parameters received from the client.
QString formatAsString() const
Returns FORMAT parameter as a string.
bool versionIsValid(const QString version) const
Returns true if version is valid, false otherwise.
QString wmtver() const
Returns WMTVER parameter or an empty string if not defined.
OGC web service specialized for WMS.
Service(const QString &version, QgsServerInterface *serverIface)
Constructor for WMS service.
void executeRequest(const QgsServerRequest &request, QgsServerResponse &response, const QgsProject *project) override
Execute the requests and set result in QgsServerRequest.
QString version() const override
QString name() const override
Median cut implementation.
void writeDescribeLayer(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output GetMap response in DXF format.
void writeGetStyles(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output GetStyles response.
void writeGetCapabilities(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response, bool projectSettings)
Output GetCapabilities response.
void writeAsDxf(QgsServerInterface *serverIface, const QgsProject *project, const QString &, const QgsServerRequest &request, QgsServerResponse &response)
Output GetMap response in DXF format.
void writeGetStyle(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output GetStyle response.
void writeGetSchemaExtension(QgsServerResponse &response)
Output GetSchemaExtension response.
void writeGetFeatureInfo(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output GetFeatureInfo response.
void writeGetMap(QgsServerInterface *serverIface, const QgsProject *project, const QString &, const QgsServerRequest &request, QgsServerResponse &response)
Output GetMap response in DXF format.
void writeGetPrint(QgsServerInterface *serverIface, const QgsProject *project, const QString &, const QgsServerRequest &request, QgsServerResponse &response)
Output GetPrint response.
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.
#define QSTR_COMPARE(str, lit)
QGISEXTERN void QGS_ServiceModule_Exit(QgsServiceModule *)
QGISEXTERN QgsServiceModule * QGS_ServiceModule_Init()