QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
qgswcsutils.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgswcsutils.h
3 
4  Define WCS service utility functions
5  ------------------------------------
6  begin : January 16 , 2017
7  copyright : (C) 2013 by RenĂ©-Luc D'Hont ( parts from qgswcsserver )
8  (C) 2017 by David Marteau
9  email : rldhont at 3liz dot com
10  david dot marteau at 3liz dot com
11  ***************************************************************************/
12 
13 /***************************************************************************
14  * *
15  * This program is free software; you can redistribute it and/or modify *
16  * it under the terms of the GNU General Public License as published by *
17  * the Free Software Foundation; either version 2 of the License, or *
18  * (at your option) any later version. *
19  * *
20  ***************************************************************************/
21 #ifndef QGSWCSUTILS_H
22 #define QGSWCSUTILS_H
23 
24 #include "qgsmodule.h"
25 #include "qgswcsserviceexception.h"
26 #include "qgsserversettings.h"
27 
28 #include "qgsrasterlayer.h"
29 
30 #include <QDomDocument>
31 
37 namespace QgsWcs
39 {
40 
44  QString implementationVersion();
45 
49  QDomElement getCoverageOffering( QDomDocument &doc, const QgsRasterLayer *layer, const QgsProject *project, bool brief = false );
50 
54  QString serviceUrl( const QgsServerRequest &request, const QgsProject *project, const QgsServerSettings &settings );
55 
59  //XXX At some point, should be moved to common library
60  QgsRectangle parseBbox( const QString &bboxStr );
61 
62  // Define namespaces used in WCS documents
63  const QString WCS_NAMESPACE = QStringLiteral( "http://www.opengis.net/wcs" );
64  const QString GML_NAMESPACE = QStringLiteral( "http://www.opengis.net/gml" );
65  const QString OGC_NAMESPACE = QStringLiteral( "http://www.opengis.net/ogc" );
66 
67 } // namespace QgsWcs
68 
69 #endif
70 
71 
qgsserversettings.h
qgsrasterlayer.h
QgsServerRequest
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
Definition: qgsserverrequest.h:38
QgsWcs::GML_NAMESPACE
const QString GML_NAMESPACE
Definition: qgswcsutils.h:81
QgsWcs::serviceUrl
QString serviceUrl(const QgsServerRequest &request, const QgsProject *project, const QgsServerSettings &settings)
Service URL string.
Definition: qgswcsutils.cpp:267
QgsRectangle
A rectangle specified with double values.
Definition: qgsrectangle.h:41
QgsProject
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Definition: qgsproject.h:103
QgsServerSettings
Provides a way to retrieve settings by prioritizing according to environment variables,...
Definition: qgsserversettings.h:92
QgsWcs::OGC_NAMESPACE
const QString OGC_NAMESPACE
Definition: qgswcsutils.h:82
QgsRasterLayer
Represents a raster layer.
Definition: qgsrasterlayer.h:76
QgsWcs::implementationVersion
QString implementationVersion()
Returns the highest version supported by this implementation.
Definition: qgswcsutils.cpp:43
QgsWcs::getCoverageOffering
QDomElement getCoverageOffering(QDomDocument &doc, const QgsRasterLayer *layer, const QgsProject *project, bool brief)
CoverageOffering or CoverageOfferingBrief element.
Definition: qgswcsutils.cpp:48
qgsmodule.h
QgsWcs::parseBbox
QgsRectangle parseBbox(const QString &bboxStr)
Parse bounding box.
Definition: qgswcsutils.cpp:300
QgsWcs::WCS_NAMESPACE
const QString WCS_NAMESPACE
Definition: qgswcsutils.h:80
qgswcsserviceexception.h
QgsWcs
WCS implementation.
Definition: qgswcs.cpp:29