QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
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, QgsWkbTypes::Type geometryType=QgsWkbTypes::NoGeometry, const QgsCoordinateReferenceSystem &crs=QgsCoordinateReferenceSystem()) SIP_FACTORY |
Creates a new memory layer using the specified parameters. More... | |
Utility functions for use with the memory vector data provider.
Definition at line 36 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 |
Definition at line 63 of file qgsmemoryproviderutils.cpp.