QGIS API Documentation 3.41.0-Master (cea29feecf2)
|
WMS Layer infos. More...
#include <qgswmslayerinfos.h>
Static Public Member Functions | |
static QMap< QString, QgsWmsLayerInfos > | buildWmsLayerInfos (QgsServerInterface *serverIface, const QgsProject *project, const QList< QgsCoordinateReferenceSystem > &outputCrsList) |
Returns the WMS layers definition to build WMS capabilities. | |
static QgsRectangle | transformExtent (const QgsRectangle &extent, const QgsCoordinateReferenceSystem &source, const QgsCoordinateReferenceSystem &destination, const QgsCoordinateTransformContext &context, const bool &ballparkTransformsAreAppropriate=false) |
Returns a transformed extent. | |
static QMap< QString, QgsRectangle > | transformExtentToCrsList (const QgsRectangle &extent, const QgsCoordinateReferenceSystem &source, const QList< QgsCoordinateReferenceSystem > &destinations, const QgsCoordinateTransformContext &context) |
Returns a map with CRS authid as key and the transformed extent as value. | |
Public Attributes | |
QString | abstract |
WMS layer abstract. | |
QString | attribution |
WMS layer attribution. | |
QString | attributionUrl |
WMS layer attribution URL. | |
QMap< QString, QgsRectangle > | crsExtents |
WMS layer CRS extents (can be empty) | |
QString | dataUrl |
WMS layer dataUrl. | |
bool | hasScaleBasedVisibility = false |
WMS layer has scale based visibility. | |
QString | id |
QGIS layer id. | |
QStringList | keywords |
WMS layer keywords. | |
QString | legendUrl |
WMS layer legend URL. | |
QString | legendUrlFormat |
WMS layer legend URL format. | |
double | maxScale = -1.0 |
WMS layer maximum scale (if negative, no maximum scale is defined) | |
QList< QgsMapLayerServerProperties::MetadataUrl > | metadataUrls |
WMS layer metadata URLs. | |
double | minScale = -1.0 |
WMS layer minimum scale (if negative, no maximum scale is defined) | |
QString | name |
WMS layer name. | |
bool | queryable = false |
WMS layer is queryable. | |
QStringList | styles |
WMS layer styles. | |
QString | title |
WMS layer title. | |
Qgis::LayerType | type |
QGIS layer type. | |
QgsRectangle | wgs84BoundingRect |
WMS layer WGS84 bounding rectangle (can be empty) | |
|
static |
Returns the WMS layers definition to build WMS capabilities.
The output will only contain the published and available after access control layers and layers without extent projection exception.
serverIface | Interface for plugins |
project | Project |
outputCrsList | the WMS output CRS list. |
Definition at line 139 of file qgswmslayerinfos.cpp.
|
static |
Returns a transformed extent.
extent | the extent to transform |
source | the extent CRS |
destination | the destination CRS |
context | the transformation context |
ballparkTransformsAreAppropriate | whether approximate "ballpark" results are appropriate for the destination CRS |
Definition at line 32 of file qgswmslayerinfos.cpp.
|
static |
Returns a map with CRS authid as key and the transformed extent as value.
extent | the extent to transform |
source | the extent CRS |
destinations | the CRSes destinations |
context | the transformation context |
Definition at line 46 of file qgswmslayerinfos.cpp.
QString QgsWmsLayerInfos::abstract |
WMS layer abstract.
Definition at line 49 of file qgswmslayerinfos.h.
QString QgsWmsLayerInfos::attribution |
WMS layer attribution.
Definition at line 85 of file qgswmslayerinfos.h.
QString QgsWmsLayerInfos::attributionUrl |
WMS layer attribution URL.
Definition at line 88 of file qgswmslayerinfos.h.
QMap<QString, QgsRectangle> QgsWmsLayerInfos::crsExtents |
WMS layer CRS extents (can be empty)
Definition at line 58 of file qgswmslayerinfos.h.
QString QgsWmsLayerInfos::dataUrl |
WMS layer dataUrl.
Definition at line 82 of file qgswmslayerinfos.h.
bool QgsWmsLayerInfos::hasScaleBasedVisibility = false |
WMS layer has scale based visibility.
Definition at line 73 of file qgswmslayerinfos.h.
QString QgsWmsLayerInfos::id |
QGIS layer id.
Definition at line 40 of file qgswmslayerinfos.h.
QStringList QgsWmsLayerInfos::keywords |
WMS layer keywords.
Definition at line 52 of file qgswmslayerinfos.h.
QString QgsWmsLayerInfos::legendUrl |
WMS layer legend URL.
Definition at line 64 of file qgswmslayerinfos.h.
QString QgsWmsLayerInfos::legendUrlFormat |
WMS layer legend URL format.
Definition at line 67 of file qgswmslayerinfos.h.
double QgsWmsLayerInfos::maxScale = -1.0 |
WMS layer maximum scale (if negative, no maximum scale is defined)
Definition at line 76 of file qgswmslayerinfos.h.
QList<QgsMapLayerServerProperties::MetadataUrl> QgsWmsLayerInfos::metadataUrls |
WMS layer metadata URLs.
Definition at line 91 of file qgswmslayerinfos.h.
double QgsWmsLayerInfos::minScale = -1.0 |
WMS layer minimum scale (if negative, no maximum scale is defined)
Definition at line 79 of file qgswmslayerinfos.h.
QString QgsWmsLayerInfos::name |
WMS layer name.
Definition at line 43 of file qgswmslayerinfos.h.
bool QgsWmsLayerInfos::queryable = false |
WMS layer is queryable.
Definition at line 70 of file qgswmslayerinfos.h.
QStringList QgsWmsLayerInfos::styles |
WMS layer styles.
Definition at line 61 of file qgswmslayerinfos.h.
QString QgsWmsLayerInfos::title |
WMS layer title.
Definition at line 46 of file qgswmslayerinfos.h.
Qgis::LayerType QgsWmsLayerInfos::type |
QGIS layer type.
Definition at line 94 of file qgswmslayerinfos.h.
QgsRectangle QgsWmsLayerInfos::wgs84BoundingRect |
WMS layer WGS84 bounding rectangle (can be empty)
Definition at line 55 of file qgswmslayerinfos.h.