QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
|
Go to the documentation of this file.
38 #define QSTR_COMPARE( str, lit )\
39 (str.compare( QLatin1String( lit ), Qt::CaseInsensitive ) == 0)
61 , mServerIface( serverIface )
64 QString
name()
const override {
return QStringLiteral(
"WMS" ); }
65 QString
version()
const override {
return mVersion; }
77 QStringLiteral(
"Please add or check the value of the REQUEST parameter" ), 501 );
92 writeAsDxf( mServerIface, project, request, response );
96 writeGetMap( mServerIface, project, request, response );
128 QgsDebugMsg( QStringLiteral(
"WMS GetPrint request called, but it has been disabled." ) );
130 QStringLiteral(
"Request %1 is not supported" ).arg( req ), 501 );
138 QStringLiteral(
"Request %1 is not supported" ).arg( req ), 501 );
159 QgsDebugMsg( QStringLiteral(
"WMSModule::registerSelf called" ) );
Class defining the service module interface for QGIS server services.
bool getPrintDisabled() const
Returns true if WMS GetPrint request is disabled and the project's reading flag QgsProject::ReadFlag:...
void writeGetLegendGraphics(QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response)
Output GetLegendGRaphics response.
Exception class for WMS service exceptions.
void writeGetMap(QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response)
Output GetMap response in DXF format.
#define QSTR_COMPARE(str, lit)
Service(const QString &version, QgsServerInterface *serverIface)
Constructor for WMS service.
void writeAsDxf(QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response)
Output GetMap response in DXF format.
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...
void writeGetSchemaExtension(QgsServerResponse &response)
Output GetSchemaExtension response.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
QString version() const override
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.
QString implementationVersion()
Returns the highest version supported by this implementation.
void registerSelf(QgsServiceRegistry ®istry, QgsServerInterface *serverIface) override
Asks the module to register all provided services.
QGISEXTERN void QGS_ServiceModule_Exit(QgsServiceModule *)
virtual QgsServerSettings * serverSettings()=0
Returns the server settings.
QGISEXTERN QgsServiceModule * QGS_ServiceModule_Init()
QString name() const override
Median cut implementation.
void writeGetPrint(QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response)
Output GetPrint response.
void writeGetStyles(QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response)
Output GetStyles response.
void writeGetCapabilities(QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response, bool projectSettings)
Output GetCapabilities response.
void writeGetContext(QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response)
Output GetContext response.
QgsServiceRegistry Class defining the registry manager for QGIS server services.
@ OGC_OperationNotSupported
const QgsWmsParameters & wmsParameters() const
Returns the parameters interpreted for the WMS service.
QString formatAsString() const
Returns FORMAT parameter as a string.
QString request() const override
Returns REQUEST parameter as a string or an empty string if not defined.
Class defining request interface passed to WMS service.
void writeGetFeatureInfo(QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response)
Output GetFeatureInfo response.
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins.
QgsServerResponse Class defining response interface passed to services QgsService::executeRequest() m...
Module specialized for WMS service.
void writeDescribeLayer(QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response)
Output GetMap response in DXF format.