|
QGIS API Documentation 3.99.0-Master (26c88405ac0)
|
Contains utility functions to retrieve specific entries from a QgsProject. More...
#include <qgsserverprojectutils.h>
Static Public Member Functions | |
| static double | ceilWithPrecision (double number, int places) |
| Returns a double greater than number to the specified number of places. | |
| static double | floorWithPrecision (double number, int places) |
| Returns a double less than number to the specified number of places. | |
| static QString | owsServiceAbstract (const QgsProject &project) |
| Returns the owsService abstract defined in project. | |
| static QString | owsServiceAccessConstraints (const QgsProject &project) |
| Returns the owsService access constraints defined in project. | |
| static bool | owsServiceCapabilities (const QgsProject &project) |
| Returns if owsService capabilities are enabled. | |
| static QString | owsServiceContactMail (const QgsProject &project) |
| Returns the owsService contact mail defined in project. | |
| static QString | owsServiceContactOrganization (const QgsProject &project) |
| Returns the owsService contact organization defined in project. | |
| static QString | owsServiceContactPerson (const QgsProject &project) |
| Returns the owsService contact person defined in project. | |
| static QString | owsServiceContactPhone (const QgsProject &project) |
| Returns the owsService contact phone defined in project. | |
| static QString | owsServiceContactPosition (const QgsProject &project) |
| Returns the owsService contact position defined in project. | |
| static QString | owsServiceFees (const QgsProject &project) |
| Returns the owsService fees defined in project. | |
| static QStringList | owsServiceKeywords (const QgsProject &project) |
| Returns the owsService keywords defined in project. | |
| static QString | owsServiceOnlineResource (const QgsProject &project) |
| Returns the owsService online resource defined in project. | |
| static QString | owsServiceTitle (const QgsProject &project) |
| Returns the owsService title defined in project. | |
| static QString | serviceUrl (const QString &service, const QgsServerRequest &request, const QgsServerSettings &settings) |
| Returns the service url defined in the environment variable or with HTTP header. | |
| static QStringList | wcsLayerIds (const QgsProject &project) |
| Returns the Layer ids list defined in a QGIS project as published in WCS. | |
| static QString | wcsServiceUrl (const QgsProject &project, const QgsServerRequest &request=QgsServerRequest(), const QgsServerSettings &settings=QgsServerSettings()) |
| Returns the WCS service url. | |
| static QStringList | wfsLayerIds (const QgsProject &project) |
| Returns the Layer ids list defined in a QGIS project as published in WFS. | |
| static int | wfsLayerPrecision (const QgsProject &project, const QString &layerId) |
| Returns the Layer precision defined in a QGIS project for the WFS GetFeature. | |
| static QString | wfsServiceUrl (const QgsProject &project, const QgsServerRequest &request=QgsServerRequest(), const QgsServerSettings &settings=QgsServerSettings()) |
| Returns the WFS service url. | |
| static QStringList | wfstDeleteLayerIds (const QgsProject &project) |
| Returns the Layer ids list defined in a QGIS project as published as WFS-T with delete capabilities. | |
| static QStringList | wfstInsertLayerIds (const QgsProject &project) |
| Returns the Layer ids list defined in a QGIS project as published as WFS-T with insert capabilities. | |
| static QStringList | wfstUpdateLayerIds (const QgsProject &project) |
| Returns the Layer ids list defined in a QGIS project as published as WFS-T with update capabilities. | |
| static bool | wmsAddLegendGroupsLegendGraphic (const QgsProject &project) |
| Returns if legend groups should be in the legend graphic response if GetLegendGraphic is called on a layer group. | |
| static double | wmsDefaultMapUnitsPerMm (const QgsProject &project) |
| Returns the default number of map units per millimeters in case of the scale is not given. | |
| static QgsRectangle | wmsExtent (const QgsProject &project) |
| Returns the WMS Extent restriction. | |
| static bool | wmsFeatureInfoAddWktGeometry (const QgsProject &project) |
| Returns if the geometry is displayed as Well Known Text in GetFeatureInfo request. | |
| static QString | wmsFeatureInfoDocumentElement (const QgsProject &project) |
| Returns the document element name for XML GetFeatureInfo request. | |
| static QString | wmsFeatureInfoDocumentElementNs (const QgsProject &project) |
| Returns the document element namespace for XML GetFeatureInfo request. | |
| static QHash< QString, QString > | wmsFeatureInfoLayerAliasMap (const QgsProject &project) |
| Returns the mapping between layer name and wms layer name for GetFeatureInfo request. | |
| static int | wmsFeatureInfoPrecision (const QgsProject &project) |
| Returns the geometry precision for GetFeatureInfo request. | |
| static QString | wmsFeatureInfoSchema (const QgsProject &project) |
| Returns the schema URL for XML GetFeatureInfo request. | |
| static bool | wmsFeatureInfoSegmentizeWktGeometry (const QgsProject &project) |
| Returns if the geometry has to be segmentize in GetFeatureInfo request. | |
| static bool | wmsFeatureInfoUseAttributeFormSettings (const QgsProject &project) |
| Returns if feature form settings should be considered for the format of the feature info response. | |
| static bool | wmsHTMLFeatureInfoUseOnlyMaptip (const QgsProject &project) |
| Returns if only the maptip should be used for HTML feature info response so that the HTML response to the feature info request only contains the maptip. | |
| static int | wmsImageQuality (const QgsProject &project) |
| Returns the quality for WMS images defined in a QGIS project. | |
| static bool | wmsInfoFormatSia2045 (const QgsProject &project) |
| Returns if the info format is SIA20145. | |
| static bool | wmsInspireActivate (const QgsProject &project) |
| Returns if Inspire is activated. | |
| static QString | wmsInspireLanguage (const QgsProject &project) |
| Returns the Inspire language. | |
| static QString | wmsInspireMetadataDate (const QgsProject &project) |
| Returns the Inspire metadata date. | |
| static QString | wmsInspireMetadataUrl (const QgsProject &project) |
| Returns the Inspire metadata URL. | |
| static QString | wmsInspireMetadataUrlType (const QgsProject &project) |
| Returns the Inspire metadata URL type. | |
| static QString | wmsInspireTemporalReference (const QgsProject &project) |
| Returns the Inspire temporal reference. | |
| static int | wmsMaxAtlasFeatures (const QgsProject &project) |
| Returns the maximum number of atlas features which can be printed in a request. | |
| static int | wmsMaxHeight (const QgsProject &project) |
| Returns the maximum height for WMS images defined in a QGIS project. | |
| static int | wmsMaxWidth (const QgsProject &project) |
| Returns the maximum width for WMS images defined in a QGIS project. | |
| static QStringList | wmsOutputCrsList (const QgsProject &project) |
| Returns the WMS output CRS list. | |
| static QStringList | wmsOutputCrsListAsOgcUrn (const QgsProject &project) |
| Returns the WMS output CRS list as OGC URNs. | |
| static bool | wmsRenderMapTiles (const QgsProject &project) |
Returns true if WMS requests should use the QgsMapSettings::RenderMapTile flag, so that no visible artifacts are visible between adjacent tiles. | |
| static QStringList | wmsRestrictedComposers (const QgsProject &project) |
| Returns the restricted composer list. | |
| static QStringList | wmsRestrictedLayers (const QgsProject &project) |
| Returns the restricted layer name list. | |
| static QString | wmsRootName (const QgsProject &project) |
| Returns the WMS root layer name defined in a QGIS project. | |
| static QString | wmsServiceUrl (const QgsProject &project, const QgsServerRequest &request=QgsServerRequest(), const QgsServerSettings &settings=QgsServerSettings()) |
| Returns the WMS service url. | |
| static bool | wmsSkipNameForGroup (const QgsProject &project) |
| Returns if name attribute should be skipped for groups in WMS capabilities document. | |
| static int | wmsTileBuffer (const QgsProject &project) |
| Returns the tile buffer in pixels for WMS images defined in a QGIS project. | |
| static bool | wmsUseLayerIds (const QgsProject &project) |
| Returns if layer ids are used as name in WMS. | |
| static QString | wmtsServiceUrl (const QgsProject &project, const QgsServerRequest &request=QgsServerRequest(), const QgsServerSettings &settings=QgsServerSettings()) |
| Returns the WMTS service url. | |
Contains utility functions to retrieve specific entries from a QgsProject.
Definition at line 39 of file qgsserverprojectutils.h.
|
static |
Returns a double greater than number to the specified number of places.
Definition at line 23 of file qgsserverprojectutils.cpp.
|
static |
Returns a double less than number to the specified number of places.
Definition at line 29 of file qgsserverprojectutils.cpp.
|
static |
Returns the owsService abstract defined in project.
| project | the QGIS project |
Definition at line 54 of file qgsserverprojectutils.cpp.
|
static |
Returns the owsService access constraints defined in project.
| project | the QGIS project |
Definition at line 121 of file qgsserverprojectutils.cpp.
|
static |
Returns if owsService capabilities are enabled.
| project | the QGIS project |
Definition at line 35 of file qgsserverprojectutils.cpp.
|
static |
Returns the owsService contact mail defined in project.
| project | the QGIS project |
Definition at line 106 of file qgsserverprojectutils.cpp.
|
static |
Returns the owsService contact organization defined in project.
| project | the QGIS project |
Definition at line 91 of file qgsserverprojectutils.cpp.
|
static |
Returns the owsService contact person defined in project.
| project | the QGIS project |
Definition at line 101 of file qgsserverprojectutils.cpp.
|
static |
Returns the owsService contact phone defined in project.
| project | the QGIS project |
Definition at line 111 of file qgsserverprojectutils.cpp.
|
static |
Returns the owsService contact position defined in project.
| project | the QGIS project |
Definition at line 96 of file qgsserverprojectutils.cpp.
|
static |
Returns the owsService fees defined in project.
| project | the QGIS project |
Definition at line 116 of file qgsserverprojectutils.cpp.
|
static |
Returns the owsService keywords defined in project.
| project | the QGIS project |
Definition at line 59 of file qgsserverprojectutils.cpp.
|
static |
Returns the owsService online resource defined in project.
| project | the QGIS project |
Definition at line 77 of file qgsserverprojectutils.cpp.
|
static |
Returns the owsService title defined in project.
| project | the QGIS project |
Definition at line 40 of file qgsserverprojectutils.cpp.
|
static |
Returns the service url defined in the environment variable or with HTTP header.
This is calculated from (in order of precedence):
| request | the request |
| service | the used service |
| settings | the server settings |
Definition at line 348 of file qgsserverprojectutils.cpp.
|
static |
Returns the Layer ids list defined in a QGIS project as published in WCS.
| project | the QGIS project |
Definition at line 547 of file qgsserverprojectutils.cpp.
|
static |
Returns the WCS service url.
The URL defined in the project or if not defined the URL from serviceUrl.
| project | the QGIS project |
| request | the request |
| settings | the server settings |
Definition at line 537 of file qgsserverprojectutils.cpp.
|
static |
Returns the Layer ids list defined in a QGIS project as published in WFS.
| project | the QGIS project |
Definition at line 512 of file qgsserverprojectutils.cpp.
|
static |
Returns the Layer precision defined in a QGIS project for the WFS GetFeature.
| project | the QGIS project |
| layerId | the layer id in the project |
Definition at line 517 of file qgsserverprojectutils.cpp.
|
static |
Returns the WFS service url.
The URL defined in the project or if not defined the URL from serviceUrl.
| project | the QGIS project |
| request | the request |
| settings | the server settings |
Definition at line 502 of file qgsserverprojectutils.cpp.
|
static |
Returns the Layer ids list defined in a QGIS project as published as WFS-T with delete capabilities.
| project | the QGIS project |
Definition at line 532 of file qgsserverprojectutils.cpp.
|
static |
Returns the Layer ids list defined in a QGIS project as published as WFS-T with insert capabilities.
| project | the QGIS project |
Definition at line 527 of file qgsserverprojectutils.cpp.
|
static |
Returns the Layer ids list defined in a QGIS project as published as WFS-T with update capabilities.
| project | the QGIS project |
Definition at line 522 of file qgsserverprojectutils.cpp.
|
static |
Returns if legend groups should be in the legend graphic response if GetLegendGraphic is called on a layer group.
| project | the QGIS project |
Definition at line 198 of file qgsserverprojectutils.cpp.
|
static |
Returns the default number of map units per millimeters in case of the scale is not given.
| project | the QGIS project |
Definition at line 156 of file qgsserverprojectutils.cpp.
|
static |
Returns the WMS Extent restriction.
| project | the QGIS project |
Definition at line 486 of file qgsserverprojectutils.cpp.
|
static |
Returns if the geometry is displayed as Well Known Text in GetFeatureInfo request.
| project | the QGIS project |
Definition at line 169 of file qgsserverprojectutils.cpp.
|
static |
Returns the document element name for XML GetFeatureInfo request.
| project | the QGIS project |
Definition at line 215 of file qgsserverprojectutils.cpp.
|
static |
Returns the document element namespace for XML GetFeatureInfo request.
| project | the QGIS project |
Definition at line 220 of file qgsserverprojectutils.cpp.
|
static |
Returns the mapping between layer name and wms layer name for GetFeatureInfo request.
| project | the QGIS project |
Definition at line 230 of file qgsserverprojectutils.cpp.
|
static |
Returns the geometry precision for GetFeatureInfo request.
| project | the QGIS project |
Definition at line 210 of file qgsserverprojectutils.cpp.
|
static |
Returns the schema URL for XML GetFeatureInfo request.
| project | the QGIS project |
Definition at line 225 of file qgsserverprojectutils.cpp.
|
static |
Returns if the geometry has to be segmentize in GetFeatureInfo request.
| project | the QGIS project |
Definition at line 190 of file qgsserverprojectutils.cpp.
|
static |
Returns if feature form settings should be considered for the format of the feature info response.
| project | the QGIS project |
Definition at line 177 of file qgsserverprojectutils.cpp.
|
static |
Returns if only the maptip should be used for HTML feature info response so that the HTML response to the feature info request only contains the maptip.
If no maptip is set, the HTML response is empty.
| project | the QGIS project |
Definition at line 184 of file qgsserverprojectutils.cpp.
|
static |
Returns the quality for WMS images defined in a QGIS project.
| project | the QGIS project |
Definition at line 141 of file qgsserverprojectutils.cpp.
|
static |
Returns if the info format is SIA20145.
| project | the QGIS project |
Definition at line 161 of file qgsserverprojectutils.cpp.
|
static |
Returns if Inspire is activated.
| project | the QGIS project |
Definition at line 257 of file qgsserverprojectutils.cpp.
|
static |
Returns the Inspire language.
| project | the QGIS project |
Definition at line 262 of file qgsserverprojectutils.cpp.
|
static |
Returns the Inspire metadata date.
| project | the QGIS project |
Definition at line 282 of file qgsserverprojectutils.cpp.
|
static |
Returns the Inspire metadata URL.
| project | the QGIS project |
Definition at line 267 of file qgsserverprojectutils.cpp.
|
static |
Returns the Inspire metadata URL type.
| project | the QGIS project |
Definition at line 272 of file qgsserverprojectutils.cpp.
|
static |
Returns the Inspire temporal reference.
| project | the QGIS project |
Definition at line 277 of file qgsserverprojectutils.cpp.
|
static |
Returns the maximum number of atlas features which can be printed in a request.
| project | the QGIS project |
Definition at line 151 of file qgsserverprojectutils.cpp.
|
static |
Returns the maximum height for WMS images defined in a QGIS project.
| project | the QGIS project |
Definition at line 131 of file qgsserverprojectutils.cpp.
|
static |
Returns the maximum width for WMS images defined in a QGIS project.
| project | the QGIS project |
Definition at line 126 of file qgsserverprojectutils.cpp.
|
static |
Returns the WMS output CRS list.
| project | the QGIS project |
Definition at line 292 of file qgsserverprojectutils.cpp.
|
static |
Returns the WMS output CRS list as OGC URNs.
| project | the QGIS project |
Definition at line 336 of file qgsserverprojectutils.cpp.
|
static |
Returns true if WMS requests should use the QgsMapSettings::RenderMapTile flag, so that no visible artifacts are visible between adjacent tiles.
This flag can slow down rendering considerably, so it is only used if the corresponding setting is enabled in the project.
| project | the QGIS project |
true if the flag should be used, or false if not.Definition at line 562 of file qgsserverprojectutils.cpp.
|
static |
Returns the restricted composer list.
| project | the QGIS project |
Definition at line 287 of file qgsserverprojectutils.cpp.
|
static |
Returns the restricted layer name list.
| project | the QGIS project |
Definition at line 481 of file qgsserverprojectutils.cpp.
|
static |
Returns the WMS root layer name defined in a QGIS project.
| project | the QGIS project |
Definition at line 476 of file qgsserverprojectutils.cpp.
|
static |
Returns the WMS service url.
The URL defined in the project or if not defined the URL from serviceUrl.
| project | the QGIS project |
| request | the request |
| settings | the server settings |
Definition at line 466 of file qgsserverprojectutils.cpp.
|
static |
Returns if name attribute should be skipped for groups in WMS capabilities document.
| project | the QGIS project |
Definition at line 205 of file qgsserverprojectutils.cpp.
|
static |
Returns the tile buffer in pixels for WMS images defined in a QGIS project.
| project | the QGIS project |
Definition at line 146 of file qgsserverprojectutils.cpp.
|
static |
Returns if layer ids are used as name in WMS.
| project | the QGIS project |
Definition at line 136 of file qgsserverprojectutils.cpp.
|
static |
Returns the WMTS service url.
The URL defined in the project or if not defined the URL from serviceUrl.
| project | the QGIS project |
| request | the request |
| settings | the server settings |
Definition at line 552 of file qgsserverprojectutils.cpp.