28using namespace Qt::StringLiterals;
30#define QSTR_COMPARE( str, lit ) \
31 ( str.compare( QLatin1String( lit ), Qt::CaseInsensitive ) == 0 )
50 : mServerIface( serverIface )
53 QString
name()
const override {
return u
"WCS"_s; }
61 QString versionString = params.value(
"VERSION" );
64 if ( versionString.isEmpty() )
70 const QString req = params.value( u
"REQUEST"_s );
73 throw QgsServiceException( u
"OperationNotSupported"_s, u
"Please add or check the value of the REQUEST parameter"_s, 501 );
91 throw QgsServiceException( u
"OperationNotSupported"_s, u
"Request %1 is not supported"_s.arg( req ), 501 );
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Defines interfaces exposed by QGIS Server and made available to plugins.
Defines requests passed to QgsService classes.
QgsServerRequest::Parameters parameters() const
Returns a map of query parameters with keys converted to uppercase.
QMap< QString, QString > Parameters
Defines the response interface passed to QgsService.
Defines the service module interface for QGIS server services.
QgsServiceModule()=default
A registry manager for QGIS server services.
void registerService(QgsService *service)
Register a service by its name and version.
Service module specialized for WCS.
void registerSelf(QgsServiceRegistry ®istry, QgsServerInterface *serverIface) override
Asks the module to register all provided services.
Exception class for WFS services.
OGC web service specialized for WCS.
void executeRequest(const QgsServerRequest &request, QgsServerResponse &response, const QgsProject *project) override
Executes the requests and sets result in QgsServerRequest.
Service(QgsServerInterface *serverIface)
Constructor for WCS service.
QString version() const override
Returns the version of the service.
QString name() const override
Returns the name of the service.
void writeDescribeCoverage(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WCS DescribeCoverage response.
QString implementationVersion()
Returns the highest version supported by this implementation.
void writeGetCoverage(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WCS DescribeCoverage response.
void writeGetCapabilities(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WCS GetCapabilities response.
#define QgsDebugMsgLevel(str, level)
#define QSTR_COMPARE(str, lit)
QGISEXTERN QgsServiceModule * QGS_ServiceModule_Init()
QGISEXTERN void QGS_ServiceModule_Exit(QgsServiceModule *)