36 QgsRenderer renderer( serverIface, project, wmsParameters );
38 QString infoFormat = params.value( QStringLiteral(
"INFO_FORMAT" ), QStringLiteral(
"text/plain" ) );
40 response.
setHeader( QStringLiteral(
"Content-Type" ), infoFormat + QStringLiteral(
"; charset=utf-8" ) );
QByteArray getFeatureInfo(const QString &version="1.3.0")
Creates an xml document that describes the result of the getFeatureInfo request.
virtual void setHeader(const QString &key, const QString &value)=0
Set Header entry Add Header entry to the response Note that it is usually an error to set Header afte...
void writeGetFeatureInfo(QgsServerInterface *serverIface, const QgsProject *project, const QString &version, const QgsServerRequest &request, QgsServerResponse &response)
Output GetFeatureInfo response.
virtual void write(const QString &data)
Write string This is a convenient method that will write directly to the underlying I/O device...
Provides an interface to retrieve and manipulate WMS parameters received from the client...
Reads and writes project states.
Median cut implementation.
QgsServerRequest Class defining request interface passed to services QgsService::executeRequest() met...
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins...
Map renderer for WMS requests.
QgsServerResponse Class defining response interface passed to services QgsService::executeRequest() m...
QgsServerRequest::Parameters parameters() const
Returns a map of query parameters with keys converted to uppercase.
QMap< QString, QString > Parameters