QGIS API Documentation 3.41.0-Master (af5edcb665c)
|
Utility functions for use with the memory vector data provider. More...
#include <qgsmemoryproviderutils.h>
Static Public Member Functions | |
static QgsVectorLayer * | createMemoryLayer (const QString &name, const QgsFields &fields, Qgis::WkbType geometryType=Qgis::WkbType::NoGeometry, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem(), bool loadDefaultStyle=true) SIP_FACTORY |
Creates a new memory layer using the specified parameters. | |
Utility functions for use with the memory vector data provider.
Definition at line 35 of file qgsmemoryproviderutils.h.
|
static |
Creates a new memory layer using the specified parameters.
The caller takes responsibility for deleting the newly created layer.
name | layer name |
fields | fields for layer |
geometryType | optional layer geometry type |
crs | optional layer CRS for layers with geometry |
loadDefaultStyle | optional load default style toggle |
Definition at line 70 of file qgsmemoryproviderutils.cpp.