QGIS API Documentation  2.8.2-Wien
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Static Public Member Functions | List of all members
QgsLayerDefinition Class Reference

The QgsLayerDefinition class holds generic methods for loading/exporting QLR files. More...

#include <qgslayerdefinition.h>

Static Public Member Functions

static bool exportLayerDefinition (QString path, QList< QgsLayerTreeNode * > selectedTreeNodes, QString &errorMessage)
static bool loadLayerDefinition (const QString &path, QgsLayerTreeGroup *rootGroup, QString &errorMessage)
static bool loadLayerDefinition (QDomDocument doc, QgsLayerTreeGroup *rootGroup, QString &errorMessage)

Detailed Description

The QgsLayerDefinition class holds generic methods for loading/exporting QLR files.

QLR files are an export of the layer xml including the style and datasource location. There is no link to the QLR file once loaded. Consider the QLR file a mini project file for layers and styles. QLR files also store the layer tree info for the exported layers, including group information.

Definition at line 13 of file qgslayerdefinition.h.

Member Function Documentation

bool QgsLayerDefinition::exportLayerDefinition ( QString  path,
QList< QgsLayerTreeNode * >  selectedTreeNodes,
QString &  errorMessage 
)
static

Definition at line 89 of file qgslayerdefinition.cpp.

bool QgsLayerDefinition::loadLayerDefinition ( const QString &  path,
QgsLayerTreeGroup rootGroup,
QString &  errorMessage 
)
static

Definition at line 13 of file qgslayerdefinition.cpp.

bool QgsLayerDefinition::loadLayerDefinition ( QDomDocument  doc,
QgsLayerTreeGroup rootGroup,
QString &  errorMessage 
)
static

Definition at line 36 of file qgslayerdefinition.cpp.


The documentation for this class was generated from the following files: