QGIS API Documentation
3.0.2-Girona (307d082)
|
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()) |
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 53 of file qgsmemoryproviderutils.cpp.