|
QGIS API Documentation 3.99.0-Master (357b655ed83)
|
Median cut implementation. More...
Classes | |
| class | QgsBadRequestException |
| Exception thrown in case of malformed request. More... | |
| class | QgsMapRendererJobProxy |
| Proxy for sequential or parallel map render job. More... | |
| class | QgsRenderer |
| Map renderer for WMS requests. More... | |
| class | QgsSecurityException |
| Exception thrown when data access violates access controls. More... | |
| class | QgsServiceException |
| Exception class for WMS service exceptions. More... | |
| class | QgsWmsParameter |
| WMS parameter received from the client. More... | |
| class | QgsWmsParameters |
| Provides an interface to retrieve and manipulate WMS parameters received from the client. More... | |
| struct | QgsWmsParametersComposerMap |
| struct | QgsWmsParametersExternalLayer |
| struct | QgsWmsParametersFilter |
| struct | QgsWmsParametersHighlightLayer |
| struct | QgsWmsParametersLayer |
| class | QgsWmsRenderContext |
| Rendering context for the WMS renderer. More... | |
| class | QgsWmsRequest |
| Defines request interfaces passed to WMS service. More... | |
| class | QgsWmsRestorer |
| RAII class to restore the rendering context configuration on destruction. More... | |
| class | Service |
| OGC web service specialized for WMS. More... | |
Typedefs | |
| typedef QList< QPair< QRgb, int > > | QgsColorBox |
| typedef QMultiMap< int, QgsColorBoxQgsColorBox > | QgsColorBoxMap |
Enumerations | |
| enum class | ImageOutputFormat { Unknown , PNG , PNG8 , PNG16 , PNG1 , JPEG , WEBP } |
| Supported image output format. More... | |
Functions | |
| void | checkParameters (QgsWmsParameters ¶meters) |
| checkParameters checks request parameters and sets SRCHEIGHT and SRCWIDTH to default values in case BBOX is specified for contextual legend and (SRC)HEIGHT or (SRC)WIDTH are not. | |
| QMap< QString, QgsRectangle > | combineCrsExtents (const QStringList &layerIds, const QMap< QString, QgsWmsLayerInfos > &wmsLayerInfos) |
| Returns the combinations of the extent CRSes of the layers from the list of layers ids. | |
| QgsRectangle | combineWgs84BoundingRect (const QStringList &layerIds, const QMap< QString, QgsWmsLayerInfos > &wmsLayerInfos) |
| Returns the combination of the WGS84 bounding rectangle of the layers from the list of layers ids. | |
| QDomDocument | describeLayer (QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request) |
| DescribeLayer is defined for WMS1.1.1/SLD1.0 and in WMS 1.3.0 SLD Extension. | |
| QDomDocument | getCapabilities (QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, bool projectSettings) |
| Creates the WMS GetCapabilities XML document. | |
| QDomElement | getCapabilityElement (QDomDocument &doc, const QgsProject *project, const QgsWmsRequest &request, bool projectSettings, QgsServerInterface *serverIface) |
| Create Capability element for get capabilities document. | |
| QDomElement | getComposerTemplatesElement (QDomDocument &doc, const QgsProject *project) |
| Create ComposerTemplates element for get capabilities document. | |
| QDomDocument | getContext (QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request) |
| Returns XML document for the 'GetContext' request. | |
| QDomElement | getInspireCapabilitiesElement (QDomDocument &doc, const QgsProject *project) |
| Create InspireCapabilities element for get capabilities document. | |
| QDomElement | getLayersAndStylesCapabilitiesElement (QDomDocument &doc, QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, bool projectSettings) |
| Create element for get capabilities document. | |
| QDomElement | getServiceElement (QDomDocument &doc, const QgsProject *project, const QgsWmsRequest &request, const QgsServerSettings *serverSettings) |
| Create Service element for get capabilities document. | |
| QDomDocument | getStyles (QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request) |
| Returns an SLD file with the styles of the requested layers. | |
| QDomElement | getWFSLayersElement (QDomDocument &doc, const QgsProject *project) |
| Create WFSLayers element for get capabilities document. | |
| void | handleLayersFromTreeGroup (QDomDocument &doc, QDomElement &parentLayer, QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, const QgsLayerTreeGroup *layerTreeGroup, const QMap< QString, QgsWmsLayerInfos > &wmsLayerInfos, bool projectSettings, QList< QgsDateTimeRange > &parentDateRanges) |
| bool | hasQueryableLayers (const QStringList &layerIds, const QMap< QString, QgsWmsLayerInfos > &wmsLayerInfos) |
| Returns true if at least one layer from the layers ids is queryable. | |
| QString | implementationVersion () |
| Returns the highest version supported by this implementation. | |
| QgsLayerTree * | layerTree (const QgsWmsRenderContext &context) |
| QgsLayerTree * | layerTreeWithGroups (const QgsWmsRenderContext &context, QgsLayerTree *projectRoot) |
| QgsLayerTreeModel * | legendModel (const QgsWmsRenderContext &context, QgsLayerTree &tree) |
| QgsLayerTreeModelLegendNode * | legendNode (const QString &rule, QgsLayerTreeModel &model) |
| void | medianCut (QVector< QRgb > &colorTable, int nColors, const QImage &inputImage) |
| Median cut implementation used when reducing RGB colors to palletized colors. | |
| ImageOutputFormat | parseImageFormat (const QString &format) |
| Parse image format parameter. | |
| QUrl | serviceUrl (const QgsServerRequest &request, const QgsProject *project, const QgsServerSettings &settings) |
| Returns WMS service URL. | |
| void | writeAsDxf (QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response) |
| Output GetMap response in DXF format. | |
| void | writeAsPdf (QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response) |
| Output GetMap response in PDF format. | |
| void | writeDescribeLayer (QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response) |
| Output GetMap response in DXF format. | |
| void | writeGetCapabilities (QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response, bool projectSettings=false) |
| Output GetCapabilities response. | |
| void | writeGetContext (QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response) |
| Output GetContext response. | |
| void | writeGetFeatureInfo (QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response) |
| Output GetFeatureInfo response. | |
| void | writeGetLegendGraphics (QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response) |
| Output GetLegendGRaphics response. | |
| void | writeGetMap (QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response) |
| Output GetMap response in DXF format. | |
| void | writeGetPrint (QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response) |
| Output GetPrint response. | |
| void | writeGetSchemaExtension (QgsServerResponse &response) |
| Output GetSchemaExtension response. | |
| void | writeGetStyles (QgsServerInterface *serverIface, const QgsProject *project, const QgsWmsRequest &request, QgsServerResponse &response) |
| Output GetStyles response. | |
| void | writeImage (QgsServerResponse &response, QImage &img, const QString &formatStr, int imageQuality=-1) |
| Write image response. | |
Median cut implementation.
WMS implementation.
WMS implementation
| typedef QList<QPair<QRgb, int> > QgsWms::QgsColorBox |
Definition at line 31 of file qgsmediancut.cpp.
| typedef QMultiMap<int, QgsColorBoxQgsColorBox> QgsWms::QgsColorBoxMap |
Definition at line 32 of file qgsmediancut.cpp.
|
strong |
Supported image output format.
| Enumerator | |
|---|---|
| Unknown | Unknown/invalid format. |
| PNG | PNG format. |
| PNG8 | PNG8 format. |
| PNG16 | PNG16 format. |
| PNG1 | PNG1 format. |
| JPEG | JPEG format. |
| WEBP | WEBP format. |
Definition at line 40 of file qgswmsutils.h.
| void QgsWms::checkParameters | ( | QgsWmsParameters & | parameters | ) |
checkParameters checks request parameters and sets SRCHEIGHT and SRCWIDTH to default values in case BBOX is specified for contextual legend and (SRC)HEIGHT or (SRC)WIDTH are not.
Definition at line 195 of file qgswmsgetlegendgraphics.cpp.
| QMap< QString, QgsRectangle > QgsWms::combineCrsExtents | ( | const QStringList & | layerIds, |
| const QMap< QString, QgsWmsLayerInfos > & | wmsLayerInfos ) |
Returns the combinations of the extent CRSes of the layers from the list of layers ids.
| layerIds | list of layer ids |
| wmsLayerInfos | WMS layers definition to build WMS capabilities |
Definition at line 1867 of file qgswmsgetcapabilities.cpp.
| QgsRectangle QgsWms::combineWgs84BoundingRect | ( | const QStringList & | layerIds, |
| const QMap< QString, QgsWmsLayerInfos > & | wmsLayerInfos ) |
Returns the combination of the WGS84 bounding rectangle of the layers from the list of layers ids.
| layerIds | list of layer ids |
| wmsLayerInfos | WMS layers definition to build WMS capabilities |
Definition at line 1830 of file qgswmsgetcapabilities.cpp.
| QDomDocument QgsWms::describeLayer | ( | QgsServerInterface * | serverIface, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request ) |
DescribeLayer is defined for WMS1.1.1/SLD1.0 and in WMS 1.3.0 SLD Extension.
Definition at line 45 of file qgswmsdescribelayer.cpp.
| QDomDocument QgsWms::getCapabilities | ( | QgsServerInterface * | serverIface, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request, | ||
| bool | projectSettings ) |
Creates the WMS GetCapabilities XML document.
| serverIface | Interface for plugins |
| project | Project |
| request | WMS request |
| projectSettings | If true, adds extended project information (does not validate against WMS schema) |
Definition at line 143 of file qgswmsgetcapabilities.cpp.
| QDomElement QgsWms::getCapabilityElement | ( | QDomDocument & | doc, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request, | ||
| bool | projectSettings, | ||
| QgsServerInterface * | serverIface ) |
Create Capability element for get capabilities document.
Definition at line 382 of file qgswmsgetcapabilities.cpp.
| QDomElement QgsWms::getComposerTemplatesElement | ( | QDomDocument & | doc, |
| const QgsProject * | project ) |
Create ComposerTemplates element for get capabilities document.
Definition at line 614 of file qgswmsgetcapabilities.cpp.
| QDomDocument QgsWms::getContext | ( | QgsServerInterface * | serverIface, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request ) |
Returns XML document for the 'GetContext' request.
Definition at line 84 of file qgswmsgetcontext.cpp.
| QDomElement QgsWms::getInspireCapabilitiesElement | ( | QDomDocument & | doc, |
| const QgsProject * | project ) |
Create InspireCapabilities element for get capabilities document.
Definition at line 508 of file qgswmsgetcapabilities.cpp.
| QDomElement QgsWms::getLayersAndStylesCapabilitiesElement | ( | QDomDocument & | doc, |
| QgsServerInterface * | serverIface, | ||
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request, | ||
| bool | projectSettings ) |
Create element for get capabilities document.
Definition at line 779 of file qgswmsgetcapabilities.cpp.
| QDomElement QgsWms::getServiceElement | ( | QDomDocument & | doc, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request, | ||
| const QgsServerSettings * | serverSettings ) |
Create Service element for get capabilities document.
Definition at line 228 of file qgswmsgetcapabilities.cpp.
| QDomDocument QgsWms::getStyles | ( | QgsServerInterface * | serverIface, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request ) |
Returns an SLD file with the styles of the requested layers.
Exception is raised in case of troubles :-)
Definition at line 53 of file qgswmsgetstyles.cpp.
| QDomElement QgsWms::getWFSLayersElement | ( | QDomDocument & | doc, |
| const QgsProject * | project ) |
Create WFSLayers element for get capabilities document.
Definition at line 730 of file qgswmsgetcapabilities.cpp.
| void QgsWms::handleLayersFromTreeGroup | ( | QDomDocument & | doc, |
| QDomElement & | parentLayer, | ||
| QgsServerInterface * | serverIface, | ||
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request, | ||
| const QgsLayerTreeGroup * | layerTreeGroup, | ||
| const QMap< QString, QgsWmsLayerInfos > & | wmsLayerInfos, | ||
| bool | projectSettings, | ||
| QList< QgsDateTimeRange > & | parentDateRanges ) |
Definition at line 760 of file qgswmsgetcapabilities.cpp.
| bool QgsWms::hasQueryableLayers | ( | const QStringList & | layerIds, |
| const QMap< QString, QgsWmsLayerInfos > & | wmsLayerInfos ) |
Returns true if at least one layer from the layers ids is queryable.
| layerIds | list of layer ids |
| wmsLayerInfos | WMS layers definition to build WMS capabilities |
Definition at line 1814 of file qgswmsgetcapabilities.cpp.
| QString QgsWms::implementationVersion | ( | ) |
Returns the highest version supported by this implementation.
Definition at line 37 of file qgswmsutils.cpp.
| QgsLayerTree * QgsWms::layerTree | ( | const QgsWmsRenderContext & | context | ) |
Definition at line 324 of file qgswmsgetlegendgraphics.cpp.
| QgsLayerTree * QgsWms::layerTreeWithGroups | ( | const QgsWmsRenderContext & | context, |
| QgsLayerTree * | projectRoot ) |
Definition at line 362 of file qgswmsgetlegendgraphics.cpp.
| QgsLayerTreeModel * QgsWms::legendModel | ( | const QgsWmsRenderContext & | context, |
| QgsLayerTree & | tree ) |
Definition at line 246 of file qgswmsgetlegendgraphics.cpp.
| QgsLayerTreeModelLegendNode * QgsWms::legendNode | ( | const QString & | rule, |
| QgsLayerTreeModel & | model ) |
Definition at line 396 of file qgswmsgetlegendgraphics.cpp.
| void QgsWms::medianCut | ( | QVector< QRgb > & | colorTable, |
| int | nColors, | ||
| const QImage & | inputImage ) |
Median cut implementation used when reducing RGB colors to palletized colors.
Definition at line 254 of file qgsmediancut.cpp.
| ImageOutputFormat QgsWms::parseImageFormat | ( | const QString & | format | ) |
| QUrl QgsWms::serviceUrl | ( | const QgsServerRequest & | request, |
| const QgsProject * | project, | ||
| const QgsServerSettings & | settings ) |
Returns WMS service URL.
Definition at line 42 of file qgswmsutils.cpp.
| void QgsWms::writeAsDxf | ( | QgsServerInterface * | serverIface, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request, | ||
| QgsServerResponse & | response ) |
Output GetMap response in DXF format.
Definition at line 28 of file qgsdxfwriter.cpp.
| void QgsWms::writeAsPdf | ( | QgsServerInterface * | serverIface, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request, | ||
| QgsServerResponse & | response ) |
Output GetMap response in PDF format.
Definition at line 31 of file qgspdfwriter.cpp.
| void QgsWms::writeDescribeLayer | ( | QgsServerInterface * | serverIface, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request, | ||
| QgsServerResponse & | response ) |
Output GetMap response in DXF format.
Definition at line 37 of file qgswmsdescribelayer.cpp.
| void QgsWms::writeGetCapabilities | ( | QgsServerInterface * | serverIface, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request, | ||
| QgsServerResponse & | response, | ||
| bool | projectSettings ) |
Output GetCapabilities response.
Definition at line 71 of file qgswmsgetcapabilities.cpp.
| void QgsWms::writeGetContext | ( | QgsServerInterface * | serverIface, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request, | ||
| QgsServerResponse & | response ) |
Output GetContext response.
Definition at line 50 of file qgswmsgetcontext.cpp.
| void QgsWms::writeGetFeatureInfo | ( | QgsServerInterface * | serverIface, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request, | ||
| QgsServerResponse & | response ) |
Output GetFeatureInfo response.
Definition at line 32 of file qgswmsgetfeatureinfo.cpp.
| void QgsWms::writeGetLegendGraphics | ( | QgsServerInterface * | serverIface, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request, | ||
| QgsServerResponse & | response ) |
Output GetLegendGRaphics response.
Definition at line 44 of file qgswmsgetlegendgraphics.cpp.
| void QgsWms::writeGetMap | ( | QgsServerInterface * | serverIface, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request, | ||
| QgsServerResponse & | response ) |
Output GetMap response in DXF format.
Definition at line 35 of file qgswmsgetmap.cpp.
| void QgsWms::writeGetPrint | ( | QgsServerInterface * | serverIface, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request, | ||
| QgsServerResponse & | response ) |
Output GetPrint response.
Definition at line 34 of file qgswmsgetprint.cpp.
| void QgsWms::writeGetSchemaExtension | ( | QgsServerResponse & | response | ) |
Output GetSchemaExtension response.
Definition at line 36 of file qgswmsgetschemaextension.cpp.
| void QgsWms::writeGetStyles | ( | QgsServerInterface * | serverIface, |
| const QgsProject * | project, | ||
| const QgsWmsRequest & | request, | ||
| QgsServerResponse & | response ) |
Output GetStyles response.
Definition at line 46 of file qgswmsgetstyles.cpp.
| void QgsWms::writeImage | ( | QgsServerResponse & | response, |
| QImage & | img, | ||
| const QString & | formatStr, | ||
| int | imageQuality ) |
Write image response.
Definition at line 110 of file qgswmsutils.cpp.