mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Merge pull request #2601 from rldhont/update_qgsmaplayer_doc
[Doc] Update QgsMapLayer documentation
This commit is contained in:
commit
6347af0970
@ -71,36 +71,132 @@ class QgsMapLayer : QObject
|
|||||||
*/
|
*/
|
||||||
QString name() const;
|
QString name() const;
|
||||||
|
|
||||||
/** Get the original name of the layer */
|
/** Get the original name of the layer
|
||||||
|
* @return the original layer name
|
||||||
|
*/
|
||||||
QString originalName() const;
|
QString originalName() const;
|
||||||
|
|
||||||
|
/** Set the title of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* @return the layer title
|
||||||
|
*/
|
||||||
void setTitle( const QString& title );
|
void setTitle( const QString& title );
|
||||||
|
/** Get the title of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* @return the layer title
|
||||||
|
*/
|
||||||
QString title() const;
|
QString title() const;
|
||||||
|
|
||||||
|
/** Set the abstract of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* @return the layer abstract
|
||||||
|
*/
|
||||||
void setAbstract( const QString& abstract );
|
void setAbstract( const QString& abstract );
|
||||||
|
/** Get the abstract of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* @return the layer abstract
|
||||||
|
*/
|
||||||
QString abstract() const;
|
QString abstract() const;
|
||||||
|
|
||||||
|
/** Set the keyword list of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* @return the layer keyword list
|
||||||
|
*/
|
||||||
void setKeywordList( const QString& keywords );
|
void setKeywordList( const QString& keywords );
|
||||||
|
/** Get the keyword list of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* @return the layer keyword list
|
||||||
|
*/
|
||||||
QString keywordList() const;
|
QString keywordList() const;
|
||||||
|
|
||||||
/* Layer dataUrl information */
|
/* Layer dataUrl information */
|
||||||
|
/** Set 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
|
||||||
|
* @return the layer DataUrl
|
||||||
|
*/
|
||||||
void setDataUrl( const QString& dataUrl );
|
void setDataUrl( const QString& dataUrl );
|
||||||
|
/** Get 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
|
||||||
|
* @return the layer DataUrl
|
||||||
|
*/
|
||||||
QString dataUrl() const;
|
QString dataUrl() const;
|
||||||
|
/** Set 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
|
||||||
|
* @return the layer DataUrl format
|
||||||
|
*/
|
||||||
void setDataUrlFormat( const QString& dataUrlFormat );
|
void setDataUrlFormat( const QString& dataUrlFormat );
|
||||||
|
/** Get 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
|
||||||
|
* @return the layer DataUrl format
|
||||||
|
*/
|
||||||
QString dataUrlFormat() const;
|
QString dataUrlFormat() const;
|
||||||
|
|
||||||
/* Layer attribution information */
|
/* Layer attribution information */
|
||||||
|
/** Set the attribution of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* Attribution indicates the provider of a Layer or collection of Layers.
|
||||||
|
* @return the layer attribution
|
||||||
|
*/
|
||||||
void setAttribution( const QString& attrib );
|
void setAttribution( const QString& attrib );
|
||||||
|
/** Get the attribution of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* Attribution indicates the provider of a Layer or collection of Layers.
|
||||||
|
* @return the layer attribution
|
||||||
|
*/
|
||||||
QString attribution() const;
|
QString attribution() const;
|
||||||
|
/** Set the attribution URL of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* Attribution indicates the provider of a Layer or collection of Layers.
|
||||||
|
* @return the layer attribution URL
|
||||||
|
*/
|
||||||
void setAttributionUrl( const QString& attribUrl );
|
void setAttributionUrl( const QString& attribUrl );
|
||||||
|
/** Get the attribution URL of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* Attribution indicates the provider of a Layer or collection of Layers.
|
||||||
|
* @return the layer attribution URL
|
||||||
|
*/
|
||||||
QString attributionUrl() const;
|
QString attributionUrl() const;
|
||||||
|
|
||||||
/* Layer metadataUrl information */
|
/* Layer metadataUrl information */
|
||||||
|
/** Set the metadata URL of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* MetadataUrl is a a link to the detailed, standardized metadata about the data.
|
||||||
|
* @return the layer metadata URL
|
||||||
|
*/
|
||||||
void setMetadataUrl( const QString& metaUrl );
|
void setMetadataUrl( const QString& metaUrl );
|
||||||
|
/** Get the metadata URL of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* MetadataUrl is a a link to the detailed, standardized metadata about the data.
|
||||||
|
* @return the layer metadata URL
|
||||||
|
*/
|
||||||
QString metadataUrl() const;
|
QString metadataUrl() const;
|
||||||
|
/** Set the metadata type of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* MetadataUrlType indicates the standard to which the metadata complies.
|
||||||
|
* @return the layer metadata type
|
||||||
|
*/
|
||||||
void setMetadataUrlType( const QString& metaUrlType );
|
void setMetadataUrlType( const QString& metaUrlType );
|
||||||
|
/** Get the metadata type of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* MetadataUrlType indicates the standard to which the metadata complies.
|
||||||
|
* @return the layer metadata type
|
||||||
|
*/
|
||||||
QString metadataUrlType() const;
|
QString metadataUrlType() const;
|
||||||
|
/** Set the metadata format of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* MetadataUrlType indicates how the metadata is structured.
|
||||||
|
* @return the layer metadata format
|
||||||
|
*/
|
||||||
void setMetadataUrlFormat( const QString& metaUrlFormat );
|
void setMetadataUrlFormat( const QString& metaUrlFormat );
|
||||||
|
/** Get the metadata format of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* MetadataUrlType indicates how the metadata is structured.
|
||||||
|
* @return the layer metadata format
|
||||||
|
*/
|
||||||
QString metadataUrlFormat() const;
|
QString metadataUrlFormat() const;
|
||||||
|
|
||||||
/** Set the blending mode used for rendering a layer */
|
/** Set the blending mode used for rendering a layer */
|
||||||
|
@ -87,36 +87,132 @@ class CORE_EXPORT QgsMapLayer : public QObject
|
|||||||
*/
|
*/
|
||||||
QString name() const;
|
QString name() const;
|
||||||
|
|
||||||
/** Get the original name of the layer */
|
/** Get the original name of the layer
|
||||||
|
* @return the original layer name
|
||||||
|
*/
|
||||||
QString originalName() const { return mLayerOrigName; }
|
QString originalName() const { return mLayerOrigName; }
|
||||||
|
|
||||||
|
/** Set the title of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* @return the layer title
|
||||||
|
*/
|
||||||
void setTitle( const QString& title ) { mTitle = title; }
|
void setTitle( const QString& title ) { mTitle = title; }
|
||||||
|
/** Get the title of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* @return the layer title
|
||||||
|
*/
|
||||||
QString title() const { return mTitle; }
|
QString title() const { return mTitle; }
|
||||||
|
|
||||||
|
/** Set the abstract of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* @return the layer abstract
|
||||||
|
*/
|
||||||
void setAbstract( const QString& abstract ) { mAbstract = abstract; }
|
void setAbstract( const QString& abstract ) { mAbstract = abstract; }
|
||||||
|
/** Get the abstract of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* @return the layer abstract
|
||||||
|
*/
|
||||||
QString abstract() const { return mAbstract; }
|
QString abstract() const { return mAbstract; }
|
||||||
|
|
||||||
|
/** Set the keyword list of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* @return the layer keyword list
|
||||||
|
*/
|
||||||
void setKeywordList( const QString& keywords ) { mKeywordList = keywords; }
|
void setKeywordList( const QString& keywords ) { mKeywordList = keywords; }
|
||||||
|
/** Get the keyword list of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* @return the layer keyword list
|
||||||
|
*/
|
||||||
QString keywordList() const { return mKeywordList; }
|
QString keywordList() const { return mKeywordList; }
|
||||||
|
|
||||||
/* Layer dataUrl information */
|
/* Layer dataUrl information */
|
||||||
|
/** Set 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
|
||||||
|
* @return the layer DataUrl
|
||||||
|
*/
|
||||||
void setDataUrl( const QString& dataUrl ) { mDataUrl = dataUrl; }
|
void setDataUrl( const QString& dataUrl ) { mDataUrl = dataUrl; }
|
||||||
|
/** Get 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
|
||||||
|
* @return the layer DataUrl
|
||||||
|
*/
|
||||||
QString dataUrl() const { return mDataUrl; }
|
QString dataUrl() const { return mDataUrl; }
|
||||||
|
/** Set 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
|
||||||
|
* @return the layer DataUrl format
|
||||||
|
*/
|
||||||
void setDataUrlFormat( const QString& dataUrlFormat ) { mDataUrlFormat = dataUrlFormat; }
|
void setDataUrlFormat( const QString& dataUrlFormat ) { mDataUrlFormat = dataUrlFormat; }
|
||||||
|
/** Get 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
|
||||||
|
* @return the layer DataUrl format
|
||||||
|
*/
|
||||||
QString dataUrlFormat() const { return mDataUrlFormat; }
|
QString dataUrlFormat() const { return mDataUrlFormat; }
|
||||||
|
|
||||||
/* Layer attribution information */
|
/* Layer attribution information */
|
||||||
|
/** Set the attribution of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* Attribution indicates the provider of a Layer or collection of Layers.
|
||||||
|
* @return the layer attribution
|
||||||
|
*/
|
||||||
void setAttribution( const QString& attrib ) { mAttribution = attrib; }
|
void setAttribution( const QString& attrib ) { mAttribution = attrib; }
|
||||||
|
/** Get the attribution of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* Attribution indicates the provider of a Layer or collection of Layers.
|
||||||
|
* @return the layer attribution
|
||||||
|
*/
|
||||||
QString attribution() const { return mAttribution; }
|
QString attribution() const { return mAttribution; }
|
||||||
|
/** Set the attribution URL of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* Attribution indicates the provider of a Layer or collection of Layers.
|
||||||
|
* @return the layer attribution URL
|
||||||
|
*/
|
||||||
void setAttributionUrl( const QString& attribUrl ) { mAttributionUrl = attribUrl; }
|
void setAttributionUrl( const QString& attribUrl ) { mAttributionUrl = attribUrl; }
|
||||||
|
/** Get the attribution URL of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* Attribution indicates the provider of a Layer or collection of Layers.
|
||||||
|
* @return the layer attribution URL
|
||||||
|
*/
|
||||||
QString attributionUrl() const { return mAttributionUrl; }
|
QString attributionUrl() const { return mAttributionUrl; }
|
||||||
|
|
||||||
/* Layer metadataUrl information */
|
/* Layer metadataUrl information */
|
||||||
|
/** Set the metadata URL of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* MetadataUrl is a a link to the detailed, standardized metadata about the data.
|
||||||
|
* @return the layer metadata URL
|
||||||
|
*/
|
||||||
void setMetadataUrl( const QString& metaUrl ) { mMetadataUrl = metaUrl; }
|
void setMetadataUrl( const QString& metaUrl ) { mMetadataUrl = metaUrl; }
|
||||||
|
/** Get the metadata URL of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* MetadataUrl is a a link to the detailed, standardized metadata about the data.
|
||||||
|
* @return the layer metadata URL
|
||||||
|
*/
|
||||||
QString metadataUrl() const { return mMetadataUrl; }
|
QString metadataUrl() const { return mMetadataUrl; }
|
||||||
|
/** Set the metadata type of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* MetadataUrlType indicates the standard to which the metadata complies.
|
||||||
|
* @return the layer metadata type
|
||||||
|
*/
|
||||||
void setMetadataUrlType( const QString& metaUrlType ) { mMetadataUrlType = metaUrlType; }
|
void setMetadataUrlType( const QString& metaUrlType ) { mMetadataUrlType = metaUrlType; }
|
||||||
|
/** Get the metadata type of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* MetadataUrlType indicates the standard to which the metadata complies.
|
||||||
|
* @return the layer metadata type
|
||||||
|
*/
|
||||||
QString metadataUrlType() const { return mMetadataUrlType; }
|
QString metadataUrlType() const { return mMetadataUrlType; }
|
||||||
|
/** Set the metadata format of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* MetadataUrlType indicates how the metadata is structured.
|
||||||
|
* @return the layer metadata format
|
||||||
|
*/
|
||||||
void setMetadataUrlFormat( const QString& metaUrlFormat ) { mMetadataUrlFormat = metaUrlFormat; }
|
void setMetadataUrlFormat( const QString& metaUrlFormat ) { mMetadataUrlFormat = metaUrlFormat; }
|
||||||
|
/** Get the metadata format of the layer
|
||||||
|
* used by QGIS Server in GetCapabilities request
|
||||||
|
* MetadataUrlType indicates how the metadata is structured.
|
||||||
|
* @return the layer metadata format
|
||||||
|
*/
|
||||||
QString metadataUrlFormat() const { return mMetadataUrlFormat; }
|
QString metadataUrlFormat() const { return mMetadataUrlFormat; }
|
||||||
|
|
||||||
/** Set the blending mode used for rendering a layer */
|
/** Set the blending mode used for rendering a layer */
|
||||||
|
@ -27,7 +27,7 @@ from PyQt4.QtCore import qDebug
|
|||||||
# DON'T RAISE THIS THRESHOLD!!!
|
# DON'T RAISE THIS THRESHOLD!!!
|
||||||
# (changes which lower this threshold are welcomed though!)
|
# (changes which lower this threshold are welcomed though!)
|
||||||
|
|
||||||
ACCEPTABLE_MISSING_DOCS = 3827
|
ACCEPTABLE_MISSING_DOCS = 3807
|
||||||
|
|
||||||
|
|
||||||
class TestQgsDocCoverage(TestCase):
|
class TestQgsDocCoverage(TestCase):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user