20 #ifndef QGSWMSRENDERER_H 21 #define QGSWMSRENDERER_H 28 #include <QDomDocument> 98 typedef QHash<QgsVectorLayer *, SymbolSet>
HitTest;
140 QList<QgsMapLayer *> highlightLayers( QList<QgsWmsParametersHighlightLayer> params );
143 QList<QgsMapLayer *> externalLayers(
const QList<QgsWmsParametersExternalLayer> ¶ms );
146 QPainter *layersRendering(
const QgsMapSettings &mapSettings, QImage &image )
const;
149 void annotationsRendering( QPainter *painter )
const;
152 void setLayerOpacity(
QgsMapLayer *layer,
int opacity )
const;
155 void setLayerFilter(
QgsMapLayer *layer,
const QList<QgsWmsParametersFilter> &filters );
160 void setLayerAccessControlFilter(
QgsMapLayer *layer )
const;
163 void setLayerSelection(
QgsMapLayer *layer,
const QStringList &fids )
const;
169 QImage *scaleImage(
const QImage *image )
const;
177 QImage *createImage(
const QSize &size )
const;
186 void configureMapSettings(
const QPaintDevice *paintDevice,
QgsMapSettings &mapSettings,
bool mandatoryCrsParam =
true )
const;
188 QDomDocument featureInfoDocument( QList<QgsMapLayer *> &layers,
const QgsMapSettings &mapSettings,
189 const QImage *outputImage,
const QString &version )
const;
209 QDomDocument &infoDocument,
210 QDomElement &layerElement,
213 const QString &version,
221 QDomDocument &infoDocument,
222 QDomElement &layerElement,
223 const QString &version )
const;
226 void runHitTest(
const QgsMapSettings &mapSettings, HitTest &hitTest )
const;
233 bool testFilterStringSafety(
const QString &filter )
const;
235 static void groupStringList( QStringList &list,
const QString &groupString );
238 void convertFeatureInfoToSia2045( QDomDocument &doc )
const;
241 QByteArray convertFeatureInfoToHtml(
const QDomDocument &doc )
const;
244 QByteArray convertFeatureInfoToText(
const QDomDocument &doc )
const;
247 QByteArray convertFeatureInfoToJson(
const QList<QgsMapLayer *> &layers,
const QDomDocument &doc )
const;
249 QDomElement createFeatureGML(
258 QStringList *attributes =
nullptr )
const;
261 static QString replaceValueMapAndRelation(
QgsVectorLayer *vl,
int idx,
const QVariant &attributeVal );
274 void removeTemporaryLayers();
276 void handlePrintErrors(
const QgsLayout *layout )
const;
278 void setLayerStyle(
QgsMapLayer *layer,
const QString &style )
const;
280 void setLayerSld(
QgsMapLayer *layer,
const QDomElement &sld )
const;
287 QList<QgsMapLayer *> mTemporaryLayers;
QByteArray getFeatureInfo(const QString &version="1.3.0")
Creates an xml document that describes the result of the getFeatureInfo request.
Layer tree group node serves as a container for layers and further groups.
A rectangle specified with double values.
Base class for all map layer types.
~QgsRenderer()
Destructor for QgsRenderer.
HitTest symbols()
Returns the hit test according to the current context.
This class provides qgis with the ability to render raster datasets onto the mapcanvas.
A class to represent a 2D point.
QByteArray getPrint()
Returns printed page as binary.
A geometry is the spatial representation of a feature.
QgsDxfExport getDxf()
Returns the map as DXF data.
The feature class encapsulates a single feature including its id, geometry and a list of field/values...
const QgsCoordinateReferenceSystem & crs
The QgsMapSettings class contains configuration for rendering of the map.
QImage * getMap()
Returns the map as an image (or nullptr in case of error).
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
The QgsLayerTreeModel class is model implementation for Qt item views framework.
QHash< QgsVectorLayer *, SymbolSet > HitTest
Namespace with helper functions for layer tree operations.
A feature filter provider allowing to set filter expressions on a per-layer basis.
Provides an interface to retrieve and manipulate WMS parameters received from the client...
The QgsLegendSettings class stores the appearance and layout settings for legend drawing with QgsLege...
void configureLayers(QList< QgsMapLayer *> &layers, QgsMapSettings *settings=nullptr)
Configures layers for rendering optionally considering the map settings.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts, annotations, canvases, etc.
Base class for layouts, which can contain items such as maps, labels, scalebars, etc.
QgsRenderer(const QgsWmsRenderContext &context)
Constructor for QgsRenderer.
Median cut implementation.
QSet< QString > SymbolSet
QgsServerInterface Class defining interfaces exposed by QGIS Server and made available to plugins...
Map renderer for WMS requests.
Contains information about the context of a rendering operation.
Rendering context for the WMS renderer.
This class represents a coordinate reference system (CRS).
The QgsLegendRendererItem class is abstract interface for legend items returned from QgsMapLayerLegen...
A helper class that centralizes restrictions given by all the access control filter plugins...
Print layout, a QgsLayout subclass for static or atlas-based layouts.
Represents a vector layer which manages a vector based data sets.
QImage * getLegendGraphics(QgsLayerTreeModel &model)
Returns the map legend as an image (or nullptr in case of error).