26 #define QSTR_COMPARE( str, lit )\ 27 (str.compare( QLatin1String( lit ), Qt::CaseInsensitive ) == 0) 47 : mServerIface( serverIface )
50 QString
name()
const override {
return QStringLiteral(
"WCS" ); }
64 QString versionString = params.value(
"VERSION" );
67 if ( versionString.isEmpty() )
73 QString req = params.value( QStringLiteral(
"REQUEST" ) );
77 QStringLiteral(
"Please check the value of the REQUEST parameter" ) );
96 QStringLiteral(
"Request %1 is not supported" ).arg( req ) );
118 QgsDebugMsg( QStringLiteral(
"WCSModule::registerSelf called" ) );
Service(QgsServerInterface *serverIface)
Constructor for WCS service.
void executeRequest(const QgsServerRequest &request, QgsServerResponse &response, const QgsProject *project) override
Execute the requests and set result in QgsServerRequest.
void registerSelf(QgsServiceRegistry ®istry, QgsServerInterface *serverIface) override
Asks the module to register all provided services.
QGISEXTERN QgsServiceModule * QGS_ServiceModule_Init()
Class defining the service module interface for QGIS server services.
QString version() const override
OGC web service specialized for WCS.
void writeDescribeCoverage(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WCS DescribeCoverage response.
Method
HTTP Method (or equivalent) used for the request.
QString name() const override
#define QSTR_COMPARE(str, lit)
QGISEXTERN void QGS_ServiceModule_Exit(QgsServiceModule *)
bool allowMethod(QgsServerRequest::Method method) const override
Returns true if the given method is supported for that service.
QgsServerRequest::Parameters parameters() const
Returns a map of query parameters with keys converted to uppercase.
Reads and writes project states.
void registerService(QgsService *service)
Register a service by its name and version.
Service module specialized for WCS.
QgsService Class defining interfaces for QGIS server services.
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
QString implementationVersion()
Returns the highest version supported by this implementation.
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins...
void writeGetCoverage(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WCS DescribeCoverage response.
QgsServiceRegistry Class defining the registry manager for QGIS server services.
Exception class for WFS services.
QgsServerResponse Class defining response interface passed to services QgsService::executeRequest() m...
void writeGetCapabilities(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output WCS GetCapabilities response.
QMap< QString, QString > Parameters