Class: QgsMapLayerServerProperties¶
Manages QGIS Server properties for a map layer
Added in version 3.10.
Class Hierarchy¶
Base classes¶
Manages QGIS Server properties for a map layer  | 
|
Manages QGIS Server properties for Wms dimensions  | 
Subclasses¶
Methods
Returns the abstract of the layerused by QGIS Server in GetCapabilities request.  | 
|
Returns the attribution of the layer used by QGIS Server in GetCapabilities request.  | 
|
Returns the attribution URL of the layer used by QGIS Server in GetCapabilities request.  | 
|
Copy properties to another instance  | 
|
Returns the DataUrl of the layer used by QGIS Server in GetCapabilities request.  | 
|
Returns the DataUrl format of the layer used by QGIS Server in GetCapabilities request.  | 
|
Returns the keyword list of the layerused by QGIS Server in GetCapabilities request.  | 
|
Reads server properties from project file.  | 
|
Reset properties to default  | 
|
Sets the abstract of the layer used by QGIS Server in GetCapabilities request.  | 
|
Sets the attribution of the layer used by QGIS Server in GetCapabilities request.  | 
|
Sets the attribution url of the layer used by QGIS Server in GetCapabilities request.  | 
|
Sets the DataUrl of the layer used by QGIS Server in GetCapabilities request.  | 
|
Sets the DataUrl format of the layerused by QGIS Server in GetCapabilities request.  | 
|
Sets the keywords list of the layerused by QGIS Server in GetCapabilities request.  | 
|
Sets the short name of the layer used by QGIS Server to identify the layer.  | 
|
Sets the title of the layer used by QGIS Server in GetCapabilities request.  | 
|
Sets the title of the layer used by QGIS Server in WFS GetCapabilities request.  | 
|
Returns the short name of the layer used by QGIS Server to identify the layer.  | 
|
Returns the title of the layer used by QGIS Server in GetCapabilities request.  | 
|
Returns the optional WFS title if set or the title of the layer used by QGIS WFS in GetCapabilities request.  | 
|
Saves server properties to xml under the layer node  | 
- class qgis.core.QgsMapLayerServerProperties[source]¶
 Bases:
QgsServerMetadataUrlProperties,QgsServerWmsDimensionProperties- __init__(layer: QgsMapLayer | None = None)
 Constructor - Creates a Map Layer QGIS Server Properties
- Parameters:
 layer (Optional[QgsMapLayer] = None) – The map layer
- __init__(a0: QgsMapLayerServerProperties)
 - Parameters:
 
- abstract(self) str[source]¶
 Returns the abstract of the layerused by QGIS Server in GetCapabilities request.
See also
Added in version 3.38.
- Return type:
 str
- attribution(self) str[source]¶
 Returns the attribution of the layer used by QGIS Server in GetCapabilities request.
Attribution indicates the provider of a layer or collection of layers.
See also
Added in version 3.38.
- Return type:
 str
- attributionUrl(self) str[source]¶
 Returns the attribution URL of the layer used by QGIS Server in GetCapabilities request.
Attribution indicates the provider of a layer or collection of layers.
See also
Added in version 3.38.
- Return type:
 str
- copyTo(self, properties: QgsMapLayerServerProperties | None)[source]¶
 Copy properties to another instance
- Parameters:
 properties (Optional[QgsMapLayerServerProperties]) – The properties to copy to
- dataUrl(self) str[source]¶
 Returns the DataUrl of the layer used by QGIS Server in GetCapabilities request.
DataUrl is a a link to the underlying data represented by a particular layer.
See also
Added in version 3.38.
- Return type:
 str
- dataUrlFormat(self) str[source]¶
 Returns the DataUrl format of the layer used by QGIS Server in GetCapabilities request.
DataUrl is a a link to the underlying data represented by a particular layer.
See also
Added in version 3.38.
- Return type:
 str
- keywordList(self) str[source]¶
 Returns the keyword list of the layerused by QGIS Server in GetCapabilities request.
See also
Added in version 3.38.
- Return type:
 str
- readXml(self, layer_node: QDomNode)[source]¶
 Reads server properties from project file.
Added in version 3.10.
- Parameters:
 layer_node (QDomNode)
- setAbstract(self, abstract: str | None)[source]¶
 Sets the
abstractof the layer used by QGIS Server in GetCapabilities request.See also
Added in version 3.38.
- Parameters:
 abstract (Optional[str])
- setAttribution(self, attrib: str | None)[source]¶
 Sets the
attributionof the layer used by QGIS Server in GetCapabilities request.Attribution indicates the provider of a layer or collection of layers.
See also
Added in version 3.38.
- Parameters:
 attrib (Optional[str])
- setAttributionUrl(self, url: str | None)[source]¶
 Sets the attribution
urlof the layer used by QGIS Server in GetCapabilities request.Attribution indicates the provider of a layer or collection of layers.
See also
Added in version 3.38.
- Parameters:
 url (Optional[str])
- setDataUrl(self, dataUrl: str | None)[source]¶
 Sets the DataUrl of the layer used by QGIS Server in GetCapabilities request.
DataUrl is a a link to the underlying data represented by a particular layer.
See also
Added in version 3.38.
- Parameters:
 dataUrl (Optional[str])
- setDataUrlFormat(self, dataUrlFormat: str | None)[source]¶
 Sets the DataUrl
formatof the layerused by QGIS Server in GetCapabilities request.DataUrl is a a link to the underlying data represented by a particular layer.
See also
Added in version 3.38.
- Parameters:
 dataUrlFormat (Optional[str])
- setKeywordList(self, keywords: str | None)[source]¶
 Sets the
keywordslist of the layerused by QGIS Server in GetCapabilities request.See also
Added in version 3.38.
- Parameters:
 keywords (Optional[str])
- setShortName(self, name: str | None)[source]¶
 Sets the short
nameof the layer used by QGIS Server to identify the layer.See also
Added in version 3.38.
- Parameters:
 name (Optional[str])
- setTitle(self, title: str | None)[source]¶
 Sets the
titleof the layer used by QGIS Server in GetCapabilities request.See also
Added in version 3.38.
- Parameters:
 title (Optional[str])
- setWfsTitle(self, title: str | None)[source]¶
 Sets the
titleof the layer used by QGIS Server in WFS GetCapabilities request.See also
Added in version 3.40.
- Parameters:
 title (Optional[str])
- shortName(self) str[source]¶
 Returns the short name of the layer used by QGIS Server to identify the layer.
See also
Added in version 3.38.
- Return type:
 str
- title(self) str[source]¶
 Returns the title of the layer used by QGIS Server in GetCapabilities request.
See also
Added in version 3.38.
- Return type:
 str