20 #ifndef QGSWMSRENDERER_H
21 #define QGSWMSRENDERER_H
28 #include <QDomDocument>
107 typedef QHash<QgsVectorLayer *, SymbolSet>
HitTest;
127 std::unique_ptr<QgsDxfExport>
getDxf();
149 QList<QgsMapLayer *> highlightLayers( QList<QgsWmsParametersHighlightLayer> params );
152 QList<QgsMapLayer *> externalLayers(
const QList<QgsWmsParametersExternalLayer> ¶ms );
155 QPainter *layersRendering(
const QgsMapSettings &mapSettings, QImage &image )
const;
158 void annotationsRendering( QPainter *painter )
const;
161 void setLayerOpacity(
QgsMapLayer *layer,
int opacity )
const;
164 void setLayerFilter(
QgsMapLayer *layer,
const QList<QgsWmsParametersFilter> &filters );
169 void setLayerAccessControlFilter(
QgsMapLayer *layer )
const;
172 void setLayerSelection(
QgsMapLayer *layer,
const QStringList &fids )
const;
178 QImage *scaleImage(
const QImage *image )
const;
186 QImage *createImage(
const QSize &size )
const;
195 void configureMapSettings(
const QPaintDevice *paintDevice,
QgsMapSettings &mapSettings,
bool mandatoryCrsParam =
true )
const;
197 QDomDocument featureInfoDocument( QList<QgsMapLayer *> &layers,
const QgsMapSettings &mapSettings,
198 const QImage *outputImage,
const QString &version )
const;
218 QDomDocument &infoDocument,
219 QDomElement &layerElement,
222 const QString &version,
230 QDomDocument &infoDocument,
231 QDomElement &layerElement,
232 const QString &version )
const;
242 bool testFilterStringSafety(
const QString &filter )
const;
244 static void groupStringList( QStringList &list,
const QString &groupString );
247 void convertFeatureInfoToSia2045( QDomDocument &doc )
const;
250 QByteArray convertFeatureInfoToHtml(
const QDomDocument &doc )
const;
253 QByteArray convertFeatureInfoToText(
const QDomDocument &doc )
const;
256 QByteArray convertFeatureInfoToJson(
const QList<QgsMapLayer *> &layers,
const QDomDocument &doc )
const;
258 QDomElement createFeatureGML(
267 QStringList *attributes =
nullptr )
const;
270 static QString replaceValueMapAndRelation(
QgsVectorLayer *vl,
int idx,
const QVariant &attributeVal );
283 void removeTemporaryLayers();
285 void handlePrintErrors(
const QgsLayout *layout )
const;
287 void setLayerStyle(
QgsMapLayer *layer,
const QString &style )
const;
289 void setLayerSld(
QgsMapLayer *layer,
const QDomElement &sld )
const;
296 QList<QgsMapLayer *> mTemporaryLayers;