QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
20 #ifndef QGSWMSRENDERER_H
21 #define QGSWMSRENDERER_H
28 #include <QDomDocument>
107 typedef QHash<QgsVectorLayer *, SymbolSet>
HitTest;
127 std::unique_ptr<QgsDxfExport>
getDxf();
150 QList<QgsMapLayer *> highlightLayers( QList<QgsWmsParametersHighlightLayer> params );
153 QPainter *layersRendering(
const QgsMapSettings &mapSettings, QImage &image )
const;
156 void annotationsRendering( QPainter *painter )
const;
159 void setLayerOpacity(
QgsMapLayer *layer,
int opacity )
const;
162 void setLayerFilter(
QgsMapLayer *layer,
const QList<QgsWmsParametersFilter> &filters );
167 void setLayerAccessControlFilter(
QgsMapLayer *layer )
const;
170 void setLayerSelection(
QgsMapLayer *layer,
const QStringList &fids )
const;
176 QImage *scaleImage(
const QImage *image )
const;
184 QImage *createImage(
const QSize &size )
const;
193 void configureMapSettings(
const QPaintDevice *paintDevice,
QgsMapSettings &mapSettings,
bool mandatoryCrsParam =
true )
const;
195 QDomDocument featureInfoDocument( QList<QgsMapLayer *> &layers,
const QgsMapSettings &mapSettings,
196 const QImage *outputImage,
const QString &version )
const;
216 QDomDocument &infoDocument,
217 QDomElement &layerElement,
220 const QString &version,
228 QDomDocument &infoDocument,
229 QDomElement &layerElement,
230 const QString &version )
const;
241 bool testFilterStringSafety(
const QString &filter )
const;
243 static void groupStringList( QStringList &list,
const QString &groupString );
246 void convertFeatureInfoToSia2045( QDomDocument &doc )
const;
249 QByteArray convertFeatureInfoToHtml(
const QDomDocument &doc )
const;
252 QByteArray convertFeatureInfoToText(
const QDomDocument &doc )
const;
255 QByteArray convertFeatureInfoToJson(
const QList<QgsMapLayer *> &layers,
const QDomDocument &doc )
const;
257 QDomElement createFeatureGML(
266 QStringList *attributes =
nullptr )
const;
269 static QString replaceValueMapAndRelation(
QgsVectorLayer *vl,
int idx,
const QVariant &attributeVal );
282 void removeTemporaryLayers();
284 void handlePrintErrors(
const QgsLayout *layout )
const;
286 void setLayerStyle(
QgsMapLayer *layer,
const QString &style )
const;
288 void setLayerSld(
QgsMapLayer *layer,
const QDomElement &sld )
const;
295 QList<QgsMapLayer *> mTemporaryLayers;
Provides an interface to retrieve and manipulate WMS parameters received from the client.
QHash< QgsVectorLayer *, SymbolSet > HitTest
const QgsCoordinateReferenceSystem & crs
Contains information about the context of a rendering operation.
Rendering context for the WMS renderer.
QByteArray getPrint()
Returns printed page as binary.
The QgsLayerTreeModel class is model implementation for Qt item views framework.
A rectangle specified with double values.
QByteArray getFeatureInfo(const QString &version="1.3.0")
Creates an xml document that describes the result of the getFeatureInfo request.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
Namespace with helper functions for layer tree operations.
Print layout, a QgsLayout subclass for static or atlas-based layouts.
QgsRenderer(const QgsWmsRenderContext &context)
Constructor for QgsRenderer.
~QgsRenderer()
Destructor for QgsRenderer.
QImage * getMap()
Returns the map as an image (or nullptr in case of error).
Layer tree group node serves as a container for layers and further groups.
The QgsLegendSettings class stores the appearance and layout settings for legend drawing with QgsLege...
Represents a raster layer.
QSet< QString > SymbolSet
This class represents a coordinate reference system (CRS).
std::unique_ptr< QgsDxfExport > getDxf()
Returns the map as DXF data.
A class to represent a 2D point.
A helper class that centralizes restrictions given by all the access control filter plugins.
Median cut implementation.
A feature filter provider allowing to set filter expressions on a per-layer basis.
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into c
A geometry is the spatial representation of a feature.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
Represents a vector layer which manages a vector based data sets.
Base class for all map layer types.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
Map renderer for WMS requests.
QImage * getLegendGraphics(QgsLayerTreeModel &model)
Returns the map legend as an image (or nullptr in case of error).
void configureLayers(QList< QgsMapLayer * > &layers, QgsMapSettings *settings=nullptr)
Configures layers for rendering optionally considering the map settings.
The QgsMapSettings class contains configuration for rendering of the map.
QJsonObject getLegendGraphicsAsJson(QgsLayerTreeModel &model)
Returns the map legend as a JSON object.
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins.
HitTest symbols()
Returns the hit test according to the current context.
The QgsLegendRendererItem class is abstract interface for legend items returned from QgsMapLayerLegen...