QGIS API Documentation
3.22.4-Białowieża (ce8e65e95e)
|
Contains utility functions for creating map layers. More...
#include <qgsmaplayerfactory.h>
Classes | |
struct | LayerOptions |
Setting options for loading layers. More... | |
Static Public Member Functions | |
static QgsMapLayer * | createLayer (const QString &uri, const QString &name, QgsMapLayerType type, const LayerOptions &options, const QString &provider=QString()) |
Creates a map layer, given a uri, name, layer type and provider name. More... | |
static QgsMapLayerType | typeFromString (const QString &string, bool &ok) |
Returns the map layer type corresponding a string value. More... | |
static QString | typeToString (QgsMapLayerType type) |
Converts a map layer type to a string value. More... | |
Contains utility functions for creating map layers.
Definition at line 33 of file qgsmaplayerfactory.h.
|
static |
Creates a map layer, given a uri, name, layer type and provider name.
Caller takes ownership of the returned layer.
Definition at line 70 of file qgsmaplayerfactory.cpp.
|
static |
Returns the map layer type corresponding a string value.
string | string to convert to map layer type |
ok | will be set to true if string was successfully converted to a map layer type |
Definition at line 26 of file qgsmaplayerfactory.cpp.
|
static |
Converts a map layer type to a string value.
Definition at line 48 of file qgsmaplayerfactory.cpp.